public class BranchSpecSummary extends ServerResource implements IBranchSpecSummary
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Date |
accessed |
protected java.lang.String |
description |
protected boolean |
locked |
protected java.lang.String |
name |
protected java.lang.String |
ownerName |
protected java.util.Date |
updated |
refreshable, server, updateable| Constructor and Description |
|---|
BranchSpecSummary()
Default constructor -- sets all fields to null or false.
|
BranchSpecSummary(boolean summaryOnly)
Default constructor; same as no-argument default constructor,
except that it sets the ServerResource superclass fields appropriately
for summary only (everything false) or full branch spec (updateable and
refreshable).
|
BranchSpecSummary(boolean summaryOnly,
java.util.Date accessed,
java.util.Date updated,
java.lang.String name,
java.lang.String ownerName,
java.lang.String description,
boolean locked)
Explicit-value constructor.
|
BranchSpecSummary(java.util.Map<java.lang.String,java.lang.Object> map,
boolean summaryOnly)
Construct a BranchSpecSummary from a map returned by the Perforce server.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getAccessed()
Get the date of the last 'integrate' using this branch.
|
java.lang.String |
getDescription()
Get the branch's description (if any).
|
java.lang.String |
getName()
Get the name of this branch.
|
java.lang.String |
getOwnerName()
Get the name of the user who created this branch.
|
java.util.Date |
getUpdated()
Get the date specification was last modified.
|
boolean |
isLocked()
Return true if the branch spec is locked.
|
void |
setAccessed(java.util.Date accessed)
Set the last-accessed date.
|
void |
setDescription(java.lang.String description)
Set the branch spec description.
|
void |
setLocked(boolean locked)
Set whether the branch spec is locked or not.
|
void |
setName(java.lang.String name)
Set the name of this branch.
|
void |
setOwnerName(java.lang.String ownerName)
Set the owner's name for this branch.
|
void |
setUpdated(java.util.Date updated)
Set the last-updated date.
|
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, parseDate, refresh, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, refresh, setRawField, setRawFields, setServer, update, update, updateprotected java.util.Date accessed
protected java.util.Date updated
protected java.lang.String name
protected java.lang.String ownerName
protected java.lang.String description
protected boolean locked
public BranchSpecSummary()
public BranchSpecSummary(boolean summaryOnly)
summaryOnly - summary only (everything false) or full branch specpublic BranchSpecSummary(boolean summaryOnly,
java.util.Date accessed,
java.util.Date updated,
java.lang.String name,
java.lang.String ownerName,
java.lang.String description,
boolean locked)
summaryOnly - summary only (everything false) or full branch specaccessed - dateupdated - datename - nameownerName - ownerdescription - descriptionlocked - lockedpublic BranchSpecSummary(java.util.Map<java.lang.String,java.lang.Object> map,
boolean summaryOnly)
If map is null, this is equivalent to calling the default summaryOnly-argument constructor.
map - spec mapsummaryOnly - summary only (everything false) or full branch specpublic java.util.Date getAccessed()
IBranchSpecSummarygetAccessed in interface IBranchSpecSummaryIBranchSpecSummary.getAccessed()public void setAccessed(java.util.Date accessed)
IBranchSpecSummarysetAccessed in interface IBranchSpecSummaryaccessed - new accessed date.IBranchSpecSummary.setAccessed(java.util.Date)public java.util.Date getUpdated()
IBranchSpecSummarygetUpdated in interface IBranchSpecSummaryIBranchSpecSummary.getUpdated()public void setUpdated(java.util.Date updated)
IBranchSpecSummarysetUpdated in interface IBranchSpecSummaryupdated - new updated date.IBranchSpecSummary.setUpdated(java.util.Date)public java.lang.String getName()
IBranchSpecSummarygetName in interface IBranchSpecSummaryIBranchSpecSummary.getName()public void setName(java.lang.String name)
IBranchSpecSummarysetName in interface IBranchSpecSummaryname - new branch spec nameIBranchSpecSummary.setName(java.lang.String)public java.lang.String getOwnerName()
IBranchSpecSummarygetOwnerName in interface IBranchSpecSummaryIBranchSpecSummary.getOwnerName()public void setOwnerName(java.lang.String ownerName)
IBranchSpecSummarysetOwnerName in interface IBranchSpecSummaryownerName - new owner's nameIBranchSpecSummary.setOwnerName(java.lang.String)public java.lang.String getDescription()
IBranchSpecSummarygetDescription in interface IBranchSpecSummaryIBranchSpecSummary.getDescription()public void setDescription(java.lang.String description)
IBranchSpecSummarysetDescription in interface IBranchSpecSummarydescription - new description string.IBranchSpecSummary.setDescription(java.lang.String)public boolean isLocked()
IBranchSpecSummaryisLocked in interface IBranchSpecSummaryIBranchSpecSummary.isLocked()public void setLocked(boolean locked)
IBranchSpecSummarysetLocked in interface IBranchSpecSummarylocked - boolean lock statusIBranchSpecSummary.setLocked(boolean)