Class BranchSpecSummary
java.lang.Object
com.perforce.p4java.impl.generic.core.ServerResource
com.perforce.p4java.impl.generic.core.BranchSpecSummary
- All Implemented Interfaces:
IBranchSpecSummary,IServerResource
- Direct Known Subclasses:
BranchSpec
Default implementation class for the IBranchSpecSummary interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Dateprotected Stringprotected booleanprotected Stringprotected Stringprotected DateFields inherited from class com.perforce.p4java.impl.generic.core.ServerResource
refreshable, server, updateable -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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. -
Method Summary
Modifier and TypeMethodDescriptionGet the date of the last 'integrate' using this branch.Get the branch's description (if any).getName()Get the name of this branch.Get the name of the user who created this branch.Get the date specification was last modified.booleanisLocked()Return true if the branch spec is locked.voidsetAccessed(Date accessed) Set the last-accessed date.voidsetDescription(String description) Set the branch spec description.voidsetLocked(boolean locked) Set whether the branch spec is locked or not.voidSet the name of this branch.voidsetOwnerName(String ownerName) Set the owner's name for this branch.voidsetUpdated(Date updated) Set the last-updated date.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
-
accessed
-
updated
-
name
-
ownerName
-
description
-
locked
protected boolean locked
-
-
Constructor Details
-
BranchSpecSummary
public BranchSpecSummary()Default constructor -- sets all fields to null or false. -
BranchSpecSummary
public 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).- Parameters:
summaryOnly- summary only (everything false) or full branch spec
-
BranchSpecSummary
public BranchSpecSummary(boolean summaryOnly, Date accessed, Date updated, String name, String ownerName, String description, boolean locked) Explicit-value constructor. If summaryOnly is true, refreshable and updeateable are set true in the ServerResource superclass, otherwise they're set false.- Parameters:
summaryOnly- summary only (everything false) or full branch specaccessed- dateupdated- datename- nameownerName- ownerdescription- descriptionlocked- locked
-
BranchSpecSummary
Construct a BranchSpecSummary from a map returned by the Perforce server. If summaryOnly is true, this map was returned by the IServer getBranchSummaryList or similar summary-only method; otherwise it's assumed to be the full branch spec.If map is null, this is equivalent to calling the default summaryOnly-argument constructor.
- Parameters:
map- spec mapsummaryOnly- summary only (everything false) or full branch spec
-
-
Method Details
-
getAccessed
Description copied from interface:IBranchSpecSummaryGet the date of the last 'integrate' using this branch.- Specified by:
getAccessedin interfaceIBranchSpecSummary- Returns:
- date
- See Also:
-
setAccessed
Description copied from interface:IBranchSpecSummarySet the last-accessed date. This generally has no effect on the associated Perforce server version of this spec.- Specified by:
setAccessedin interfaceIBranchSpecSummary- Parameters:
accessed- new accessed date.- See Also:
-
getUpdated
Description copied from interface:IBranchSpecSummaryGet the date specification was last modified.- Specified by:
getUpdatedin interfaceIBranchSpecSummary- Returns:
- date
- See Also:
-
setUpdated
Description copied from interface:IBranchSpecSummarySet the last-updated date. This generally has no effect on the associated Perforce server version of this spec.- Specified by:
setUpdatedin interfaceIBranchSpecSummary- Parameters:
updated- new updated date.- See Also:
-
getName
Description copied from interface:IBranchSpecSummaryGet the name of this branch.- Specified by:
getNamein interfaceIBranchSpecSummary- Returns:
- name
- See Also:
-
setName
Description copied from interface:IBranchSpecSummarySet the name of this branch. This will not change the name of the associated branch spec on the Perforce server unless you arrange for the update to server.- Specified by:
setNamein interfaceIBranchSpecSummary- Parameters:
name- new branch spec name- See Also:
-
getOwnerName
Description copied from interface:IBranchSpecSummaryGet the name of the user who created this branch.- Specified by:
getOwnerNamein interfaceIBranchSpecSummary- Returns:
- owner
- See Also:
-
setOwnerName
Description copied from interface:IBranchSpecSummarySet the owner's name for this branch. This will not change the associated branch spec on the Perforce server unless you arrange for the update to server.- Specified by:
setOwnerNamein interfaceIBranchSpecSummary- Parameters:
ownerName- new owner's name- See Also:
-
getDescription
Description copied from interface:IBranchSpecSummaryGet the branch's description (if any).- Specified by:
getDescriptionin interfaceIBranchSpecSummary- Returns:
- description
- See Also:
-
setDescription
Description copied from interface:IBranchSpecSummarySet the branch spec description. This will not change the associated branch spec on the Perforce server unless you arrange for the update to server.- Specified by:
setDescriptionin interfaceIBranchSpecSummary- Parameters:
description- new description string.- See Also:
-
isLocked
public boolean isLocked()Description copied from interface:IBranchSpecSummaryReturn true if the branch spec is locked.- Specified by:
isLockedin interfaceIBranchSpecSummary- Returns:
- true if locked
- See Also:
-
setLocked
public void setLocked(boolean locked) Description copied from interface:IBranchSpecSummarySet whether the branch spec is locked or not. This will not change the associated branch spec on the Perforce server unless you arrange for the update to server.- Specified by:
setLockedin interfaceIBranchSpecSummary- Parameters:
locked- boolean lock status- See Also:
-