public class CmsResourceState
extends java.lang.Object
implements java.io.Serializable
限定符和类型 | 字段和说明 |
---|---|
static CmsResourceState |
STATE_CHANGED
Indicates if a resource has been changed in the offline version when compared to the online version.
|
static CmsResourceState |
STATE_DELETED
Indicates if a resource has been deleted in the offline version when compared to the online version.
|
static CmsResourceState |
STATE_KEEP
Special state value that indicates the current state must be kept on a resource,
this value must never be written to the database.
|
static CmsResourceState |
STATE_NEW
Indicates if a resource is new in the offline version when compared to the online version.
|
static CmsResourceState |
STATE_UNCHANGED
Indicates if a resource is unchanged in the offline version when compared to the online version.
|
限定符 | 构造器和说明 |
---|---|
protected |
CmsResourceState()
已过时。
Don't use this constructor!
It is only used to transfer the resource state via RPC call.
|
protected |
CmsResourceState(int state,
char abbrev)
protected constructor.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object obj) |
char |
getAbbreviation()
Returns resource state abbreviation.
|
int |
getState()
Returns the resource state integer for this resource state object.
|
int |
hashCode() |
boolean |
isChanged()
Returns if this is
CmsResource.STATE_CHANGED . |
boolean |
isDeleted()
Returns if this is
CmsResource.STATE_DELETED . |
boolean |
isKeep()
Returns if this is
CmsResource.STATE_KEEP . |
boolean |
isNew()
Returns if this is
CmsResource.STATE_NEW . |
boolean |
isUnchanged()
Returns if this is
CmsResource.STATE_UNCHANGED . |
java.lang.String |
toString() |
static CmsResourceState |
valueOf(int state)
Returns the resource state object from the resource state integer.
|
public static final CmsResourceState STATE_CHANGED
public static final CmsResourceState STATE_DELETED
public static final CmsResourceState STATE_KEEP
public static final CmsResourceState STATE_NEW
public static final CmsResourceState STATE_UNCHANGED
@Deprecated protected CmsResourceState()
protected CmsResourceState(int state, char abbrev)
state
- an integer representing the stateabbrev
- an abbreviation characterpublic static CmsResourceState valueOf(int state)
state
- the resource state integerpublic boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
Object.equals(java.lang.Object)
public char getAbbreviation()
public int getState()
public int hashCode()
hashCode
在类中 java.lang.Object
Object.hashCode()
public boolean isChanged()
CmsResource.STATE_CHANGED
.CmsResource.STATE_CHANGED
public boolean isDeleted()
CmsResource.STATE_DELETED
.CmsResource.STATE_DELETED
public boolean isKeep()
CmsResource.STATE_KEEP
.CmsResource.STATE_KEEP
public boolean isNew()
CmsResource.STATE_NEW
.CmsResource.STATE_NEW
public boolean isUnchanged()
CmsResource.STATE_UNCHANGED
.CmsResource.STATE_UNCHANGED
public java.lang.String toString()
toString
在类中 java.lang.Object
Object.toString()