|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<DocumentState>
com.jivesoftware.community.DocumentState
public enum DocumentState
Throughout the document lifecycle a document will have different documents states appropriate to where it is along the lifecycle. There is a built-in limitation to the system where there can only be a single document in the 'published' state at any given moment in time.
| Enum Constant Summary | |
|---|---|
ARCHIVED
Archived document state. |
|
DELETED
Deleted document state. |
|
EXPIRED
Expired document state. |
|
INCOMPLETE
Incomplete document state. |
|
PENDING_APPROVAL
Pending Approval document state. |
|
PUBLISHED
Published document state. |
|
REJECTED
Rejected document state. |
|
| Method Summary | |
|---|---|
int |
getCachedSize()
|
static DocumentState |
getDocumentState(String state)
A helper method to get a specific DocumentState object from its key |
String |
getState()
|
static DocumentState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static DocumentState[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DocumentState INCOMPLETE
public static final DocumentState PENDING_APPROVAL
public static final DocumentState REJECTED
public static final DocumentState PUBLISHED
public static final DocumentState EXPIRED
public static final DocumentState DELETED
public static final DocumentState ARCHIVED
| Method Detail |
|---|
public static final DocumentState[] values()
for(DocumentState c : DocumentState.values())
System.out.println(c);
public static DocumentState valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified namepublic String getState()
public static DocumentState getDocumentState(String state)
state - the state value of the DocumentState object
public int getCachedSize()
getCachedSize in interface com.jivesoftware.community.cache.Cacheable
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||