Class ChangelistSummary

java.lang.Object
com.perforce.p4java.impl.generic.core.ServerResource
com.perforce.p4java.impl.generic.core.ChangelistSummary
All Implemented Interfaces:
IChangelistSummary, IServerResource
Direct Known Subclasses:
Changelist

public class ChangelistSummary extends ServerResource implements IChangelistSummary
Default implementation of the IChangelistSummary interface.
  • Field Details

  • Constructor Details

    • ChangelistSummary

      public ChangelistSummary()
      Default constructor -- sets all fields to false or null, id to IChangelist.UNKNOWN, and calls the default ServerResource constructor.
    • ChangelistSummary

      public ChangelistSummary(boolean complete, boolean completable, boolean refreshable, boolean updateable, IServer server)
      Explicit-value pass-through constructor for the ServerResource fields. Usually used by IChangelistSummary extensions.
      Parameters:
      complete - complete
      completable - completable
      refreshable - refreshable
      updateable - updateable
      server - server
    • ChangelistSummary

      public ChangelistSummary(int id, String clientId, String username, ChangelistStatus status, Date date, String description, boolean shelved)
      Explicit-value constructor; calls the default ServerResource constructor.
      Parameters:
      id - id
      clientId - client
      username - user name
      status - status
      date - date
      description - description
      shelved - shelved
    • ChangelistSummary

      public ChangelistSummary(IChangelistSummary summary)
      Construct a new ChangelistSummary from the passed-in summary. If summary is null, this is equivalent to calling the default constructor.
      Parameters:
      summary - summary object
    • ChangelistSummary

      public ChangelistSummary(Map<String,Object> map, boolean summaryOnly)
      Convenience constructor, equivalent to this(map, summaryOnly, null).
      Parameters:
      map - spec map
      summaryOnly - summary only
    • ChangelistSummary

      public ChangelistSummary(Map<String,Object> map, boolean summaryOnly, IServer server)
      Construct a ChangelistSummary from a suitable map returned from the Perforce server. If map is null, this is equivalent to calling the default constructor; otherwise, if summaryOnly is true, the map is assumed to come from a "p4 changes" command and processed accordingly, with the superclass ServerResource fields set accordingly; otherwise the map is assumed to come from a full changelist command and the superclass fields are also set appropriately for the full changelist. The server parameter is ignored for summaryOnly objects.

      Note that map keys returned from the Perforce server are sometimes different for summary fields and full fields, so you have to be clear about where the map came from to get accurate results.

      Parameters:
      map - spec map
      summaryOnly - summary only
      server - server
  • Method Details