|
||||||||||
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.
Field Summary |
---|
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(java.util.Map<java.lang.String,java.lang.Object> map,
IServer server)
Constructs a User from the passed-in map. |
|
User(java.lang.String loginName,
java.lang.String email,
java.lang.String fullName,
java.util.Date access,
java.util.Date update,
java.lang.String password,
java.lang.String jobView,
ViewMap<IReviewSubscription> reviewSubscriptions)
Explicit-value constructor. |
Method Summary | |
---|---|
java.lang.String |
getJobView()
|
java.lang.String |
getPassword()
|
ViewMap<IReviewSubscription> |
getReviewSubscriptions()
|
void |
refresh()
Refresh the underlying object from the Perforce server. |
void |
setJobView(java.lang.String jobView)
|
void |
setPassword(java.lang.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)
Updates this user on the Perforce server; if force is true, force the change (requires super user / admin privileges to work properly). |
Methods inherited from class com.perforce.p4java.impl.generic.core.UserSummary |
---|
getAccess, getEmail, getFullName, getLoginName, getUpdate, setAccess, setEmail, setFullName, setLoginName, setUpdate |
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.IUserSummary |
---|
getAccess, getEmail, getFullName, getLoginName, getUpdate, setAccess, setEmail, setFullName, setLoginName, setUpdate |
Methods inherited from interface com.perforce.p4java.core.IServerResource |
---|
canRefresh, canUpdate, setServer |
Constructor Detail |
---|
public User()
public User(java.lang.String loginName, java.lang.String email, java.lang.String fullName, java.util.Date access, java.util.Date update, java.lang.String password, java.lang.String jobView, ViewMap<IReviewSubscription> reviewSubscriptions)
public User(java.util.Map<java.lang.String,java.lang.Object> map, IServer server)
Method Detail |
---|
public java.lang.String getPassword()
getPassword
in interface IUser
IUser.getPassword()
public void setPassword(java.lang.String password)
setPassword
in interface IUser
IUser.setPassword(java.lang.String)
public java.lang.String getJobView()
getJobView
in interface IUser
IUser.getJobView()
public void setJobView(java.lang.String jobView)
setJobView
in interface IUser
IUser.setJobView(java.lang.String)
public ViewMap<IReviewSubscription> getReviewSubscriptions()
getReviewSubscriptions
in interface IUser
IUser.getReviewSubscriptions()
public void setReviewSubscriptions(ViewMap<IReviewSubscription> reviewSubscriptions)
setReviewSubscriptions
in interface IUser
IUser.setReviewSubscriptions(com.perforce.p4java.core.ViewMap)
public void refresh() throws ConnectionException, RequestException, AccessException
IServerResource
The 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 IServerResource
refresh
in class ServerResource
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 callerServerResource.refresh()
public void update() throws ConnectionException, RequestException, AccessException
IServerResource
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 IServerResource
update
in class ServerResource
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 callerServerResource.update()
public void update(boolean force) throws ConnectionException, RequestException, AccessException
IUser
update
in interface IUser
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 caller
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |