Class LabelSummary
java.lang.Object
com.perforce.p4java.impl.generic.core.ServerResource
com.perforce.p4java.impl.generic.core.LabelSummary
- All Implemented Interfaces:
ILabelSummary,IServerResource
- Direct Known Subclasses:
Label
Default implementation of the ILabelSumamry interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected static final Stringprotected Stringprotected Dateprotected Dateprotected booleanprotected static final Stringprotected Stringprotected static final Stringprotected Stringprotected Stringprotected booleanprotected static final StringFields inherited from class com.perforce.p4java.impl.generic.core.ServerResource
refreshable, server, updateable -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor -- set all fields to null or false.LabelSummary(boolean summaryOnly) Construct an empty LabelSummary and appropriately initialize the ServerResource superclass fields according to whether this summary a summary only or part of the full Label class.LabelSummary(Map<String, Object> map) Construct a LabelSummary from a map returned from the Perforce server's getLabelSummaryList. -
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 class com.perforce.p4java.impl.generic.core.ServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, parseDate, refresh, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.perforce.p4java.core.IServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
-
Field Details
-
LOCKED_VALUE
- See Also:
-
UNLOCKED_VALUE
- See Also:
-
AUTORELOAD_VALUE
- See Also:
-
NOAUTORELOAD_VALUE
- See Also:
-
name
-
ownerName
-
lastAccess
-
lastUpdate
-
description
-
revisionSpec
-
locked
protected boolean locked -
unloaded
protected boolean unloaded -
autoreload
protected boolean autoreload
-
-
Constructor Details
-
LabelSummary
public LabelSummary()Default constructor -- set all fields to null or false. -
LabelSummary
public LabelSummary(boolean summaryOnly) Construct an empty LabelSummary and appropriately initialize the ServerResource superclass fields according to whether this summary a summary only or part of the full Label class.- Parameters:
summaryOnly- summary only
-
LabelSummary
Construct a LabelSummary from a map returned from the Perforce server's getLabelSummaryList.If the map is null, this is equivalent to calling the default constructor.
- Parameters:
map- spec map
-
-
Method Details
-
getName
Description copied from interface:ILabelSummaryGet the label's name (the label's label, so to speak).- Specified by:
getNamein interfaceILabelSummary- 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).
- See Also:
-
setName
Description copied from interface:ILabelSummarySet the label's name.- Specified by:
setNamein interfaceILabelSummary- Parameters:
name- the label's (new) name.- See Also:
-
getOwnerName
Description copied from interface:ILabelSummaryGet the name of the owner of this label.- Specified by:
getOwnerNamein interfaceILabelSummary- Returns:
- possibly-null owner name.
- See Also:
-
setOwnerName
Description copied from interface:ILabelSummarySet the name of the owner of this label.- Specified by:
setOwnerNamein interfaceILabelSummary- Parameters:
ownerName- the new owner name.- See Also:
-
getLastAccess
Description copied from interface:ILabelSummaryGet the date and time of the last 'labelsync' or use of '@label' on this label.- Specified by:
getLastAccessin interfaceILabelSummary- Returns:
- possibly-null Date
- See Also:
-
setLastAccess
Description copied from interface:ILabelSummarySet the date and time of the last 'labelsync' or use of '@label' on this label.- Specified by:
setLastAccessin interfaceILabelSummary- Parameters:
lastAccess- new last access date.- See Also:
-
getLastUpdate
Description copied from interface:ILabelSummaryGet the date and time the label specification was last updated.- Specified by:
getLastUpdatein interfaceILabelSummary- Returns:
- possibly-null Date
- See Also:
-
setLastUpdate
Description copied from interface:ILabelSummarySet the date and time the label specification was last updated.- Specified by:
setLastUpdatein interfaceILabelSummary- Parameters:
lastUpdate- Date last updated.- See Also:
-
getDescription
Description copied from interface:ILabelSummaryGet the description associated with this label.- Specified by:
getDescriptionin interfaceILabelSummary- Returns:
- possibly-null description string.
- See Also:
-
setDescription
Description copied from interface:ILabelSummarySet the description associated with this label.- Specified by:
setDescriptionin interfaceILabelSummary- Parameters:
description- new label description string.- See Also:
-
getRevisionSpec
Description copied from interface:ILabelSummaryGet the optional revision specification for this label.- Specified by:
getRevisionSpecin interfaceILabelSummary- Returns:
- possibly-null revision spec string.
- See Also:
-
setRevisionSpec
Description copied from interface:ILabelSummarySet the optional revision specification for this label.- Specified by:
setRevisionSpecin interfaceILabelSummary- Parameters:
revisionSpec- new revision spec string- See Also:
-
isLocked
public boolean isLocked()Description copied from interface:ILabelSummaryReturn the "locked/unlocked" status for this label.- Specified by:
isLockedin interfaceILabelSummary- Returns:
- true iff the label is locked else it is unlocked.
- See Also:
-
setLocked
public void setLocked(boolean locked) Description copied from interface:ILabelSummarySet the "locked/unlocked" status for this label.- Specified by:
setLockedin interfaceILabelSummary- Parameters:
locked- true iff the label is locked else it is unlocked.- See Also:
-
isAutoReload
public boolean isAutoReload()Description copied from interface:ILabelSummaryReturn the "autoreload/noautoreload" status for this label.- Specified by:
isAutoReloadin interfaceILabelSummary- Returns:
- true iff the label is "autoreload" else it is "noautoreload".
- See Also:
-
setAutoReload
public void setAutoReload(boolean autoreload) Description copied from interface:ILabelSummarySet the "autoreload/noautoreload" status for this label.- Specified by:
setAutoReloadin interfaceILabelSummary- Parameters:
autoreload- true iff the label is "autoreload" else it is "noautoreload".- See Also:
-
isUnloaded
public boolean isUnloaded()Description copied from interface:ILabelSummaryReturn the "unloaded" status for this label.- Specified by:
isUnloadedin interfaceILabelSummary- Returns:
- true iff the label is unloaded.
- See Also:
-