|
||||||||||
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 java.util.Date |
accessed
|
protected java.util.List<java.lang.String> |
alternateRoots
|
protected java.lang.String |
description
|
protected java.lang.String |
hostName
|
protected IClientSummary.ClientLineEnd |
lineEnd
|
protected java.lang.String |
name
|
protected IClientSummary.IClientOptions |
options
|
protected java.lang.String |
ownerName
|
protected java.lang.String |
root
|
protected IClientSummary.IClientSubmitOptions |
submitOptions
|
protected java.util.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(java.util.Map<java.lang.String,java.lang.Object> map,
boolean summaryOnly)
Server map constructor. |
|
ClientSummary(java.lang.String name,
java.util.Date accessed,
java.util.Date updated,
java.lang.String description,
java.lang.String hostName,
java.lang.String ownerName,
java.lang.String root,
IClientSummary.ClientLineEnd lineEnd,
IClientSummary.IClientOptions options,
IClientSummary.IClientSubmitOptions submitOptions,
java.util.List<java.lang.String> alternateRoots)
Explicit-value constructor. |
Method Summary | |
---|---|
java.util.Date |
getAccessed()
Gets the date this client was last used in any way. |
java.util.List<java.lang.String> |
getAlternateRoots()
Get the alternate roots associated with this Perforce client, if any. |
java.lang.String |
getDescription()
Returns a short description of the Perforce server client. |
java.lang.String |
getHostName()
Returns the name of the associated host, if any. |
IClientSummary.ClientLineEnd |
getLineEnd()
Get the line end options for this client. |
java.lang.String |
getName()
Get the name of this client. |
IClientSummary.IClientOptions |
getOptions()
Get the Perforce client options associated with this client. |
java.lang.String |
getOwnerName()
Get the name of the owner of this Perforce client. |
java.lang.String |
getRoot()
Returns the root of this Perforce client. |
IClientSummary.IClientSubmitOptions |
getSubmitOptions()
Get the Perforce client changelist submit options associated with this client. |
java.util.Date |
getUpdated()
Get the date the client's specification was last modified. |
void |
setAccessed(java.util.Date accessed)
Set the client's accessed date / time. |
void |
setAlternateRoots(java.util.List<java.lang.String> alternateRoots)
Set the alternate roots associated with this Perforce client. |
void |
setDescription(java.lang.String description)
Set the description associated with this client. |
void |
setHostName(java.lang.String hostName)
Set the name of the associated host. |
void |
setLineEnd(IClientSummary.ClientLineEnd lineEnd)
Set the line end options for this client. |
void |
setName(java.lang.String name)
Set the name of this client. |
void |
setOptions(IClientSummary.IClientOptions options)
Set the client options associated with this client. |
void |
setOwnerName(java.lang.String ownerName)
Set the name of the owner of this client. |
void |
setRoot(java.lang.String root)
Set the root of this client. |
void |
setSubmitOptions(IClientSummary.IClientSubmitOptions submitOptions)
Set the client submit options for this client. |
void |
setUpdated(java.util.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 |
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 |
Field Detail |
---|
protected java.lang.String name
protected java.util.Date accessed
protected java.util.Date updated
protected java.lang.String description
protected java.lang.String hostName
protected java.lang.String ownerName
protected java.lang.String root
protected IClientSummary.ClientLineEnd lineEnd
protected IClientSummary.IClientOptions options
protected IClientSummary.IClientSubmitOptions submitOptions
protected java.util.List<java.lang.String> alternateRoots
Constructor Detail |
---|
public ClientSummary()
public ClientSummary(boolean summaryOnly)
public ClientSummary(java.lang.String name, java.util.Date accessed, java.util.Date updated, java.lang.String description, java.lang.String hostName, java.lang.String ownerName, java.lang.String root, IClientSummary.ClientLineEnd lineEnd, IClientSummary.IClientOptions options, IClientSummary.IClientSubmitOptions submitOptions, java.util.List<java.lang.String> alternateRoots)
public ClientSummary(IClientSummary clientSummary)
public ClientSummary(java.util.Map<java.lang.String,java.lang.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 java.lang.String getName()
IClientSummary
getName
in interface IClientSummary
public void setName(java.lang.String name)
IClientSummary
setName
in interface IClientSummary
name
- new client name.public java.util.Date getAccessed()
IClientSummary
getAccessed
in interface IClientSummary
public void setAccessed(java.util.Date accessed)
IClientSummary
setAccessed
in interface IClientSummary
accessed
- new accessed date.public java.util.Date getUpdated()
IClientSummary
getUpdated
in interface IClientSummary
public void setUpdated(java.util.Date updated)
IClientSummary
setUpdated
in interface IClientSummary
updated
- new updated date.public java.lang.String getDescription()
IClientSummary
getDescription
in interface IClientSummary
public void setDescription(java.lang.String description)
IClientSummary
setDescription
in interface IClientSummary
description
- new description string.public java.lang.String getHostName()
IClientSummary
getHostName
in interface IClientSummary
public void setHostName(java.lang.String hostName)
IClientSummary
setHostName
in interface IClientSummary
hostName
- new host name.public java.lang.String getOwnerName()
IClientSummary
getOwnerName
in interface IClientSummary
public void setOwnerName(java.lang.String ownerName)
IClientSummary
setOwnerName
in interface IClientSummary
ownerName
- the name of the owner of this Perforce client.public java.lang.String getRoot()
IClientSummary
getRoot
in interface IClientSummary
public void setRoot(java.lang.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 java.util.List<java.lang.String> getAlternateRoots()
IClientSummary
getAlternateRoots
in interface IClientSummary
public void setAlternateRoots(java.util.List<java.lang.String> alternateRoots)
IClientSummary
setAlternateRoots
in interface IClientSummary
alternateRoots
- new alternate roots list. Note that order
within the list is significant.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |