|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DraftManager
Manages the draft features of Clearspace. The following Jive properties correspond to the draft manager settings:
JiveContext.getDraftManager()| Method Summary | |
|---|---|
Draft |
createDraft(Draft draft)
Creates a new draft. |
void |
deleteDraft(Draft draft)
Delete an existing draft. |
int |
getAutosaveInterval()
Returns the setting for the number of seconds between autosave invocations when autosave is enabled for a text field. |
Draft |
getDraft(long draftID)
Returns a draft by draft ID or null if no draft exists with the specified draftID. |
Draft |
getDraft(long userID,
int draftObjectType,
int draftContainerObjectType,
long draftContainerObjectID)
Returns the draft for a particular user associated with a particular community, thread and / or message. |
java.lang.Iterable<Draft> |
getDraftsByUser(long userID)
Returns all drafts for a particular user. |
boolean |
isAutosaveEnabled()
Determines whether or not the system has been configured to allow for autosave in text fields. |
void |
setAutosaveEnabled(boolean enable)
Enables or disables autosave. |
void |
setAutosaveInterval(int interval)
Sets the amount of time (in seconds) that the browser should wait between updating the draft. |
void |
updateDraft(Draft draft)
Update an existing draft. |
| Methods inherited from interface com.jivesoftware.community.JiveManager |
|---|
destroy, initialize |
| Method Detail |
|---|
Draft createDraft(Draft draft)
draft - a Draft
Draft getDraft(long draftID)
throws UnauthorizedException
draftID - the ID of the draft to return.
UnauthorizedException - if the user is not either a System Admin
or the user associated with the draft.
Draft getDraft(long userID,
int draftObjectType,
int draftContainerObjectType,
long draftContainerObjectID)
userID - the user to find draft fordraftObjectType - the draft type to filter the results bydraftContainerObjectType - the type of container to filter bydraftContainerObjectID - the id of a specific container to filter by
java.lang.Iterable<Draft> getDraftsByUser(long userID)
userID - the id of the user
void updateDraft(Draft draft)
throws UnauthorizedException
draft - The draft to be updated.
UnauthorizedException - if the user associated with the draft is
not either a system admin or the owner of the draft.
void deleteDraft(Draft draft)
throws UnauthorizedException
draft - The draft to be deleted.
UnauthorizedException - if the user associated with the draft is
not either a system admin or the owner of the draft.boolean isAutosaveEnabled()
void setAutosaveEnabled(boolean enable)
enable - int getAutosaveInterval()
void setAutosaveInterval(int interval)
interval -
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||