|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.perforce.p4java.impl.generic.core.ServerResource com.perforce.p4java.impl.generic.core.ChangelistSummary
public class ChangelistSummary
Default implementation of the IChangelistSummary interface.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.perforce.p4java.core.IChangelistSummary |
---|
IChangelistSummary.Visibility |
Field Summary | |
---|---|
protected static String |
CHANGE_KEY
|
protected static String |
CLIENT_KEY
|
protected String |
clientId
|
protected Date |
date
|
protected static String |
DATE_FORMAT
|
protected static String |
DATE_KEY
|
protected String |
description
|
protected static String |
DESCRIPTION_KEY
|
protected int |
id
|
protected static String |
JOBS_KEY
|
protected static String |
NEW_KEY
|
protected boolean |
shelved
|
protected ChangelistStatus |
status
|
protected static String |
STATUS_KEY
|
protected static String |
USER_KEY
|
protected String |
username
|
protected IChangelistSummary.Visibility |
visibility
|
Fields inherited from class com.perforce.p4java.impl.generic.core.ServerResource |
---|
refreshable, server, updateable |
Constructor Summary | |
---|---|
ChangelistSummary()
Default constructor -- sets all fields to false or null, id to IChangelist.UNKNOWN, and calls the default ServerResource constructor. |
|
ChangelistSummary(boolean complete,
boolean completable,
boolean refreshable,
boolean updateable,
IServer server)
Explicit-value pass-through constructor for the ServerResource fields. |
|
ChangelistSummary(IChangelistSummary summary)
Construct a new ChangelistSummary from the passed-in summary. |
|
ChangelistSummary(int id,
String clientId,
String username,
ChangelistStatus status,
Date date,
String description,
boolean shelved)
Explicit-value constructor; calls the default ServerResource constructor. |
|
ChangelistSummary(Map<String,Object> map,
boolean summaryOnly)
Convenience constructor, equivalent to this(map, summaryOnly, null). |
|
ChangelistSummary(Map<String,Object> map,
boolean summaryOnly,
IServer server)
Construct a ChangelistSummary from a suitable map returned from the Perforce server. |
Method Summary | |
---|---|
String |
getClientId()
Get the ID of the Perforce client workspace associated with this changelist. |
Date |
getDate()
Get the date the changelist was created or last updated. |
String |
getDescription()
Return the description associated with this changelist. |
int |
getId()
Return the Perforce changelist's ID. |
ChangelistStatus |
getStatus()
Get the status of this changelist, if known. |
String |
getUsername()
Get the user name of the user associated with this changelist. |
IChangelistSummary.Visibility |
getVisibility()
Get the visibility associated with this changelist. |
boolean |
isShelved()
Does this changelist contain at least one shelved file? This only applies to changelists whose IChangelistSummary.getStatus() is
ChangelistStatus.PENDING and that have been returned as
IChangelistSummary objects. |
void |
setClientId(String clientId)
Set the client ID. |
void |
setDate(Date date)
Set the changelist date. |
String |
setDescription(String description)
Set the description string for this changelist. |
void |
setId(int id)
Set the changelist ID. |
void |
setShelved(boolean shelved)
Set the shelved status of of this changelist (see isShelved()). |
void |
setStatus(ChangelistStatus status)
Set the changelist status. |
void |
setUsername(String username)
Set the changelist owner ID. |
void |
setVisibility(IChangelistSummary.Visibility visibility)
Set the visibility associated with this changelist. |
Methods inherited from class com.perforce.p4java.impl.generic.core.ServerResource |
---|
canRefresh, canUpdate, complete, refresh, setRefreshable, setServer, update, update, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final String CHANGE_KEY
protected static final String NEW_KEY
protected static final String CLIENT_KEY
protected static final String USER_KEY
protected static final String STATUS_KEY
protected static final String DATE_KEY
protected static final String DESCRIPTION_KEY
protected static final String JOBS_KEY
protected static final String DATE_FORMAT
protected int id
protected String clientId
protected String username
protected ChangelistStatus status
protected Date date
protected String description
protected boolean shelved
protected IChangelistSummary.Visibility visibility
Constructor Detail |
---|
public ChangelistSummary()
public ChangelistSummary(boolean complete, boolean completable, boolean refreshable, boolean updateable, IServer server)
public ChangelistSummary(int id, String clientId, String username, ChangelistStatus status, Date date, String description, boolean shelved)
public ChangelistSummary(IChangelistSummary summary)
public ChangelistSummary(Map<String,Object> map, boolean summaryOnly)
public ChangelistSummary(Map<String,Object> map, boolean summaryOnly, IServer server)
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.
Method Detail |
---|
public int getId()
IChangelistSummary
getId
in interface IChangelistSummary
IChangelistSummary.getId()
public void setId(int id)
IChangelistSummary
setId
in interface IChangelistSummary
id
- new changelist ID.IChangelistSummary.setId(int)
public String getClientId()
IChangelistSummary
getClientId
in interface IChangelistSummary
IChangelistSummary.getClientId()
public void setClientId(String clientId)
IChangelistSummary
setClientId
in interface IChangelistSummary
clientId
- new client ID.IChangelistSummary.setClientId(java.lang.String)
public String getUsername()
IChangelistSummary
getUsername
in interface IChangelistSummary
IChangelistSummary.getUsername()
public void setUsername(String username)
IChangelistSummary
setUsername
in interface IChangelistSummary
username
- new owner's user name.IChangelistSummary.setUsername(java.lang.String)
public ChangelistStatus getStatus()
IChangelistSummary
getStatus
in interface IChangelistSummary
IChangelistSummary.getStatus()
public void setStatus(ChangelistStatus status)
IChangelistSummary
setStatus
in interface IChangelistSummary
public Date getDate()
IChangelistSummary
getDate
in interface IChangelistSummary
IChangelistSummary.getDate()
public void setDate(Date date)
IChangelistSummary
setDate
in interface IChangelistSummary
date
- new changelist dateIChangelistSummary.setDate(java.util.Date)
public String getDescription()
IChangelistSummary
getDescription
in interface IChangelistSummary
IChangelistSummary.getDescription()
public String setDescription(String description)
IChangelistSummary
setDescription
in interface IChangelistSummary
description
- non-null new description string.
IChangelistSummary.setDescription(java.lang.String)
public boolean isShelved()
IChangelistSummary
IChangelistSummary.getStatus()
is
ChangelistStatus.PENDING
and that have been returned as
IChangelistSummary objects. The value here is unreliable for
full IChangelist objects returned from getChangelist, etc.
isShelved
in interface IChangelistSummary
IChangelistSummary.isShelved()
public void setShelved(boolean shelved)
IChangelistSummary
setShelved
in interface IChangelistSummary
shelved
- new shelved value.IChangelistSummary.setShelved(boolean)
public IChangelistSummary.Visibility getVisibility()
IChangelistSummary
getVisibility
in interface IChangelistSummary
public void setVisibility(IChangelistSummary.Visibility visibility)
IChangelistSummary
setVisibility
in interface IChangelistSummary
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |