Interface IClientSummary
- All Superinterfaces:
IServerResource
- All Known Subinterfaces:
IClient
- All Known Implementing Classes:
Client,ClientSummary
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).
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDefines the line end options available for text files.static interfaceDefines what options are available or set (or whatever) for a specific Perforce Client.static interfaceDefines the options to be used when submitting Perforce changelists associated with this Perforce client. -
Method Summary
Modifier and TypeMethodDescriptionGets the date this client was last used in any way.Get the alternate roots associated with this Perforce client, if any.Get the client's participation in backup enable/disable.Returns a short description of the Perforce server client.Returns the name of the associated host, if any.Get the line end options for this client.getName()Get the name of this client.Get the Perforce client options associated with this client.Get the name of the owner of this Perforce client.getRoot()Returns the root of this Perforce client.Get the server id associated with this client.Get the stream's path in a stream depot, of the form //depotname/streamname, to which this client's view will be dedicated.intGet the changelist id associated with this dynamically generated back-in-time stream client.Get the Perforce client changelist submit options associated with this client.getType()Get the client workspace type 'graph' for Graph supportGet the date the client's specification was last modified.booleanisStream()Convenience method to check if this is a stream clientbooleanReturn the "unloaded" status for this client.voidsetAccessed(Date accessed) Set the client's accessed date / time.voidsetAlternateRoots(List<String> alternateRoots) Set the alternate roots associated with this Perforce client.voidSet the client's participation in backup enable/disablevoidsetDescription(String description) Set the description associated with this client.voidsetHostName(String hostName) Set the name of the associated host.voidsetLineEnd(IClientSummary.ClientLineEnd lineEnd) Set the line end options for this client.voidSet the name of this client.voidsetOptions(IClientSummary.IClientOptions options) Set the client options associated with this client.voidsetOwnerName(String ownerName) Set the name of the owner of this client.voidSet the root of this client.voidsetServerId(String serverId) Set the server id of this client.voidSet the stream's path in a stream depot, of the form //depotname/streamname, to which this client's view will be dedicated.voidsetStreamAtChange(int streamAtChange) Set the changelist id associated with this dynamically generated back-in-time stream client.voidsetSubmitOptions(IClientSummary.IClientSubmitOptions submitOptions) Set the client submit options for this client.voidSet the client workspace type 'graph' for Graph supportvoidsetUpdated(Date updated) Set the client's updated date / time.Methods inherited from interface com.perforce.p4java.core.IServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
-
Method Details
-
getName
String getName()Get the name of this client.- Returns:
- the name of this client, if set or known; null otherwise.
-
setName
Set the name of this client.- Parameters:
name- new client name.
-
getUpdated
Date getUpdated()Get the date the client's specification was last modified.- Returns:
- the date the client's specification was last modified, or null if not known.
-
setUpdated
Set the client's updated date / time.- Parameters:
updated- new updated date.
-
getAccessed
Date getAccessed()Gets the date this client was last used in any way. Note that this is a server-side date and does not reflect client-side usage.- Returns:
- the date this client was last used in any way, or null if not known.
-
setAccessed
Set the client's accessed date / time.- Parameters:
accessed- new accessed date.
-
getOwnerName
String getOwnerName()Get the name of the owner of this Perforce client.- Returns:
- the name of the owner of this Perforce client, if known; null otherwise.
-
setOwnerName
Set the name of the owner of this client.- Parameters:
ownerName- the name of the owner of this Perforce client.
-
getHostName
String getHostName()Returns the name of the associated host, if any.- Returns:
- the name of the associated host, if any; null otherwise.
-
setHostName
Set the name of the associated host.- Parameters:
hostName- new host name.
-
getDescription
String getDescription()Returns a short description of the Perforce server client.- Returns:
- the short description of the client, or null if no such description is available.
-
setDescription
Set the description associated with this client.- Parameters:
description- new description string.
-
getRoot
String getRoot()Returns the root of this Perforce client.- Returns:
- the root of this client, or null if no such root is available.
-
setRoot
Set the root of this client.- Parameters:
root- new client root.
-
getAlternateRoots
Get the alternate roots associated with this Perforce client, if any.- Returns:
- list of alternate roots if they exist; null otherwise.
-
setAlternateRoots
Set the alternate roots associated with this Perforce client.- Parameters:
alternateRoots- new alternate roots list. Note that order within the list is significant.
-
getLineEnd
IClientSummary.ClientLineEnd getLineEnd()Get the line end options for this client.- Returns:
- ClientLineEnd representing the line end options for this client.
-
setLineEnd
Set the line end options for this client.- Parameters:
lineEnd- ClientLineEnd representing the line end options for this client.
-
getOptions
IClientSummary.IClientOptions getOptions()Get the Perforce client options associated with this client.- Returns:
- non-null options
-
setOptions
Set the client options associated with this client.- Parameters:
options- new options.
-
getSubmitOptions
IClientSummary.IClientSubmitOptions getSubmitOptions()Get the Perforce client changelist submit options associated with this client.- Returns:
- non-null changelist submit options
-
setSubmitOptions
Set the client submit options for this client.- Parameters:
submitOptions- new client submit options.
-
getStream
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.- Returns:
- the stream's path in a stream depot of this client, or null if this is not a stream client.
-
setStream
Set the stream's path in a stream depot, of the form //depotname/streamname, to which this client's view will be dedicated.- Parameters:
stream- new stream's path in a stream depot of this client.
-
isStream
boolean isStream()Convenience method to check if this is a stream client- Returns:
- true, if stream
-
getServerId
String getServerId()Get the server id associated with this client.- Returns:
- the server id associated with this client, or null if this client has no associated server id.
-
setServerId
Set the server id of this client.- Parameters:
serverId- new server id for this client.
-
getStreamAtChange
int getStreamAtChange()Get the changelist id associated with this dynamically generated back-in-time stream client.- Returns:
- the changelist id associated with this dynamically generated back-in-time stream client, or IChangelist.UNKNOWN if this is not a dynamically generated back-in-time stream client.
-
setStreamAtChange
void setStreamAtChange(int streamAtChange) Set the changelist id associated with this dynamically generated back-in-time stream client.- Parameters:
streamAtChange- new changelist id associated with this dynamically generated back-in-time stream client.
-
isUnloaded
boolean isUnloaded()Return the "unloaded" status for this client.- Returns:
- true iff the client is unloaded.
-
getType
String getType()Get the client workspace type 'graph' for Graph support- Returns:
- String representation of the type
-
setType
Set the client workspace type 'graph' for Graph support- Parameters:
type- the type as a String
-
getBackup
String getBackup()Get the client's participation in backup enable/disable. If not specified backup of a writable client defaults to enabled.- Returns:
- String representation of the type
-
setBackup
Set the client's participation in backup enable/disable- Parameters:
backup- enable/disable as a String
-