|
||||||||||
| 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.UserSummary
com.perforce.p4java.impl.generic.core.User
public class User
Simple default IUser implementation class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.perforce.p4java.core.IUserSummary |
|---|
IUserSummary.UserType |
| Field Summary |
|---|
| Fields inherited from class com.perforce.p4java.impl.generic.core.UserSummary |
|---|
passwordChange, ticketExpiration, type |
| Fields inherited from class com.perforce.p4java.impl.generic.core.ServerResource |
|---|
refreshable, server, updateable |
| Constructor Summary | |
|---|---|
User()
Default constructor -- sets all summary and extended fields to null. |
|
User(Map<String,Object> map,
IServer server)
Constructs a User from the passed-in map. |
|
User(String loginName,
String email,
String fullName,
Date access,
Date update,
String password,
String jobView,
IUserSummary.UserType type,
ViewMap<IReviewSubscription> reviewSubscriptions)
Explicit-value constructor. |
|
User(String loginName,
String email,
String fullName,
Date access,
Date update,
String password,
String jobView,
ViewMap<IReviewSubscription> reviewSubscriptions)
Explicit-value constructor. |
|
| Method Summary | |
|---|---|
String |
getJobView()
|
String |
getPassword()
|
ViewMap<IReviewSubscription> |
getReviewSubscriptions()
|
static User |
newUser(String name,
String email,
String fullName,
String password)
Simple convenience factory method to create a new local User object with default (null) jobView and reviewSubscriptions fields. |
void |
refresh()
Refresh the underlying object from the Perforce server. |
void |
setJobView(String jobView)
|
void |
setPassword(String password)
|
void |
setReviewSubscriptions(ViewMap<IReviewSubscription> reviewSubscriptions)
|
void |
update()
Update the Perforce server object associated with the underlying P4Java object, if possible. |
void |
update(boolean force)
Force (if true) update the Perforce server object associated with the underlying P4Java object, if possible. |
| Methods inherited from class com.perforce.p4java.impl.generic.core.UserSummary |
|---|
getAccess, getEmail, getFullName, getLoginName, getPasswordChange, getTicketExpiration, getType, getUpdate, setAccess, setEmail, setFullName, setLoginName, setType, setUpdate |
| Methods inherited from class com.perforce.p4java.impl.generic.core.ServerResource |
|---|
canRefresh, canUpdate, complete, setRefreshable, setServer, update |
| 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.IUserSummary |
|---|
getAccess, getEmail, getFullName, getLoginName, getPasswordChange, getTicketExpiration, getType, getUpdate, setAccess, setEmail, setFullName, setLoginName, setType, setUpdate |
| Methods inherited from interface com.perforce.p4java.core.IServerResource |
|---|
canRefresh, canUpdate, setServer, update |
| Constructor Detail |
|---|
public User()
public User(String loginName,
String email,
String fullName,
Date access,
Date update,
String password,
String jobView,
ViewMap<IReviewSubscription> reviewSubscriptions)
public User(String loginName,
String email,
String fullName,
Date access,
Date update,
String password,
String jobView,
IUserSummary.UserType type,
ViewMap<IReviewSubscription> reviewSubscriptions)
public User(Map<String,Object> map,
IServer server)
| Method Detail |
|---|
public static User newUser(String name,
String email,
String fullName,
String password)
name - non-null user name.email - user's email address.fullName - user's full name.password - user's password (usually ignored).
public String getPassword()
getPassword in interface IUserIUser.getPassword()public void setPassword(String password)
setPassword in interface IUserIUser.setPassword(java.lang.String)public String getJobView()
getJobView in interface IUserIUser.getJobView()public void setJobView(String jobView)
setJobView in interface IUserIUser.setJobView(java.lang.String)public ViewMap<IReviewSubscription> getReviewSubscriptions()
getReviewSubscriptions in interface IUserIUser.getReviewSubscriptions()public void setReviewSubscriptions(ViewMap<IReviewSubscription> reviewSubscriptions)
setReviewSubscriptions in interface IUserIUser.setReviewSubscriptions(com.perforce.p4java.core.ViewMap)
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()
public void update(boolean force)
throws ConnectionException,
RequestException,
AccessException
IServerResourceNote, in order to force the change it may require super user / admin privileges to work properly. The 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 interface IUserupdate in class ServerResourceforce - if true, force the update of the object on the server.
ConnectionException - 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 callerIServerResource.update(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||