|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.perforce.p4java.impl.generic.core.ServerResource
com.perforce.p4java.impl.generic.core.UserGroup
public class UserGroup
Simple generic implementation class for the IUserGroup interface.
| Field Summary | |
|---|---|
static java.lang.String |
UNLIMITED_STR
How the Perforce server represents an unlimited group value as a string. |
static java.lang.String |
UNSET_STR
How the Perforce server represents an unset group value as a string. |
| Fields inherited from class com.perforce.p4java.impl.generic.core.ServerResource |
|---|
refreshable, server, updateable |
| Fields inherited from interface com.perforce.p4java.core.IUserGroup |
|---|
UNLIMITED, UNSET |
| Constructor Summary | |
|---|---|
UserGroup()
Default constructor. |
|
UserGroup(java.util.Map<java.lang.String,java.lang.Object> map)
Construct a new user group impl from the passed-in map. |
|
| Method Summary | |
|---|---|
int |
getMaxLockTime()
Get the maximum lock time for queries by members of this group. |
int |
getMaxResults()
Get the maximum number of results returned for queries by members of this group. |
int |
getMaxScanRows()
Get the maximum number of scan rows returned for queries by members of this group. |
java.lang.String |
getName()
Get the group's name. |
java.util.List<java.lang.String> |
getOwners()
Get a list of owner names for this group. |
java.util.List<java.lang.String> |
getSubgroups()
Get the list of known subgroups of this groups. |
int |
getTimeout()
Get the timeout value for commands by members of this group. |
java.util.List<java.lang.String> |
getUsers()
Get a list of user names for this group. |
boolean |
isSubGroup()
Return true if this group is a sub group of another group on this server. |
int |
parseGroupIntValue(java.lang.String str)
Parse a Perforce server-side string representing a user group integer value (such as timeout). |
void |
refresh()
Refresh the underlying object from the Perforce server. |
void |
setMaxLockTime(int maxLockTime)
Set the maximum lock time for queries by members of this group. |
void |
setMaxResults(int maxResults)
Set the maximum number of results returned for queries by members of this group. |
void |
setMaxScanRows(int maxScanRows)
Set the maximum number of scan rows returned for queries by members of this group. |
void |
setName(java.lang.String name)
|
void |
setOwners(java.util.List<java.lang.String> owners)
Set the list of owner names for this group. |
void |
setSubGroup(boolean subGroup)
Set whether this group is a sub group of another group on this server. |
void |
setSubgroups(java.util.List<java.lang.String> subgroups)
Set the list of known subgroups of this groups. |
void |
setTimeout(int timeout)
Set the timeout value for commands by members of this group. |
void |
setUsers(java.util.List<java.lang.String> users)
Set the list of user names for this group. |
void |
update()
Update the Perforce server object associated with the underlying P4Java object, if possible. |
| Methods inherited from class com.perforce.p4java.impl.generic.core.ServerResource |
|---|
canRefresh, canUpdate, complete, setRefreshable, setServer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.perforce.p4java.core.IServerResource |
|---|
canRefresh, canUpdate, setServer |
| Field Detail |
|---|
public static final java.lang.String UNSET_STR
public static final java.lang.String UNLIMITED_STR
| Constructor Detail |
|---|
public UserGroup()
public UserGroup(java.util.Map<java.lang.String,java.lang.Object> map)
Sets superclass IServerResource fields complete, completeable, refereable and updateable to true.
| Method Detail |
|---|
public int getMaxLockTime()
IUserGroup
getMaxLockTime in interface IUserGroupIUserGroup.getMaxLockTime()public int getMaxResults()
IUserGroup
getMaxResults in interface IUserGroupIUserGroup.getMaxResults()public int getMaxScanRows()
IUserGroup
getMaxScanRows in interface IUserGroupIUserGroup.getMaxScanRows()public java.lang.String getName()
IUserGroup
getName in interface IUserGroupIUserGroup.getName()public java.util.List<java.lang.String> getOwners()
IUserGroup
getOwners in interface IUserGroupIUserGroup.getOwners()public java.util.List<java.lang.String> getSubgroups()
IUserGroup
getSubgroups in interface IUserGroupIUserGroup.getSubgroups()public int getTimeout()
IUserGroup
getTimeout in interface IUserGroupIUserGroup.getTimeout()public java.util.List<java.lang.String> getUsers()
IUserGroup
getUsers in interface IUserGroupIUserGroup.getUsers()public boolean isSubGroup()
IUserGroupNote that this method will always return false on an IUserGroup object retrieved from the IServer.getUserGroup() method (this is a restriction imposed by the Perforce server).
isSubGroup in interface IUserGroupIUserGroup.isSubGroup()public void setName(java.lang.String name)
setName in interface IUserGrouppublic void setMaxResults(int maxResults)
IUserGroup
setMaxResults in interface IUserGrouppublic void setMaxScanRows(int maxScanRows)
IUserGroup
setMaxScanRows in interface IUserGrouppublic void setMaxLockTime(int maxLockTime)
IUserGroup
setMaxLockTime in interface IUserGrouppublic void setTimeout(int timeout)
IUserGroup
setTimeout in interface IUserGrouppublic void setSubgroups(java.util.List<java.lang.String> subgroups)
IUserGroup
setSubgroups in interface IUserGrouppublic void setOwners(java.util.List<java.lang.String> owners)
IUserGroup
setOwners in interface IUserGrouppublic void setUsers(java.util.List<java.lang.String> users)
IUserGroup
setUsers in interface IUserGrouppublic void setSubGroup(boolean subGroup)
IUserGroup
setSubGroup in interface IUserGrouppublic int parseGroupIntValue(java.lang.String str)
public void refresh()
throws ConnectionException,
RequestException,
AccessException
IServerResourceThe details of what "refreshable" means in this context are always object-dependent, but typically mean that "live" data and metadata will be updated from the server.
The results of calling this method on objects whose canRefresh method returns false are undefined (but will generally result in a UnimplementedError being thrown).
refresh in interface IServerResourcerefresh in class ServerResourceConnectionException - if the Perforce server is unreachable or is not
connected.
RequestException - if the Perforce server encounters an error during
its processing of the request
AccessException - if the Perforce server denies access to the callerServerResource.refresh()
public void update()
throws ConnectionException,
RequestException,
AccessException
IServerResourceThe results of calling this method on objects whose canUpdate method returns false are undefined (but will generally result in a UnimplementedError being thrown).
update in interface IServerResourceupdate in class ServerResourceConnectionException - if the Perforce server is unreachable or is not
connected.
RequestException - if the Perforce server encounters an error during
its processing of the request
AccessException - if the Perforce server denies access to the callerServerResource.update()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||