public class LabelSummary extends ServerResource implements ILabelSummary
Modifier and Type | Field and Description |
---|---|
protected boolean |
autoreload |
protected static java.lang.String |
AUTORELOAD_VALUE |
protected java.lang.String |
description |
protected java.util.Date |
lastAccess |
protected java.util.Date |
lastUpdate |
protected boolean |
locked |
protected static java.lang.String |
LOCKED_VALUE |
protected java.lang.String |
name |
protected static java.lang.String |
NOAUTORELOAD_VALUE |
protected java.lang.String |
ownerName |
protected java.lang.String |
revisionSpec |
protected boolean |
unloaded |
protected static java.lang.String |
UNLOCKED_VALUE |
refreshable, server, updateable
Constructor and Description |
---|
LabelSummary()
Default 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(java.util.Map<java.lang.String,java.lang.Object> map)
Construct a LabelSummary from a map returned from the Perforce server's
getLabelSummaryList.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Get the description associated with this label.
|
java.util.Date |
getLastAccess()
Get the date and time of the last 'labelsync' or use of '@label'
on this label.
|
java.util.Date |
getLastUpdate()
Get the date and time the label specification was last updated.
|
java.lang.String |
getName()
Get the label's name (the label's label, so to speak).
|
java.lang.String |
getOwnerName()
Get the name of the owner of this label.
|
java.lang.String |
getRevisionSpec()
Get the optional revision specification for this label.
|
boolean |
isAutoReload()
Return the "autoreload/noautoreload" status for this label.
|
boolean |
isLocked()
Return the "locked/unlocked" status for this label.
|
boolean |
isUnloaded()
Return the "unloaded" status for this label.
|
void |
setAutoReload(boolean autoreload)
Set the "autoreload/noautoreload" status for this label.
|
void |
setDescription(java.lang.String description)
Set the description associated with this label.
|
void |
setLastAccess(java.util.Date lastAccess)
Set the date and time of the last 'labelsync' or use of '@label'
on this label.
|
void |
setLastUpdate(java.util.Date lastUpdate)
Set the date and time the label specification was last updated.
|
void |
setLocked(boolean locked)
Set the "locked/unlocked" status for this label.
|
void |
setName(java.lang.String name)
Set the label's name.
|
void |
setOwnerName(java.lang.String ownerName)
Set the name of the owner of this label.
|
void |
setRevisionSpec(java.lang.String revisionSpec)
Set the optional revision specification for this label.
|
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, parseDate, refresh, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, update
protected static final java.lang.String LOCKED_VALUE
protected static final java.lang.String UNLOCKED_VALUE
protected static final java.lang.String AUTORELOAD_VALUE
protected static final java.lang.String NOAUTORELOAD_VALUE
protected java.lang.String name
protected java.lang.String ownerName
protected java.util.Date lastAccess
protected java.util.Date lastUpdate
protected java.lang.String description
protected java.lang.String revisionSpec
protected boolean locked
protected boolean unloaded
protected boolean autoreload
public LabelSummary()
public LabelSummary(boolean summaryOnly)
summaryOnly
- summary onlypublic LabelSummary(java.util.Map<java.lang.String,java.lang.Object> map)
If the map is null, this is equivalent to calling the default constructor.
map
- spec mappublic java.lang.String getName()
ILabelSummary
getName
in interface ILabelSummary
ILabelSummary.getName()
public void setName(java.lang.String name)
ILabelSummary
setName
in interface ILabelSummary
name
- the label's (new) name.ILabelSummary.setName(java.lang.String)
public java.lang.String getOwnerName()
ILabelSummary
getOwnerName
in interface ILabelSummary
ILabelSummary.getOwnerName()
public void setOwnerName(java.lang.String ownerName)
ILabelSummary
setOwnerName
in interface ILabelSummary
ownerName
- the new owner name.ILabelSummary.setOwnerName(java.lang.String)
public java.util.Date getLastAccess()
ILabelSummary
getLastAccess
in interface ILabelSummary
ILabelSummary.getLastAccess()
public void setLastAccess(java.util.Date lastAccess)
ILabelSummary
setLastAccess
in interface ILabelSummary
lastAccess
- new last access date.ILabelSummary.setLastAccess(java.util.Date)
public java.util.Date getLastUpdate()
ILabelSummary
getLastUpdate
in interface ILabelSummary
ILabelSummary.getLastUpdate()
public void setLastUpdate(java.util.Date lastUpdate)
ILabelSummary
setLastUpdate
in interface ILabelSummary
lastUpdate
- Date last updated.ILabelSummary.setLastUpdate(java.util.Date)
public java.lang.String getDescription()
ILabelSummary
getDescription
in interface ILabelSummary
ILabelSummary.getDescription()
public void setDescription(java.lang.String description)
ILabelSummary
setDescription
in interface ILabelSummary
description
- new label description string.ILabelSummary.setDescription(java.lang.String)
public java.lang.String getRevisionSpec()
ILabelSummary
getRevisionSpec
in interface ILabelSummary
ILabelSummary.getRevisionSpec()
public void setRevisionSpec(java.lang.String revisionSpec)
ILabelSummary
setRevisionSpec
in interface ILabelSummary
revisionSpec
- new revision spec stringILabelSummary.setRevisionSpec(java.lang.String)
public boolean isLocked()
ILabelSummary
isLocked
in interface ILabelSummary
ILabelSummary.isLocked()
public void setLocked(boolean locked)
ILabelSummary
setLocked
in interface ILabelSummary
locked
- true iff the label is locked else it is unlocked.ILabelSummary.setLocked(boolean)
public boolean isAutoReload()
ILabelSummary
isAutoReload
in interface ILabelSummary
ILabelSummary.isAutoReload()
public void setAutoReload(boolean autoreload)
ILabelSummary
setAutoReload
in interface ILabelSummary
autoreload
- true iff the label is "autoreload" else it is "noautoreload".ILabelSummary.setAutoReload(boolean)
public boolean isUnloaded()
ILabelSummary
isUnloaded
in interface ILabelSummary
ILabelSummary.isUnloaded()