public class BranchSpecSummary extends ServerResource implements IBranchSpecSummary
| Modifier and Type | Field and Description |
|---|---|
protected Date |
accessed |
protected String |
description |
protected boolean |
locked |
protected String |
name |
protected String |
ownerName |
protected 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,
Date accessed,
Date updated,
String name,
String ownerName,
String description,
boolean locked)
Explicit-value constructor.
|
BranchSpecSummary(Map<String,Object> map,
boolean summaryOnly)
Construct a BranchSpecSummary from a map returned by the Perforce server.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getAccessed()
Get the date of the last 'integrate' using this branch.
|
String |
getDescription()
Get the branch's description (if any).
|
String |
getName()
Get the name of this branch.
|
String |
getOwnerName()
Get the name of the user who created this branch.
|
Date |
getUpdated()
Get the date specification was last modified.
|
boolean |
isLocked()
Return true if the branch spec is locked.
|
void |
setAccessed(Date accessed)
Set the last-accessed date.
|
void |
setDescription(String description)
Set the branch spec description.
|
void |
setLocked(boolean locked)
Set whether the branch spec is locked or not.
|
void |
setName(String name)
Set the name of this branch.
|
void |
setOwnerName(String ownerName)
Set the owner's name for this branch.
|
void |
setUpdated(Date updated)
Set the last-updated date.
|
canRefresh, canUpdate, complete, refresh, setRefreshable, setServer, update, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanRefresh, canUpdate, refresh, setServer, update, update, updateprotected Date accessed
protected Date updated
protected String name
protected String ownerName
protected String description
protected boolean locked
public BranchSpecSummary()
public BranchSpecSummary(boolean summaryOnly)
public BranchSpecSummary(boolean summaryOnly,
Date accessed,
Date updated,
String name,
String ownerName,
String description,
boolean locked)
public BranchSpecSummary(Map<String,Object> map, boolean summaryOnly)
If map is null, this is equivalent to calling the default summaryOnly-argument constructor.
public Date getAccessed()
IBranchSpecSummarygetAccessed in interface IBranchSpecSummaryIBranchSpecSummary.getAccessed()public void setAccessed(Date accessed)
IBranchSpecSummarysetAccessed in interface IBranchSpecSummaryaccessed - new accessed date.IBranchSpecSummary.setAccessed(java.util.Date)public Date getUpdated()
IBranchSpecSummarygetUpdated in interface IBranchSpecSummaryIBranchSpecSummary.getUpdated()public void setUpdated(Date updated)
IBranchSpecSummarysetUpdated in interface IBranchSpecSummaryupdated - new updated date.IBranchSpecSummary.setUpdated(java.util.Date)public String getName()
IBranchSpecSummarygetName in interface IBranchSpecSummaryIBranchSpecSummary.getName()public void setName(String name)
IBranchSpecSummarysetName in interface IBranchSpecSummaryname - new branch spec nameIBranchSpecSummary.setName(java.lang.String)public String getOwnerName()
IBranchSpecSummarygetOwnerName in interface IBranchSpecSummaryIBranchSpecSummary.getOwnerName()public void setOwnerName(String ownerName)
IBranchSpecSummarysetOwnerName in interface IBranchSpecSummaryownerName - new owner's nameIBranchSpecSummary.setOwnerName(java.lang.String)public String getDescription()
IBranchSpecSummarygetDescription in interface IBranchSpecSummaryIBranchSpecSummary.getDescription()public void setDescription(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)Copyright © 2017 Perforce Software. All Rights Reserved.