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.String
action
protected java.lang.Integer
associatedChange
protected java.lang.Integer
change
protected java.lang.String
client
protected java.util.Date
date
protected java.lang.String
description
protected java.lang.String
stream
protected java.util.List<IStreamIntegrationLog>
streamIntegList
protected java.lang.String
user
-
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.String
getAction()
Return action associated with the change typically add/edit/deletejava.lang.Integer
getAssociatedChange()
Return Perforce changelist's number of changelist associated with the change.java.lang.Integer
getChange()
Return Perforce changelist's number.java.lang.String
getClient()
Get the name of the Perforce client workspace associated with this changelist.java.util.Date
getDate()
Get the date the changelist was created or last updated.java.lang.String
getDescription()
Return the description associated with this changelist.java.lang.String
getStream()
Return the stream path.java.util.List<IStreamIntegrationLog>
getStreamIntegList()
Return Integration history associated with changelist.java.lang.String
getUser()
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:IStreamlog
Return the stream path.- Specified by:
getStream
in interfaceIStreamlog
- Returns:
- Stream path string.
-
getChange
public java.lang.Integer getChange()
Description copied from interface:IStreamlog
Return Perforce changelist's number.- Specified by:
getChange
in interfaceIStreamlog
- Returns:
- changelist number.
-
getAction
public java.lang.String getAction()
Description copied from interface:IStreamlog
Return action associated with the change typically add/edit/delete- Specified by:
getAction
in interfaceIStreamlog
- Returns:
- change action string add/delete/edit.
-
getDate
public java.util.Date getDate()
Description copied from interface:IStreamlog
Get the date the changelist was created or last updated.- Specified by:
getDate
in 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:IStreamlog
Get the user associated with this changelist.- Specified by:
getUser
in 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:IStreamlog
Get the name of the Perforce client workspace associated with this changelist.- Specified by:
getClient
in 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:IStreamlog
Return Perforce changelist's number of changelist associated with the change.- Specified by:
getAssociatedChange
in interfaceIStreamlog
- Returns:
- changelist number.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:IStreamlog
Return the description associated with this changelist.- Specified by:
getDescription
in interfaceIStreamlog
- Returns:
- textual changelist description, or null if no such description.
-
getStreamIntegList
public java.util.List<IStreamIntegrationLog> getStreamIntegList()
Description copied from interface:IStreamlog
Return Integration history associated with changelist.- Specified by:
getStreamIntegList
in interfaceIStreamlog
- Returns:
- List of hash maps describing integrations.
-
-