|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.perforce.api.SourceControlObject com.perforce.api.Group
public final class Group
Representation of a source control group. Each instance can store one p4 group's information. This is custom defined class at Quinstreet
Constructor Summary | |
---|---|
Group()
Default no-argument constructor. |
|
Group(String id)
Constructor that accepts the id of the group. |
Method Summary | |
---|---|
void |
commit()
TBD: The commit method is not working yet. |
HashDecay |
getCache()
Returns the HashDecay instance for this class |
static Group |
getGroup(Env env,
String gid)
Gets the group information for the specified group. |
static Enumeration |
getGroups()
Returns an Enumeration of all Group objects. |
static Enumeration |
getGroups(Env env)
Returns an Enumeration of all Group objects. |
String |
getId()
Returns the id for this Group. |
Vector |
getUsers()
Returns the list of users for a given group |
void |
setId(String id)
Sets the id for this Group. |
void |
sync()
Synchronizes the Group information with P4. |
void |
sync(String id)
Synchronizes the Group information with P4. |
String |
toString()
|
String |
toXML()
Returns a string containing the object in XML form. |
Methods inherited from class com.perforce.api.SourceControlObject |
---|
clearCache, getEnv, getSyncTime, getUpdateTime, inSync, invalidate, outOfSync, refreshUpdateTime, setEnv |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Group()
public Group(String id)
id
- Id for the Group.Method Detail |
---|
public void commit()
commit
method is not working yet.
commit
in interface Cacheable
commit
in class SourceControlObject
public HashDecay getCache()
SourceControlObject
getCache
in interface Cacheable
getCache
in class SourceControlObject
public static Group getGroup(Env env, String gid)
If the group information must be up to date, then the
sync() method must be called.
env
- Source control environment to use.gid
- The group id of the group information to get from p4.
public static Enumeration getGroups()
Enumeration
of all Group
objects.
public static Enumeration getGroups(Env env)
Enumeration
of all Group
objects.
public String getId()
public Vector getUsers() throws PerforceException
PerforceException
public void setId(String id)
id
- Id for the Group.public void sync()
sync
in interface Cacheable
sync
in class SourceControlObject
public void sync(String id)
id
- The Group id for this to synchronize from p4.public String toString()
toString
in class Object
public String toXML()
SourceControlObject
toXML
in class SourceControlObject
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |