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, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canRefresh, canUpdate, refresh, setServer, update, update, update
protected 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()
IBranchSpecSummary
getAccessed
in interface IBranchSpecSummary
IBranchSpecSummary.getAccessed()
public void setAccessed(Date accessed)
IBranchSpecSummary
setAccessed
in interface IBranchSpecSummary
accessed
- new accessed date.IBranchSpecSummary.setAccessed(java.util.Date)
public Date getUpdated()
IBranchSpecSummary
getUpdated
in interface IBranchSpecSummary
IBranchSpecSummary.getUpdated()
public void setUpdated(Date updated)
IBranchSpecSummary
setUpdated
in interface IBranchSpecSummary
updated
- new updated date.IBranchSpecSummary.setUpdated(java.util.Date)
public String getName()
IBranchSpecSummary
getName
in interface IBranchSpecSummary
IBranchSpecSummary.getName()
public void setName(String name)
IBranchSpecSummary
setName
in interface IBranchSpecSummary
name
- new branch spec nameIBranchSpecSummary.setName(java.lang.String)
public String getOwnerName()
IBranchSpecSummary
getOwnerName
in interface IBranchSpecSummary
IBranchSpecSummary.getOwnerName()
public void setOwnerName(String ownerName)
IBranchSpecSummary
setOwnerName
in interface IBranchSpecSummary
ownerName
- new owner's nameIBranchSpecSummary.setOwnerName(java.lang.String)
public String getDescription()
IBranchSpecSummary
getDescription
in interface IBranchSpecSummary
IBranchSpecSummary.getDescription()
public void setDescription(String description)
IBranchSpecSummary
setDescription
in interface IBranchSpecSummary
description
- new description string.IBranchSpecSummary.setDescription(java.lang.String)
public boolean isLocked()
IBranchSpecSummary
isLocked
in interface IBranchSpecSummary
IBranchSpecSummary.isLocked()
public void setLocked(boolean locked)
IBranchSpecSummary
setLocked
in interface IBranchSpecSummary
locked
- boolean lock statusIBranchSpecSummary.setLocked(boolean)
Copyright © 2017 Perforce Software. All Rights Reserved.