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 Summary
Fields Modifier and Type Field Description protected java.lang.Stringactionprotected java.lang.IntegerassociatedChangeprotected java.lang.Integerchangeprotected java.lang.Stringclientprotected java.util.Datedateprotected java.lang.Stringdescriptionprotected java.lang.Stringstreamprotected java.util.List<IStreamIntegrationLog>streamIntegListprotected java.lang.Stringuser-
Fields inherited from class com.perforce.p4java.impl.generic.core.ServerResource
refreshable, server, updateable
-
-
Constructor Summary
Constructors Constructor Description Streamlog()Default constructor -- sets all fields to false or null, and calls the default ServerResource constructor.Streamlog(java.util.Map<java.lang.String,java.lang.Object> map, int order)Construct a Streamlog implementation, by parsing a map returned by the server.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAction()Return action associated with the change typically add/edit/deletejava.lang.IntegergetAssociatedChange()Return Perforce changelist's number of changelist associated with the change.java.lang.IntegergetChange()Return Perforce changelist's number.java.lang.StringgetClient()Get the name of the Perforce client workspace associated with this changelist.java.util.DategetDate()Get the date the changelist was created or last updated.java.lang.StringgetDescription()Return the description associated with this changelist.java.lang.StringgetStream()Return the stream path.java.util.List<IStreamIntegrationLog>getStreamIntegList()Return Integration history associated with changelist.java.lang.StringgetUser()Get the user associated with this changelist.-
Methods inherited from class com.perforce.p4java.impl.generic.core.ServerResource
canRefresh, canUpdate, clearRawFields, complete, getRawField, getRawFields, hasRawField, parseDate, refresh, setRawField, setRawFields, setRefreshable, setServer, toDateString, update, update, update
-
-
-
-
Field Detail
-
stream
protected java.lang.String stream
-
change
protected java.lang.Integer change
-
action
protected java.lang.String action
-
date
protected java.util.Date date
-
user
protected java.lang.String user
-
client
protected java.lang.String client
-
associatedChange
protected java.lang.Integer associatedChange
-
description
protected java.lang.String description
-
streamIntegList
protected java.util.List<IStreamIntegrationLog> streamIntegList
-
-
Constructor Detail
-
Streamlog
public Streamlog()
Default constructor -- sets all fields to false or null, and calls the default ServerResource constructor.
-
Streamlog
public Streamlog(java.util.Map<java.lang.String,java.lang.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 maporder- order
-
-
Method Detail
-
getStream
public java.lang.String getStream()
Description copied from interface:IStreamlogReturn the stream path.- Specified by:
getStreamin interfaceIStreamlog- Returns:
- Stream path string.
-
getChange
public java.lang.Integer getChange()
Description copied from interface:IStreamlogReturn Perforce changelist's number.- Specified by:
getChangein interfaceIStreamlog- Returns:
- changelist number.
-
getAction
public java.lang.String getAction()
Description copied from interface:IStreamlogReturn action associated with the change typically add/edit/delete- Specified by:
getActionin interfaceIStreamlog- Returns:
- change action string add/delete/edit.
-
getDate
public java.util.Date getDate()
Description copied from interface:IStreamlogGet the date the changelist was created or last updated.- Specified by:
getDatein interfaceIStreamlog- Returns:
- the date the changelist was created or last updated, or null if unknown.
-
getUser
public java.lang.String getUser()
Description copied from interface:IStreamlogGet the user associated with this changelist.- Specified by:
getUserin interfaceIStreamlog- Returns:
- the username of the user associated with this changelist, or null if no such name exists or can be determined.
-
getClient
public java.lang.String getClient()
Description copied from interface:IStreamlogGet the name of the Perforce client workspace associated with this changelist.- Specified by:
getClientin interfaceIStreamlog- Returns:
- the name of the client associated with this changelist, or null if not known.
-
getAssociatedChange
public java.lang.Integer getAssociatedChange()
Description copied from interface:IStreamlogReturn Perforce changelist's number of changelist associated with the change.- Specified by:
getAssociatedChangein interfaceIStreamlog- Returns:
- changelist number.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:IStreamlogReturn the description associated with this changelist.- Specified by:
getDescriptionin interfaceIStreamlog- Returns:
- textual changelist description, or null if no such description.
-
getStreamIntegList
public java.util.List<IStreamIntegrationLog> getStreamIntegList()
Description copied from interface:IStreamlogReturn Integration history associated with changelist.- Specified by:
getStreamIntegListin interfaceIStreamlog- Returns:
- List of hash maps describing integrations.
-
-