public interface IChangelistSummary
Changelist summaries are typically returned from the server's changelist list methods (e.g. getChangelists) and normally contain only the fields returned by the Perforce "p4 changes" command (i.e. they're missing things like files and job lists), and allow only "local" field setter and getter operations. For full changelist functionality, use the IChangelist interface that extends this interface.
Unextended IChangelistSummary objects are complete, and neither refreshable nor updateable.
Modifier and Type | Interface and Description |
---|---|
static class |
IChangelistSummary.Visibility
Defines the visibility of the changelist.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getChangelistStream()
Return the Stream spec mark for edit in changelist.
|
java.lang.String |
getClientId()
Get the ID 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.
|
int |
getId()
Return the Perforce changelist's ID.
|
ChangelistStatus |
getStatus()
Get the status of this changelist, if known.
|
java.lang.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
getStatus() is
ChangelistStatus.PENDING and that have been returned as
IChangelistSummary objects. |
void |
setClientId(java.lang.String clientId)
Set the client ID.
|
void |
setDate(java.util.Date date)
Set the changelist date.
|
java.lang.String |
setDescription(java.lang.String newDescription)
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(java.lang.String username)
Set the changelist owner ID.
|
void |
setVisibility(IChangelistSummary.Visibility visibility)
Set the visibility associated with this changelist.
|
int getId()
java.lang.String getDescription()
java.lang.String setDescription(java.lang.String newDescription)
newDescription
- non-null new description string.ChangelistStatus getStatus()
java.util.Date getDate()
java.lang.String getClientId()
java.lang.String getUsername()
void setId(int id)
id
- new changelist ID.void setClientId(java.lang.String clientId)
clientId
- new client ID.void setUsername(java.lang.String username)
username
- new owner's user name.void setStatus(ChangelistStatus status)
status
- statusvoid setDate(java.util.Date date)
date
- new changelist dateboolean isShelved()
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.void setShelved(boolean shelved)
shelved
- new shelved value.IChangelistSummary.Visibility getVisibility()
void setVisibility(IChangelistSummary.Visibility visibility)
visibility
- visabilityjava.lang.String getChangelistStream()