public interface IClientSummary extends IServerResource
Lightweight IClientSummary objects are typically returned from client list operations such as IServer.getClientList; further use of these specs for heavier-weight operations (etc.) requires getting the full client (IClient) object from the server via an explicit getClient() or similar operation.
Note that field setter methods defined below have local effect only, and in order to update the corresponding client on the Perforce server, you would need to create a corresponding full IClient object and update that object on the server. "Pure" IClientSummary objects (those implementing just the IClientSummary interface) are complete but are not refreshable or updateable (full IClient objects, on the other hand, are complete, refreshable, and updateable).
Modifier and Type | Interface and Description |
---|---|
static class |
IClientSummary.ClientLineEnd
Defines the line end options available for text files.
|
static interface |
IClientSummary.IClientOptions
Defines what options are available or set (or whatever) for a specific Perforce Client.
|
static interface |
IClientSummary.IClientSubmitOptions
Defines the options to be used when submitting Perforce changelists associated
with this Perforce client.
|
Modifier and Type | Method and Description |
---|---|
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 |
getBackup()
Get the client's participation in backup enable/disable.
|
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.
|
java.lang.String |
getServerId()
Get the server id associated with this client.
|
java.lang.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.
|
java.lang.String |
getType()
Get the client workspace type 'graph' for Graph support
|
java.util.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(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 |
setBackup(java.lang.String backup)
Set the client's participation in backup enable/disable
|
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 |
setServerId(java.lang.String serverId)
Set the server id of this client.
|
void |
setStream(java.lang.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(java.lang.String type)
Set the client workspace type 'graph' for Graph support
|
void |
setUpdated(java.util.Date updated)
Set the client's updated date / time.
|
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
java.lang.String getName()
void setName(java.lang.String name)
name
- new client name.java.util.Date getUpdated()
void setUpdated(java.util.Date updated)
updated
- new updated date.java.util.Date getAccessed()
void setAccessed(java.util.Date accessed)
accessed
- new accessed date.java.lang.String getOwnerName()
void setOwnerName(java.lang.String ownerName)
ownerName
- the name of the owner of this Perforce client.java.lang.String getHostName()
void setHostName(java.lang.String hostName)
hostName
- new host name.java.lang.String getDescription()
void setDescription(java.lang.String description)
description
- new description string.java.lang.String getRoot()
void setRoot(java.lang.String root)
root
- new client root.java.util.List<java.lang.String> getAlternateRoots()
void setAlternateRoots(java.util.List<java.lang.String> alternateRoots)
alternateRoots
- new alternate roots list. Note that order
within the list is significant.IClientSummary.ClientLineEnd getLineEnd()
void setLineEnd(IClientSummary.ClientLineEnd lineEnd)
lineEnd
- ClientLineEnd representing the line end options for this client.IClientSummary.IClientOptions getOptions()
void setOptions(IClientSummary.IClientOptions options)
options
- new options.IClientSummary.IClientSubmitOptions getSubmitOptions()
void setSubmitOptions(IClientSummary.IClientSubmitOptions submitOptions)
submitOptions
- new client submit options.java.lang.String getStream()
void setStream(java.lang.String stream)
stream
- new stream's path in a stream depot of this client.boolean isStream()
java.lang.String getServerId()
void setServerId(java.lang.String serverId)
serverId
- new server id for this client.int getStreamAtChange()
void setStreamAtChange(int streamAtChange)
streamAtChange
- new changelist id associated with this dynamically generated
back-in-time stream client.boolean isUnloaded()
java.lang.String getType()
void setType(java.lang.String type)
type
- the type as a Stringjava.lang.String getBackup()
void setBackup(java.lang.String backup)
backup
- enable/disable as a String