|
Clearspace API (2.5.18) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ApprovalDAO
Handles database interactions for relationship approval workflow related functionality.
| Method Summary | |
|---|---|
void |
addContainerApprover(int containerType,
long containerID,
long userID)
Adds a user as a document approver for an entire container. |
void |
createNewWorkflow(long workflowID,
long objID,
long typeID,
Collection<Long> users,
String requestMessage,
String responseMessage,
JiveObjectModerator.Type queuedType)
Creates entries in the jiveWorkflowApproval table for a new workflow. |
void |
deleteEmptyWorkflownBeans(long workflowID)
Deletes all the empty workflow entries. |
void |
deleteUserWorkflowBean(long workflowID,
long userID)
Deletes a given workflow entry given a workflowID and userID. |
void |
deleteUserWorkflows(long userID)
Deletes any workflow entry associated with the given user ID. |
void |
deleteWorkflow(long workflowID)
Deletes all entries in the jiveWorkflowApproval table for a given workflow. |
List<Long> |
getApproverContainers(int containerType,
long userID)
Returns a list of container IDs for the given approver. |
List<Long> |
getContainerApprovers(int containerType,
long containerID)
Returns a list of user IDs for all the container level document approvers. |
List<ApprovalWorkflowNote> |
getResponseNotes(JiveObject jiveObject,
JiveObjectModerator.Type queueType,
JiveObjectModerator.Type... queueTypes)
Return a list of response notes for a given object. |
List<ApprovalWorkflowBean> |
getUnApprovedWorkflowBeans(long userID,
JiveObjectModerator.Type queueType,
JiveObjectModerator.Type... queueTypes)
Returns a list of ApprovalWorkflowBean belonging to the specified user ID and of one of the specified JiveObjectModerator.Type. |
int |
getUnApprovedWorkflowCount(long userID,
JiveObjectModerator.Type queuType,
JiveObjectModerator.Type... queueTypes)
Returns a count of the unapproved workflow items belonging to the specified user ID and of any of the specified JiveObjectModerator.Types. |
ApprovalWorkflowBean |
getWorkflowBean(JiveObject jiveObject,
long approverUserId,
JiveObjectModerator.Type queueType,
JiveObjectModerator.Type... queueTypes)
Returns a specific workflow according to the object and the user approving the workflow's user ID. |
ApprovalWorkflowBean |
getWorkflowBean(long workflowID,
long userID)
Returns a ApprovalWorkflowBean by a workflowID and the userID, or null if none is found. |
List<ApprovalWorkflowBean> |
getWorkflowBeans(JiveObject jiveObject,
JiveObjectModerator.Type queueType,
JiveObjectModerator.Type... queueTypes)
Returns a list of ApprovalWorkflowBean by typeID and objectID of a given JiveObject |
List<ApprovalWorkflowBean> |
getWorkflowBeans(long workflowID)
Returns a list of ApprovalWorkflowBean objects. |
List<ApprovalWorkflowBean> |
getWorkflowBeans(long userID,
long typeID,
JiveObjectModerator.Type queueType,
JiveObjectModerator.Type... queueTypes)
Returns a list of ApprovalWorkflowBean objects that belong to the specified user and that have not been
approved. |
List<ApprovalWorkflowBean> |
getWorkflowBeans(User user,
JiveObjectModerator.Type queueType,
JiveObjectModerator.Type... queueTypes)
Returns a list of ApprovalWorkflowBean for a given user. |
int |
getWorkflowBeansCount(ModerationResultFilter filter)
Returns a count of ApprovalWorkflowBeans that match the given ModerationResultFilter. |
void |
removeContainerApprover(int containerType,
long containerID,
long userID)
Removes a user as a document approver for the specified container. |
void |
update(ApprovalWorkflowBean bean)
Updates the approved and approvalTime fields in the jiveWorkflowApproval table. |
| Method Detail |
|---|
void createNewWorkflow(long workflowID,
long objID,
long typeID,
Collection<Long> users,
String requestMessage,
String responseMessage,
JiveObjectModerator.Type queuedType)
throws DAOException
workflowID - The ID of the workflow.objID - The ID of the object to approve.typeID - The object type of the aforementioned object.users - A List of user IDs for all the people who will be approving this relationship.requestMessage - responseMessage - queuedType - An integer representaion of the queued type
com.jivesoftware.base.database.dao.DAOException - Thrown if there are any underlying database issues.
DAOException
void deleteWorkflow(long workflowID)
throws DAOException
workflowID - The ID of the workflow.
com.jivesoftware.base.database.dao.DAOException - Thrown if there are any underlying database issues.
DAOException
void deleteUserWorkflowBean(long workflowID,
long userID)
throws DAOException
workflowID - The ID of the workflowuserID - The ID of the user that you want the workflow for.
com.jivesoftware.base.database.dao.DAOException - Thrown if there are any underlying database issues.
DAOException
void deleteEmptyWorkflownBeans(long workflowID)
throws DAOException
workflowID - The ID of the workflow
com.jivesoftware.base.database.dao.DAOException - Thrown if there are any underlying database issues.
DAOException
void deleteUserWorkflows(long userID)
throws DAOException
userID -
DAOException - Thrown if there aare any underlying database issues.
List<ApprovalWorkflowBean> getWorkflowBeans(long workflowID)
throws DAOException
ApprovalWorkflowBean objects. ApprovalWorkflowBean objects contain information
about a user's status with a given approval workflow.
workflowID - The ID of the workflow.
com.jivesoftware.base.database.dao.DAOException - Thrown if there are any underlying database issues.
DAOException
void update(ApprovalWorkflowBean bean)
throws DAOException
bean - The bean to update.
com.jivesoftware.base.database.dao.DAOException - Thrown if there are any underlying database issues.
DAOException
int getUnApprovedWorkflowCount(long userID,
JiveObjectModerator.Type queuType,
JiveObjectModerator.Type... queueTypes)
throws DAOException
JiveObjectModerator.Types.
userID - the ID of the user.queueTypes - one or more types.
DAOException - Thrown if there are any underlying database issues.
ApprovalWorkflowBean getWorkflowBean(long workflowID,
long userID)
throws DAOException
ApprovalWorkflowBean by a workflowID and the userID, or null if none is found.
workflowID - The ID of the workflowuserID - The ID of the approver user.
ApprovalWorkflowBean for the user on this workflow
com.jivesoftware.base.database.dao.DAOException - Thrown if there are any underlying database issues.
DAOException
ApprovalWorkflowBean getWorkflowBean(JiveObject jiveObject,
long approverUserId,
JiveObjectModerator.Type queueType,
JiveObjectModerator.Type... queueTypes)
throws DAOException
jiveObject - the object for which the workflow returned will be an approval for.approverUserId - the user ID of the user who is to approve the specified workflow.
DAOException
List<ApprovalWorkflowBean> getWorkflowBeans(JiveObject jiveObject,
JiveObjectModerator.Type queueType,
JiveObjectModerator.Type... queueTypes)
throws DAOException
ApprovalWorkflowBean by typeID and objectID of a given JiveObject
jiveObject - The jiveObject to get workflow beans for.
com.jivesoftware.base.database.dao.DAOException - Thrown if there are any underlying database issues.
DAOException
List<ApprovalWorkflowBean> getWorkflowBeans(User user,
JiveObjectModerator.Type queueType,
JiveObjectModerator.Type... queueTypes)
throws DAOException
ApprovalWorkflowBean for a given user.
user - The user
ApprovalWorkflowBean for a given user.
com.jivesoftware.base.database.dao.DAOException - Thrown if there are any underlying database issues.
DAOException
List<ApprovalWorkflowBean> getWorkflowBeans(long userID,
long typeID,
JiveObjectModerator.Type queueType,
JiveObjectModerator.Type... queueTypes)
throws DAOException
ApprovalWorkflowBean objects that belong to the specified user and that have not been
approved.
userID - The ID of the user to acquire the ApprovalWorkflowBean for.typeID - The Jive Object type to restrict the retrieval to.
ApprovalWorkflowBean
com.jivesoftware.base.database.dao.DAOException - Thrown if there are any underlying database issues.
DAOException
void addContainerApprover(int containerType,
long containerID,
long userID)
throws DAOException
containerType - The object type of the container to add the user as an document approver for.containerID - The ID of the container to add the user as an document approver for.userID - The ID of the user to add as a container level document approver.
DAOException - Thrown if there are any underlying database issues.
void removeContainerApprover(int containerType,
long containerID,
long userID)
throws DAOException
containerType - The object type of the container the user is a document approver for.containerID - The ID of the container the user is a document approver for.userID - The ID of the user who is a document approver.
DAOException - Thrown if there are any underlying database issues.
List<Long> getContainerApprovers(int containerType,
long containerID)
throws DAOException
containerType - The object type of the containercontainerID - The ID of the container to get a list of user IDs of the document approvers.
DAOException - Thrown if there are any underlying database issues.
List<Long> getApproverContainers(int containerType,
long userID)
throws DAOException
containerType - The object type of the containeruserID - The ID of the user assigned as container approver for 1 or more containers
DAOException - Thrown if there are any underlying database issues.
List<ApprovalWorkflowNote> getResponseNotes(JiveObject jiveObject,
JiveObjectModerator.Type queueType,
JiveObjectModerator.Type... queueTypes)
throws DAOException
jiveObject -
ApprovalWorkflowNote
DAOException - Thrown if there are any underlying database issues.
List<ApprovalWorkflowBean> getUnApprovedWorkflowBeans(long userID,
JiveObjectModerator.Type queueType,
JiveObjectModerator.Type... queueTypes)
ApprovalWorkflowBean belonging to the specified user ID and of one of the specified JiveObjectModerator.Type.
userID - the ID of the user.queueTypes - one or more queueTypes.
int getWorkflowBeansCount(ModerationResultFilter filter)
throws DAOException
ApprovalWorkflowBeans that match the given ModerationResultFilter.
filter - the filter.
DAOException - Thrown if there are any underlying database issues.
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||