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
-
Constructor Summary
-
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 ornull
if the version is the current one (ContentConstants.VERSION_CURRENT
)void
Set the action approved/rejected.void
setApprovedType
(Integer approved) Sets the approved type.void
Set the content id upon which the action was taken.void
Set the log id.void
setUsername
(String username_) Set the user that requested the action.void
setVersionNumber
(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_APPROVE
orAPPROVED_TYPE_REJECT
constants- Returns:
- approved type
-
setApprovedType
Sets the approved type. SeegetApprovedType()
- Parameters:
approved
- One ofAPPROVED_TYPE_APPROVE
orAPPROVED_TYPE_REJECT
constants
-
getVersionNumber
Gets the version number of the content being approved/rejected ornull
if the version is the current one (ContentConstants.VERSION_CURRENT
)- Returns:
- version number or
null
if version isContentConstants.VERSION_CURRENT
-
setVersionNumber
Sets the version number. SeegetVersionNumber()
- Parameters:
versionNumber
- version number of the content being approved/rejected
-
toString
-