com.perforce.p4java.impl.generic.core
Class BranchSpecSummary

java.lang.Object
  extended by com.perforce.p4java.impl.generic.core.ServerResource
      extended by com.perforce.p4java.impl.generic.core.BranchSpecSummary
All Implemented Interfaces:
IBranchSpecSummary, IServerResource
Direct Known Subclasses:
BranchSpec

public class BranchSpecSummary
extends ServerResource
implements IBranchSpecSummary

Default implementation class for the IBranchSpecSummary interface.


Field Summary
protected  Date accessed
           
protected  String description
           
protected  boolean locked
           
protected  String name
           
protected  String ownerName
           
protected  Date updated
           
 
Fields inherited from class com.perforce.p4java.impl.generic.core.ServerResource
refreshable, server, updateable
 
Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class com.perforce.p4java.impl.generic.core.ServerResource
canRefresh, canUpdate, complete, refresh, setRefreshable, setServer, update, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.perforce.p4java.core.IServerResource
canRefresh, canUpdate, refresh, setServer, update, update, update
 

Field Detail

accessed

protected Date accessed

updated

protected Date updated

name

protected String name

ownerName

protected String ownerName

description

protected String description

locked

protected boolean locked
Constructor Detail

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).


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.


BranchSpecSummary

public BranchSpecSummary(Map<String,Object> map,
                         boolean summaryOnly)
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.

Method Detail

getAccessed

public Date getAccessed()
Description copied from interface: IBranchSpecSummary
Get the date of the last 'integrate' using this branch.

Specified by:
getAccessed in interface IBranchSpecSummary
See Also:
IBranchSpecSummary.getAccessed()

setAccessed

public void setAccessed(Date accessed)
Description copied from interface: IBranchSpecSummary
Set the last-accessed date. This generally has no effect on the associated Perforce server version of this spec.

Specified by:
setAccessed in interface IBranchSpecSummary
Parameters:
accessed - new accessed date.
See Also:
IBranchSpecSummary.setAccessed(java.util.Date)

getUpdated

public Date getUpdated()
Description copied from interface: IBranchSpecSummary
Get the date specification was last modified.

Specified by:
getUpdated in interface IBranchSpecSummary
See Also:
IBranchSpecSummary.getUpdated()

setUpdated

public void setUpdated(Date updated)
Description copied from interface: IBranchSpecSummary
Set the last-updated date. This generally has no effect on the associated Perforce server version of this spec.

Specified by:
setUpdated in interface IBranchSpecSummary
Parameters:
updated - new updated date.
See Also:
IBranchSpecSummary.setUpdated(java.util.Date)

getName

public String getName()
Description copied from interface: IBranchSpecSummary
Get the name of this branch.

Specified by:
getName in interface IBranchSpecSummary
See Also:
IBranchSpecSummary.getName()

setName

public void setName(String name)
Description copied from interface: IBranchSpecSummary
Set 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:
setName in interface IBranchSpecSummary
Parameters:
name - new branch spec name
See Also:
IBranchSpecSummary.setName(java.lang.String)

getOwnerName

public String getOwnerName()
Description copied from interface: IBranchSpecSummary
Get the name of the user who created this branch.

Specified by:
getOwnerName in interface IBranchSpecSummary
See Also:
IBranchSpecSummary.getOwnerName()

setOwnerName

public void setOwnerName(String ownerName)
Description copied from interface: IBranchSpecSummary
Set 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:
setOwnerName in interface IBranchSpecSummary
Parameters:
ownerName - new owner's name
See Also:
IBranchSpecSummary.setOwnerName(java.lang.String)

getDescription

public String getDescription()
Description copied from interface: IBranchSpecSummary
Get the branch's description (if any).

Specified by:
getDescription in interface IBranchSpecSummary
See Also:
IBranchSpecSummary.getDescription()

setDescription

public void setDescription(String description)
Description copied from interface: IBranchSpecSummary
Set 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:
setDescription in interface IBranchSpecSummary
Parameters:
description - new description string.
See Also:
IBranchSpecSummary.setDescription(java.lang.String)

isLocked

public boolean isLocked()
Description copied from interface: IBranchSpecSummary
Return true if the branch spec is locked.

Specified by:
isLocked in interface IBranchSpecSummary
See Also:
IBranchSpecSummary.isLocked()

setLocked

public void setLocked(boolean locked)
Description copied from interface: IBranchSpecSummary
Set 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:
setLocked in interface IBranchSpecSummary
Parameters:
locked - boolean lock status
See Also:
IBranchSpecSummary.setLocked(boolean)


Copyright © 2015 Perforce Software. All Rights Reserved.