|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.db.CmsResourceState
public class CmsResourceState
Enumeration class for the different resource states.
| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
protected |
CmsResourceState()
Deprecated. 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. |
| Method Summary | |
|---|---|
boolean |
equals(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. |
String |
toString()
|
static CmsResourceState |
valueOf(int state)
Returns the resource state object from the resource state integer. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
@Deprecated protected CmsResourceState()
protected CmsResourceState(int state,
char abbrev)
state - an integer representing the stateabbrev - an abbreviation character| Method Detail |
|---|
public static CmsResourceState valueOf(int state)
state - the resource state integer
public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public char getAbbreviation()
public int getState()
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean isChanged()
CmsResource.STATE_CHANGED.
CmsResource.STATE_CHANGEDpublic boolean isDeleted()
CmsResource.STATE_DELETED.
CmsResource.STATE_DELETEDpublic boolean isKeep()
CmsResource.STATE_KEEP.
CmsResource.STATE_KEEPpublic boolean isNew()
CmsResource.STATE_NEW.
CmsResource.STATE_NEWpublic boolean isUnchanged()
CmsResource.STATE_UNCHANGED.
CmsResource.STATE_UNCHANGEDpublic String toString()
toString in class ObjectObject.toString()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||