|
||||||||||
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.mapbased.client.ClientSummary
public class ClientSummary
Default implementation class for the IClientSummary interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.perforce.p4java.client.IClientSummary |
---|
IClientSummary.ClientLineEnd, IClientSummary.IClientOptions, IClientSummary.IClientSubmitOptions |
Field Summary | |
---|---|
protected Date |
accessed
|
protected List<String> |
alternateRoots
|
protected String |
description
|
protected String |
hostName
|
protected IClientSummary.ClientLineEnd |
lineEnd
|
protected String |
name
|
protected IClientSummary.IClientOptions |
options
|
protected String |
ownerName
|
protected String |
root
|
protected String |
serverId
|
protected String |
stream
|
protected int |
streamAtChange
|
protected IClientSummary.IClientSubmitOptions |
submitOptions
|
protected boolean |
unloaded
|
protected Date |
updated
|
Fields inherited from class com.perforce.p4java.impl.generic.core.ServerResource |
---|
refreshable, server, updateable |
Constructor Summary | |
---|---|
ClientSummary()
Default constructor. |
|
ClientSummary(boolean summaryOnly)
Construct a new ClientSummary object whose ServerResource fields depend on the passed-in summaryOnly parameter. |
|
ClientSummary(IClientSummary clientSummary)
Clone a client summary by copying all fields. |
|
ClientSummary(Map<String,Object> map,
boolean summaryOnly)
Server map constructor. |
|
ClientSummary(String name,
Date accessed,
Date updated,
String description,
String hostName,
String ownerName,
String root,
IClientSummary.ClientLineEnd lineEnd,
IClientSummary.IClientOptions options,
IClientSummary.IClientSubmitOptions submitOptions,
List<String> alternateRoots)
Explicit-value constructor. |
|
ClientSummary(String name,
Date accessed,
Date updated,
String description,
String hostName,
String ownerName,
String root,
IClientSummary.ClientLineEnd lineEnd,
IClientSummary.IClientOptions options,
IClientSummary.IClientSubmitOptions submitOptions,
List<String> alternateRoots,
String stream)
Explicit-value constructor. |
Method Summary | |
---|---|
Date |
getAccessed()
Gets the date this client was last used in any way. |
List<String> |
getAlternateRoots()
Get the alternate roots associated with this Perforce client, if any. |
String |
getDescription()
Returns a short description of the Perforce server client. |
String |
getHostName()
Returns the name of the associated host, if any. |
IClientSummary.ClientLineEnd |
getLineEnd()
Get the line end options for this client. |
String |
getName()
Get the name of this client. |
IClientSummary.IClientOptions |
getOptions()
Get the Perforce client options associated with this client. |
String |
getOwnerName()
Get the name of the owner of this Perforce client. |
String |
getRoot()
Returns the root of this Perforce client. |
String |
getServerId()
Get the server id associated with this client. |
String |
getStream()
Get the stream's path in a stream depot, of the form //depotname/streamname, to which this client's view will be dedicated. |
int |
getStreamAtChange()
Get the changelist id associated with this dynamically generated back-in-time stream client. |
IClientSummary.IClientSubmitOptions |
getSubmitOptions()
Get the Perforce client changelist submit options associated with this client. |
Date |
getUpdated()
Get the date the client's specification was last modified. |
boolean |
isStream()
Convenience method to check if this is a stream client |
boolean |
isUnloaded()
Return the "unloaded" status for this client. |
void |
setAccessed(Date accessed)
Set the client's accessed date / time. |
void |
setAlternateRoots(List<String> alternateRoots)
Set the alternate roots associated with this Perforce client. |
void |
setDescription(String description)
Set the description associated with this client. |
void |
setHostName(String hostName)
Set the name of the associated host. |
void |
setLineEnd(IClientSummary.ClientLineEnd lineEnd)
Set the line end options for this client. |
void |
setName(String name)
Set the name of this client. |
void |
setOptions(IClientSummary.IClientOptions options)
Set the client options associated with this client. |
void |
setOwnerName(String ownerName)
Set the name of the owner of this client. |
void |
setRoot(String root)
Set the root of this client. |
void |
setServerId(String serverId)
Set the server id of this client. |
void |
setStream(String stream)
Set the stream's path in a stream depot, of the form //depotname/streamname, to which this client's view will be dedicated. |
void |
setStreamAtChange(int streamAtChange)
Set the changelist id associated with this dynamically generated back-in-time stream client. |
void |
setSubmitOptions(IClientSummary.IClientSubmitOptions submitOptions)
Set the client submit options for this client. |
void |
setUpdated(Date updated)
Set the client's updated date / time. |
Methods inherited from class com.perforce.p4java.impl.generic.core.ServerResource |
---|
canRefresh, canUpdate, complete, refresh, setRefreshable, setServer, update, update, 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.IServerResource |
---|
canRefresh, canUpdate, refresh, setServer, update, update, update |
Field Detail |
---|
protected String name
protected Date accessed
protected Date updated
protected String description
protected String hostName
protected String ownerName
protected String root
protected IClientSummary.ClientLineEnd lineEnd
protected IClientSummary.IClientOptions options
protected IClientSummary.IClientSubmitOptions submitOptions
protected List<String> alternateRoots
protected String stream
protected String serverId
protected int streamAtChange
protected boolean unloaded
Constructor Detail |
---|
public ClientSummary()
public ClientSummary(boolean summaryOnly)
public ClientSummary(String name, Date accessed, Date updated, String description, String hostName, String ownerName, String root, IClientSummary.ClientLineEnd lineEnd, IClientSummary.IClientOptions options, IClientSummary.IClientSubmitOptions submitOptions, List<String> alternateRoots)
public ClientSummary(String name, Date accessed, Date updated, String description, String hostName, String ownerName, String root, IClientSummary.ClientLineEnd lineEnd, IClientSummary.IClientOptions options, IClientSummary.IClientSubmitOptions submitOptions, List<String> alternateRoots, String stream)
public ClientSummary(IClientSummary clientSummary)
public ClientSummary(Map<String,Object> map, boolean summaryOnly)
Note that fields set here may be overridden in a full Client constructor, as the field keys and formats can be subtly (and not so subtly) different in maps returned from (say) getClientList() and getClient(). If summaryOnly is false, this map is assumed to be from a full client retrieval, meaning some of the fields retrieved in the full Client constructor are not set here. Otherwise, it attempts to retrieve all known ClientSummary fields.
Method Detail |
---|
public String getName()
IClientSummary
getName
in interface IClientSummary
public void setName(String name)
IClientSummary
setName
in interface IClientSummary
name
- new client name.public Date getAccessed()
IClientSummary
getAccessed
in interface IClientSummary
public void setAccessed(Date accessed)
IClientSummary
setAccessed
in interface IClientSummary
accessed
- new accessed date.public Date getUpdated()
IClientSummary
getUpdated
in interface IClientSummary
public void setUpdated(Date updated)
IClientSummary
setUpdated
in interface IClientSummary
updated
- new updated date.public String getDescription()
IClientSummary
getDescription
in interface IClientSummary
public void setDescription(String description)
IClientSummary
setDescription
in interface IClientSummary
description
- new description string.public String getHostName()
IClientSummary
getHostName
in interface IClientSummary
public void setHostName(String hostName)
IClientSummary
setHostName
in interface IClientSummary
hostName
- new host name.public String getOwnerName()
IClientSummary
getOwnerName
in interface IClientSummary
public void setOwnerName(String ownerName)
IClientSummary
setOwnerName
in interface IClientSummary
ownerName
- the name of the owner of this Perforce client.public String getRoot()
IClientSummary
getRoot
in interface IClientSummary
public void setRoot(String root)
IClientSummary
setRoot
in interface IClientSummary
root
- new client root.public IClientSummary.ClientLineEnd getLineEnd()
IClientSummary
getLineEnd
in interface IClientSummary
public void setLineEnd(IClientSummary.ClientLineEnd lineEnd)
IClientSummary
setLineEnd
in interface IClientSummary
lineEnd
- ClientLineEnd representing the line end options for this client.public IClientSummary.IClientOptions getOptions()
IClientSummary
getOptions
in interface IClientSummary
public void setOptions(IClientSummary.IClientOptions options)
IClientSummary
setOptions
in interface IClientSummary
options
- new options.public IClientSummary.IClientSubmitOptions getSubmitOptions()
IClientSummary
getSubmitOptions
in interface IClientSummary
public void setSubmitOptions(IClientSummary.IClientSubmitOptions submitOptions)
IClientSummary
setSubmitOptions
in interface IClientSummary
submitOptions
- new client submit options.public List<String> getAlternateRoots()
IClientSummary
getAlternateRoots
in interface IClientSummary
public void setAlternateRoots(List<String> alternateRoots)
IClientSummary
setAlternateRoots
in interface IClientSummary
alternateRoots
- new alternate roots list. Note that order
within the list is significant.public String getStream()
IClientSummary
getStream
in interface IClientSummary
public void setStream(String stream)
IClientSummary
setStream
in interface IClientSummary
stream
- new stream's path in a stream depot of this client.public boolean isStream()
IClientSummary
isStream
in interface IClientSummary
IClientSummary.isStream()
public String getServerId()
IClientSummary
getServerId
in interface IClientSummary
public void setServerId(String serverId)
IClientSummary
setServerId
in interface IClientSummary
serverId
- new server id for this client.public int getStreamAtChange()
IClientSummary
getStreamAtChange
in interface IClientSummary
public void setStreamAtChange(int streamAtChange)
IClientSummary
setStreamAtChange
in interface IClientSummary
streamAtChange
- new changelist id associated with this dynamically generated
back-in-time stream client.public boolean isUnloaded()
IClientSummary
isUnloaded
in interface IClientSummary
IClientSummary.isUnloaded()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |