|
||||||
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(int state,
char abbrev)
protected constructor. |
Method Summary | |
---|---|
char |
getAbbreviation()
Returns resource state abbreviation. |
int |
getState()
Returns the resource state integer for this resource state object. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, 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 |
---|
protected CmsResourceState(int state, char abbrev)
state
- an integer representing the stateabbrev
- an abbreviation characterMethod Detail |
---|
public static CmsResourceState valueOf(int state)
state
- the resource state integer
public char getAbbreviation()
public int getState()
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
in class java.lang.Object
Object.toString()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |