Package com.appiancorp.suiteapi.content
Class Approved
java.lang.Object
com.appiancorp.suiteapi.content.Approved
This bean contains information about an approved action.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the action which was approved/rejectedReturns the approved type.getId()Returns the content id upon which the action was taken.getLogId()Get the log id.Returns the user that requested the action.Gets the version number of the content being approved/rejected ornullif the version is the current one (ContentConstants.VERSION_CURRENT)voidSet the action approved/rejected.voidsetApprovedType(Integer approved) Sets the approved type.voidSet the content id upon which the action was taken.voidSet the log id.voidsetUsername(String username_) Set the user that requested the action.voidsetVersionNumber(Integer versionNumber) Sets the version number.toString()
-
Field Details
-
APPROVED_TYPE_REJECT
-
APPROVED_TYPE_APPROVE
-
-
Constructor Details
-
Approved
public Approved()
-
-
Method Details
-
getAction
Get the action which was approved/rejected- Returns:
- the action approved/rejected. One of
ContentConstants.ACT_CREATE,ContentConstants.ACT_DEACTIVATE, orContentConstants.ACT_DELETE - See Also:
-
setAction
Set the action approved/rejected.- Parameters:
action_- One ofContentConstants.ACT_CREATE,ContentConstants.ACT_DEACTIVATE, orContentConstants.ACT_DELETE- See Also:
-
getId
Returns the content id upon which the action was taken.- Returns:
- the content id
- See Also:
-
setId
Set the content id upon which the action was taken.- Parameters:
id_- content id- See Also:
-
getLogId
Get the log id.- Returns:
- the log id
- See Also:
-
setLogId
Set the log id.- Parameters:
logId_- the log id- See Also:
-
getUsername
Returns the user that requested the action.- Returns:
- the username
- See Also:
-
setUsername
Set the user that requested the action.- Parameters:
username_- the username- See Also:
-
getApprovedType
Returns the approved type. One of#approved_APPROVEorAPPROVED_TYPE_REJECTconstants- Returns:
- approved type
-
setApprovedType
Sets the approved type. SeegetApprovedType()- Parameters:
approved- One ofAPPROVED_TYPE_APPROVEorAPPROVED_TYPE_REJECTconstants
-
getVersionNumber
Gets the version number of the content being approved/rejected ornullif the version is the current one (ContentConstants.VERSION_CURRENT)- Returns:
- version number or
nullif version isContentConstants.VERSION_CURRENT
-
setVersionNumber
Sets the version number. SeegetVersionNumber()- Parameters:
versionNumber- version number of the content being approved/rejected
-
toString
-