Package com.appiancorp.suiteapi.content
Class Approval
java.lang.Object
com.appiancorp.suiteapi.content.Approval
The approval bean contains the approval status for a list of content items.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionLong[]
Get the explicit groups that could approve, not including implicit App Admins.String[]
Get the explicit users that could approve, not including implicit App Admins.Long[]
getId()
Get the content ids that were acted upon (this is the full list of ids that were acted upon, while other methods such asgetPendingId()
return the appropriate subsets of this list).Long[]
Get the ids that were not fully acted upon, and as such are in a pending state (pending creation approval, deletion approval, etc.).Long[]
Get the log ids of those pending (the log ids being KC ids where applicable).String[]
Get the names of the pending content items.void
setApproverGroups
(Long[] approverGroups_) Set the groups that can approve.void
setApproverUsers
(String[] approverUsers_) Set the users that can approve.void
Set the content ids that were acted upon (created, deleted, etc).void
setPendingId
(Long[] pendingIds_) Set the ids that were not fully acted upon, and as such are in a pending state (pending creation approval, deletion approval, etc.).void
setPendingLogId
(Long[] pendingLogIds_) Get the log ids of those pending (the log ids being KC ids where applicable).void
setPendingName
(String[] pendingNames_) Set the names of the pending content items.
-
Constructor Details
-
Approval
public Approval()
-
-
Method Details
-
getApproverGroups
Get the explicit groups that could approve, not including implicit App Admins. This is most commonly used for notifications.- Returns:
- the ids of the approver groups
- See Also:
-
setApproverGroups
Set the groups that can approve.- Parameters:
approverGroups_
- ids of the approver groups- See Also:
-
getApproverUsers
Get the explicit users that could approve, not including implicit App Admins. This is most commonly used for notifications.- Returns:
- usernames of the approvers
- See Also:
-
setApproverUsers
Set the users that can approve.- Parameters:
approverUsers_
- usernames of the approvers- See Also:
-
getId
Get the content ids that were acted upon (this is the full list of ids that were acted upon, while other methods such asgetPendingId()
return the appropriate subsets of this list).- Returns:
- list of content ids
- See Also:
-
setId
Set the content ids that were acted upon (created, deleted, etc).- Parameters:
ids_
- list of content ids- See Also:
-
getPendingId
Get the ids that were not fully acted upon, and as such are in a pending state (pending creation approval, deletion approval, etc.).- Returns:
- list of pending content ids
- See Also:
-
setPendingId
Set the ids that were not fully acted upon, and as such are in a pending state (pending creation approval, deletion approval, etc.).- Parameters:
pendingIds_
- list of content ids- See Also:
-
getPendingLogId
Get the log ids of those pending (the log ids being KC ids where applicable).- Returns:
- log ids
- See Also:
-
setPendingLogId
Get the log ids of those pending (the log ids being KC ids where applicable).- Parameters:
pendingLogIds_
- log ids- See Also:
-
getPendingName
Get the names of the pending content items.- Returns:
- names of pending content items
- See Also:
-
setPendingName
Set the names of the pending content items.- Parameters:
pendingNames_
- content names- See Also:
-