Class Streamlog

java.lang.Object
com.perforce.p4java.impl.generic.core.ServerResource
com.perforce.p4java.impl.generic.core.Streamlog
All Implemented Interfaces:
IServerResource, IStreamlog

public class Streamlog extends ServerResource implements IStreamlog
Simple default generic implementation class for the IStreamlog interface.
  • Field Details

  • Constructor Details

    • Streamlog

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

      public Streamlog(Map<String,Object> map, int order)
      Construct a Streamlog implementation, by parsing a map returned by the server. Streamlog is a single change per Stream, sorted by order, to create array.
      Parameters:
      map - spec map
      order - order
  • Method Details

    • getStream

      public String getStream()
      Description copied from interface: IStreamlog
      Return the stream path.
      Specified by:
      getStream in interface IStreamlog
      Returns:
      Stream path string.
    • getChange

      public Integer getChange()
      Description copied from interface: IStreamlog
      Return Perforce changelist's number.
      Specified by:
      getChange in interface IStreamlog
      Returns:
      changelist number.
    • getAction

      public String getAction()
      Description copied from interface: IStreamlog
      Return action associated with the change typically add/edit/delete
      Specified by:
      getAction in interface IStreamlog
      Returns:
      change action string add/delete/edit.
    • getDate

      public Date getDate()
      Description copied from interface: IStreamlog
      Get the date the changelist was created or last updated.
      Specified by:
      getDate in interface IStreamlog
      Returns:
      the date the changelist was created or last updated, or null if unknown.
    • getUser

      public String getUser()
      Description copied from interface: IStreamlog
      Get the user associated with this changelist.
      Specified by:
      getUser in interface IStreamlog
      Returns:
      the username of the user associated with this changelist, or null if no such name exists or can be determined.
    • getClient

      public String getClient()
      Description copied from interface: IStreamlog
      Get the name of the Perforce client workspace associated with this changelist.
      Specified by:
      getClient in interface IStreamlog
      Returns:
      the name of the client associated with this changelist, or null if not known.
    • getAssociatedChange

      public Integer getAssociatedChange()
      Description copied from interface: IStreamlog
      Return Perforce changelist's number of changelist associated with the change.
      Specified by:
      getAssociatedChange in interface IStreamlog
      Returns:
      changelist number.
    • getDescription

      public String getDescription()
      Description copied from interface: IStreamlog
      Return the description associated with this changelist.
      Specified by:
      getDescription in interface IStreamlog
      Returns:
      textual changelist description, or null if no such description.
    • getStreamIntegList

      public List<IStreamIntegrationLog> getStreamIntegList()
      Description copied from interface: IStreamlog
      Return Integration history associated with changelist.
      Specified by:
      getStreamIntegList in interface IStreamlog
      Returns:
      List of hash maps describing integrations.