Class ChangelistSummary

    • Field Detail

      • id

        protected int id
      • clientId

        protected java.lang.String clientId
      • username

        protected java.lang.String username
      • date

        protected java.util.Date date
      • description

        protected java.lang.String description
      • shelved

        protected boolean shelved
      • changelistStream

        protected java.lang.String changelistStream
    • Constructor Detail

      • 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,
                                 java.lang.String clientId,
                                 java.lang.String username,
                                 ChangelistStatus status,
                                 java.util.Date date,
                                 java.lang.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​(java.util.Map<java.lang.String,​java.lang.Object> map,
                                 boolean summaryOnly)
        Convenience constructor, equivalent to this(map, summaryOnly, null).
        Parameters:
        map - spec map
        summaryOnly - summary only
      • ChangelistSummary

        public ChangelistSummary​(java.util.Map<java.lang.String,​java.lang.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