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

public class BranchSpecSummary extends ServerResource implements IBranchSpecSummary
Default implementation class for the IBranchSpecSummary interface.
  • Field Details

    • 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 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 spec
      accessed - date
      updated - date
      name - name
      ownerName - owner
      description - description
      locked - locked
    • 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.

      Parameters:
      map - spec map
      summaryOnly - summary only (everything false) or full branch spec
  • Method Details