|
Jive API (3.0.13) 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 Jive SBS. 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. |
void |
deleteUserDrafts(User user)
Delete all of a given user's drafts. |
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. |
Iterable<Draft> |
getDraftsByContainer(int containerObjectType,
long containerObjectID)
Returns all drafts for a particular container. |
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 |
moveDraftToContainer(EntityDescriptor destination,
Draft draft)
Moves the draft to the a different container. |
void |
moveDraftToContainer(JiveContainer destination,
Draft draft)
Moves the draft to the a different container. |
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 |
| 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
Iterable<Draft> getDraftsByUser(long userID)
userID - the id of the user
Iterable<Draft> getDraftsByContainer(int containerObjectType,
long containerObjectID)
containerObjectType - container object typecontainerObjectID - container id
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.
void deleteUserDrafts(User user)
throws UnauthorizedException
user - the owner of the drafts being deleted.
UnauthorizedException - if the authenticated user is not a sys-admin or user-admin.boolean isAutosaveEnabled()
void setAutosaveEnabled(boolean enable)
enable - int getAutosaveInterval()
void setAutosaveInterval(int interval)
interval -
void moveDraftToContainer(JiveContainer destination,
Draft draft)
destination - container to move the draft todraft - draft to be moved
void moveDraftToContainer(EntityDescriptor destination,
Draft draft)
destination - object to move the draft todraft - draft to be moved
|
Jive Product Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||