public class UserSummary extends ServerResource implements IUserSummary
IUserSummary.UserType
Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
passwordChange |
protected java.util.Date |
ticketExpiration |
protected IUserSummary.UserType |
type |
refreshable, server, updateable
Constructor and Description |
---|
UserSummary()
Default constructor; sets all fields to null or zero.
|
UserSummary(java.util.Map<java.lang.String,java.lang.Object> map,
boolean summaryOnly)
Construct a UserSummary from the passed-in map and summaryOnly values.
|
UserSummary(java.lang.String loginName,
java.lang.String email,
java.lang.String fullName,
java.util.Date access,
java.util.Date update)
Explicit-value constructor.
|
UserSummary(java.lang.String loginName,
java.lang.String email,
java.lang.String fullName,
java.util.Date access,
java.util.Date update,
IUserSummary.UserType type)
Explicit-value constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getAccess() |
java.lang.String |
getEmail() |
java.lang.String |
getFullName() |
java.lang.String |
getLoginName() |
java.util.Date |
getPasswordChange()
Get the date the password associated with this summary user expires.
|
java.util.Date |
getTicketExpiration()
Get the date the ticket associated with this summary user expires.
|
IUserSummary.UserType |
getType()
Get the UserType associated with this user.
|
java.util.Date |
getUpdate() |
void |
setAccess(java.util.Date access) |
void |
setEmail(java.lang.String email) |
void |
setFullName(java.lang.String fullName) |
void |
setLoginName(java.lang.String loginName) |
void |
setType(IUserSummary.UserType type)
Set the UserType associated with this user.
|
void |
setUpdate(java.util.Date update) |
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, parseDate, refresh, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
protected IUserSummary.UserType type
protected java.util.Date ticketExpiration
protected java.util.Date passwordChange
public UserSummary()
public UserSummary(java.lang.String loginName, java.lang.String email, java.lang.String fullName, java.util.Date access, java.util.Date update)
loginName
- loginNameemail
- emailfullName
- fullNameaccess
- accessupdate
- updatepublic UserSummary(java.lang.String loginName, java.lang.String email, java.lang.String fullName, java.util.Date access, java.util.Date update, IUserSummary.UserType type)
loginName
- loginNameemail
- emailfullName
- fullNameaccess
- accessupdate
- updatetype
- typepublic UserSummary(java.util.Map<java.lang.String,java.lang.Object> map, boolean summaryOnly)
If map is null, this is equivalent to calling the default constructor.
map
- spec mapsummaryOnly
- if truepublic java.util.Date getAccess()
getAccess
in interface IUserSummary
IUserSummary.getAccess()
public java.lang.String getEmail()
getEmail
in interface IUserSummary
IUserSummary.getEmail()
public java.lang.String getFullName()
getFullName
in interface IUserSummary
IUserSummary.getFullName()
public java.lang.String getLoginName()
getLoginName
in interface IUserSummary
IUserSummary.getLoginName()
public java.util.Date getUpdate()
getUpdate
in interface IUserSummary
IUserSummary.getUpdate()
public void setAccess(java.util.Date access)
setAccess
in interface IUserSummary
IUserSummary.setAccess(java.util.Date)
public void setEmail(java.lang.String email)
setEmail
in interface IUserSummary
IUserSummary.setEmail(java.lang.String)
public void setFullName(java.lang.String fullName)
setFullName
in interface IUserSummary
IUserSummary.setFullName(java.lang.String)
public void setLoginName(java.lang.String loginName)
setLoginName
in interface IUserSummary
IUserSummary.setLoginName(java.lang.String)
public void setUpdate(java.util.Date update)
setUpdate
in interface IUserSummary
IUserSummary.setUpdate(java.util.Date)
public IUserSummary.UserType getType()
IUserSummary
getType
in interface IUserSummary
IUserSummary.getType()
public void setType(IUserSummary.UserType type)
IUserSummary
setType
in interface IUserSummary
type
- typeIUserSummary.setType(com.perforce.p4java.core.IUserSummary.UserType)
public java.util.Date getTicketExpiration()
IUserSummary
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.
getTicketExpiration
in interface IUserSummary
IUserSummary.getTicketExpiration()
public java.util.Date getPasswordChange()
IUserSummary
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.
getPasswordChange
in interface IUserSummary
IUserSummary.getPasswordChange()