Package com.perforce.p4java.core
Interface ILabelSummary
- All Superinterfaces:
IServerResource
- All Known Subinterfaces:
ILabel
- All Known Implementing Classes:
Label,LabelSummary
Defines summary information for Perforce labels. Label summary
objects contain the summary field information returned by (e.g.)
the "p4 labels" command (which does not include the label view),
and do not support server-side operations against them. For the
full Perforce label object functionality, see ILabel, which
extends this interface.
ILabelSummary objects are complete and neither refreshable nor updateable.
See the main Perforce documentation for label usage and semantics.
-
Method Summary
Modifier and TypeMethodDescriptionGet the description associated with this label.Get the date and time of the last 'labelsync' or use of '@label' on this label.Get the date and time the label specification was last updated.getName()Get the label's name (the label's label, so to speak).Get the name of the owner of this label.Get the optional revision specification for this label.booleanReturn the "autoreload/noautoreload" status for this label.booleanisLocked()Return the "locked/unlocked" status for this label.booleanReturn the "unloaded" status for this label.voidsetAutoReload(boolean autoreload) Set the "autoreload/noautoreload" status for this label.voidsetDescription(String description) Set the description associated with this label.voidsetLastAccess(Date lastAccess) Set the date and time of the last 'labelsync' or use of '@label' on this label.voidsetLastUpdate(Date lastUpdate) Set the date and time the label specification was last updated.voidsetLocked(boolean locked) Set the "locked/unlocked" status for this label.voidSet the label's name.voidsetOwnerName(String ownerName) Set the name of the owner of this label.voidsetRevisionSpec(String revisionSpec) Set the optional revision specification for this label.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 label's name (the label's label, so to speak).- Returns:
- possibly-null label name (should only be null if the underlying label object has just been created on the client and has no server-side counterpart yet).
-
setName
Set the label's name.- Parameters:
name- the label's (new) name.
-
getOwnerName
String getOwnerName()Get the name of the owner of this label.- Returns:
- possibly-null owner name.
-
setOwnerName
Set the name of the owner of this label.- Parameters:
ownerName- the new owner name.
-
getLastUpdate
Date getLastUpdate()Get the date and time the label specification was last updated.- Returns:
- possibly-null Date
-
setLastUpdate
Set the date and time the label specification was last updated.- Parameters:
lastUpdate- Date last updated.
-
getLastAccess
Date getLastAccess()Get the date and time of the last 'labelsync' or use of '@label' on this label.- Returns:
- possibly-null Date
-
setLastAccess
Set the date and time of the last 'labelsync' or use of '@label' on this label.- Parameters:
lastAccess- new last access date.
-
getDescription
String getDescription()Get the description associated with this label.- Returns:
- possibly-null description string.
-
setDescription
Set the description associated with this label.- Parameters:
description- new label description string.
-
isLocked
boolean isLocked()Return the "locked/unlocked" status for this label.- Returns:
- true iff the label is locked else it is unlocked.
-
setLocked
void setLocked(boolean locked) Set the "locked/unlocked" status for this label.- Parameters:
locked- true iff the label is locked else it is unlocked.
-
isAutoReload
boolean isAutoReload()Return the "autoreload/noautoreload" status for this label.- Returns:
- true iff the label is "autoreload" else it is "noautoreload".
-
setAutoReload
void setAutoReload(boolean autoreload) Set the "autoreload/noautoreload" status for this label.- Parameters:
autoreload- true iff the label is "autoreload" else it is "noautoreload".
-
getRevisionSpec
String getRevisionSpec()Get the optional revision specification for this label.- Returns:
- possibly-null revision spec string.
-
setRevisionSpec
Set the optional revision specification for this label.- Parameters:
revisionSpec- new revision spec string
-
isUnloaded
boolean isUnloaded()Return the "unloaded" status for this label.- Returns:
- true iff the label is unloaded.
-