Class UserSummary
- All Implemented Interfaces:
IServerResource,IUserSummary
- Direct Known Subclasses:
User
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IUserSummary
IUserSummary.UserType -
Field Summary
FieldsFields inherited from class com.perforce.p4java.impl.generic.core.ServerResource
refreshable, server, updateable -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor; sets all fields to null or zero.Explicit-value constructor.UserSummary(String loginName, String email, String fullName, Date access, Date update, IUserSummary.UserType type) Explicit-value constructor.UserSummary(Map<String, Object> map, boolean summaryOnly) Construct a UserSummary from the passed-in map and summaryOnly values. -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()Get the date the password associated with this summary user expires.Get the date the ticket associated with this summary user expires.getType()Get the UserType associated with this user.voidvoidvoidsetFullName(String fullName) voidsetLoginName(String loginName) voidsetType(IUserSummary.UserType type) Set the UserType associated with this user.voidMethods inherited from class com.perforce.p4java.impl.generic.core.ServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, parseDate, refresh, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.perforce.p4java.core.IServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
-
Field Details
-
type
-
ticketExpiration
-
passwordChange
-
-
Constructor Details
-
UserSummary
public UserSummary()Default constructor; sets all fields to null or zero. -
UserSummary
Explicit-value constructor.- Parameters:
loginName- loginNameemail- emailfullName- fullNameaccess- accessupdate- update
-
UserSummary
public UserSummary(String loginName, String email, String fullName, Date access, Date update, IUserSummary.UserType type) Explicit-value constructor.- Parameters:
loginName- loginNameemail- emailfullName- fullNameaccess- accessupdate- updatetype- type
-
UserSummary
Construct a UserSummary from the passed-in map and summaryOnly values. The map must have been returned from the Perforce server in response to a getUsers() or getUser (etc.) call; is summaryOnly is true, this is treated as a map that came from the getUseres method.If map is null, this is equivalent to calling the default constructor.
- Parameters:
map- spec mapsummaryOnly- if true
-
-
Method Details
-
getAccess
- Specified by:
getAccessin interfaceIUserSummary- See Also:
-
getEmail
- Specified by:
getEmailin interfaceIUserSummary- See Also:
-
getFullName
- Specified by:
getFullNamein interfaceIUserSummary- See Also:
-
getLoginName
- Specified by:
getLoginNamein interfaceIUserSummary- See Also:
-
getUpdate
- Specified by:
getUpdatein interfaceIUserSummary- See Also:
-
setAccess
- Specified by:
setAccessin interfaceIUserSummary- See Also:
-
setEmail
- Specified by:
setEmailin interfaceIUserSummary- See Also:
-
setFullName
- Specified by:
setFullNamein interfaceIUserSummary- See Also:
-
setLoginName
- Specified by:
setLoginNamein interfaceIUserSummary- See Also:
-
setUpdate
- Specified by:
setUpdatein interfaceIUserSummary- See Also:
-
getType
Description copied from interface:IUserSummaryGet the UserType associated with this user. May return null if no type was set.- Specified by:
getTypein interfaceIUserSummary- Returns:
- user type
- See Also:
-
setType
Description copied from interface:IUserSummarySet the UserType associated with this user.- Specified by:
setTypein interfaceIUserSummary- Parameters:
type- type- See Also:
-
getTicketExpiration
Description copied from interface:IUserSummaryGet the date the ticket associated with this summary user expires.This field will only be non-null if a) the user summary object it's a part of was retrieved using the IOptionsServer.getUsers method with the GetUsersOptions().setExtendedOutput option set to true; b) the caller was a super-user or admin; and, c) the Perforce server was 2011.1 or above. In all other cases the value of this field is either null or not reliable.
This is a read-only field synthesized by the Perforce server, and can not be meaningfully set in the client.
- Specified by:
getTicketExpirationin interfaceIUserSummary- Returns:
- possibly-null Date object.
- See Also:
-
getPasswordChange
Description copied from interface:IUserSummaryGet the date the password associated with this summary user expires.This field will only be non-null if a) the user summary object it's a part of was retrieved using the IOptionsServer.getUsers method with the GetUsersOptions().setExtendedOutput option set to true; b) the caller was a super-user or admin; and, c) the Perforce server was 2011.1 or above. In all other cases the value of this field is either null or not reliable.
This is a read-only field synthesized by the Perforce server, and can not be meaningfully set in the client.
- Specified by:
getPasswordChangein interfaceIUserSummary- Returns:
- possibly-null Date object.
- See Also:
-