Interface IUserSummary
- All Superinterfaces:
IServerResource
- All Known Subinterfaces:
IUser
- All Known Implementing Classes:
User,UserSummary
Fields and methods below are basically self-explanatory and more detailed documentation can be found in the main p4 documentation. Note that any or all of these methods are allowed to return null.
IUserSummary objects are complete and neither refreshable nor updateable.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDescribes the type (service or standard) of this user. -
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 interface com.perforce.p4java.core.IServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
-
Method Details
-
getLoginName
String getLoginName() -
setLoginName
-
getUpdate
Date getUpdate() -
setUpdate
-
getAccess
Date getAccess() -
setAccess
-
getFullName
String getFullName() -
setFullName
-
getEmail
String getEmail() -
setEmail
-
getType
IUserSummary.UserType getType()Get the UserType associated with this user. May return null if no type was set.- Returns:
- user type
- Since:
- 2011.1
-
setType
Set the UserType associated with this user.- Parameters:
type- type- Since:
- 2011.1
-
getTicketExpiration
Date getTicketExpiration()Get 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.
- Returns:
- possibly-null Date object.
- Since:
- 2011.1
-
getPasswordChange
Date getPasswordChange()Get 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.
- Returns:
- possibly-null Date object.
- Since:
- 2011.1
-