public class ClientSummary extends ServerResource implements IClientSummary
IClientSummary.ClientLineEnd, IClientSummary.IClientOptions, IClientSummary.IClientSubmitOptions| Modifier and Type | Field and Description |
|---|---|
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 String |
type |
protected boolean |
unloaded |
protected Date |
updated |
refreshable, server, updateable| Constructor and Description |
|---|
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,
String type)
Explicit-value constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
getType()
Get the client workspace type 'graph' for Graph support
|
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 |
setType(String type)
Set the client workspace type 'graph' for Graph support
|
void |
setUpdated(Date updated)
Set the client's updated date / time.
|
canRefresh, canUpdate, complete, refresh, setRefreshable, setServer, update, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanRefresh, canUpdate, refresh, setServer, update, update, updateprotected 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 String stream
protected String serverId
protected int streamAtChange
protected boolean unloaded
protected String type
public ClientSummary()
public ClientSummary(boolean summaryOnly)
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.
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, String type)
public Date getAccessed()
IClientSummarygetAccessed in interface IClientSummarypublic void setAccessed(Date accessed)
IClientSummarysetAccessed in interface IClientSummaryaccessed - new accessed date.public List<String> getAlternateRoots()
IClientSummarygetAlternateRoots in interface IClientSummarypublic void setAlternateRoots(List<String> alternateRoots)
IClientSummarysetAlternateRoots in interface IClientSummaryalternateRoots - new alternate roots list. Note that order
within the list is significant.public String getDescription()
IClientSummarygetDescription in interface IClientSummarypublic void setDescription(String description)
IClientSummarysetDescription in interface IClientSummarydescription - new description string.public String getHostName()
IClientSummarygetHostName in interface IClientSummarypublic void setHostName(String hostName)
IClientSummarysetHostName in interface IClientSummaryhostName - new host name.public IClientSummary.ClientLineEnd getLineEnd()
IClientSummarygetLineEnd in interface IClientSummarypublic void setLineEnd(IClientSummary.ClientLineEnd lineEnd)
IClientSummarysetLineEnd in interface IClientSummarylineEnd - ClientLineEnd representing the line end options for this client.public String getName()
IClientSummarygetName in interface IClientSummarypublic void setName(String name)
IClientSummarysetName in interface IClientSummaryname - new client name.public IClientSummary.IClientOptions getOptions()
IClientSummarygetOptions in interface IClientSummarypublic void setOptions(IClientSummary.IClientOptions options)
IClientSummarysetOptions in interface IClientSummaryoptions - new options.public String getOwnerName()
IClientSummarygetOwnerName in interface IClientSummarypublic void setOwnerName(String ownerName)
IClientSummarysetOwnerName in interface IClientSummaryownerName - the name of the owner of this Perforce client.public String getRoot()
IClientSummarygetRoot in interface IClientSummarypublic void setRoot(String root)
IClientSummarysetRoot in interface IClientSummaryroot - new client root.public String getServerId()
IClientSummarygetServerId in interface IClientSummarypublic void setServerId(String serverId)
IClientSummarysetServerId in interface IClientSummaryserverId - new server id for this client.public String getStream()
IClientSummarygetStream in interface IClientSummarypublic void setStream(String stream)
IClientSummarysetStream in interface IClientSummarystream - new stream's path in a stream depot of this client.public int getStreamAtChange()
IClientSummarygetStreamAtChange in interface IClientSummarypublic void setStreamAtChange(int streamAtChange)
IClientSummarysetStreamAtChange in interface IClientSummarystreamAtChange - new changelist id associated with this dynamically generated
back-in-time stream client.public IClientSummary.IClientSubmitOptions getSubmitOptions()
IClientSummarygetSubmitOptions in interface IClientSummarypublic void setSubmitOptions(IClientSummary.IClientSubmitOptions submitOptions)
IClientSummarysetSubmitOptions in interface IClientSummarysubmitOptions - new client submit options.public Date getUpdated()
IClientSummarygetUpdated in interface IClientSummarypublic void setUpdated(Date updated)
IClientSummarysetUpdated in interface IClientSummaryupdated - new updated date.public boolean isUnloaded()
IClientSummaryisUnloaded in interface IClientSummarypublic boolean isStream()
IClientSummaryisStream in interface IClientSummarypublic String getType()
IClientSummarygetType in interface IClientSummarypublic void setType(String type)
IClientSummarysetType in interface IClientSummarytype - the type as a StringCopyright © 2017 Perforce Software. All Rights Reserved.