public class ApprovalJson
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.Date |
created
The date on which this Approval was created.
|
java.lang.String |
creatorUsername
The UserKey of User who created the Approval (ignore the wording here).
|
java.lang.Boolean |
expireOnEdit
Should the Approval expire on an edit - this is always true right now.
|
java.util.Date |
expiryDate
Does the Approval expire on a certain Date - either a Java Date, or null if none.
|
java.lang.String |
macroId
The Macro ID, if it's a Macro Approval - or null if it's a Page ID.
|
java.util.List<ApprovalMemberJson>
|
members
The Users included in the Approval - this contains their status, when they approved
etc.
|
java.lang.Long |
pageId
The Confluence Page ID that this Approval is attached to.
|
java.lang.String |
pageTitle
The Confluence Page Title - obtained on-the-fly.
|
java.lang.Boolean |
postCommentsEnabled
This isn't used!
|
java.lang.Integer |
quorumSize
How many Approvers are needed for this Approval to be successful?
|
boolean |
requestNotifications
Whether the Approval should send notifications to requested Approvers.
|
java.lang.String |
status
The overall status of the Approval - one of "pending", "approved", "rejected",
"expired".
|
boolean |
statusNotifications
Should Status Notifications (Email only) be sent?
|
java.lang.Boolean |
superseded
Whether this Approval is the current one or superseded - in which case it's not
shown in any search.
|
java.lang.String |
title
The Macro Title - provided by the user when creating the Approval.
|
java.lang.String |
type
The type of the Approval - "page" or "macro" are the possible values.
|
java.util.Date |
updated
The date on which the Approval was last updated.
|
java.lang.String |
uuid
The UUID if it's a Macro Approval - which uniquely identifies the Approval across
Page Versions.
|
int |
version
The Page Version this Approval is stored against.
|
Constructor and Description |
---|
ApprovalJson()
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getCreated()
|
java.lang.String |
getCreatorUsername()
|
java.lang.Boolean |
getExpireOnEdit()
|
java.util.Date |
getExpiryDate()
|
java.lang.String |
getMacroId()
|
java.util.List<ApprovalMemberJson>
|
getMembers()
|
java.lang.Long |
getPageId()
|
java.lang.String |
getPageTitle()
|
java.lang.Boolean |
getPostCommentsEnabled()
|
java.lang.Integer |
getQuorumSize()
|
java.lang.String |
getStatus()
|
java.lang.Boolean |
getSuperseded()
|
java.lang.String |
getTitle()
|
java.lang.String |
getType()
|
java.util.Date |
getUpdated()
|
java.lang.String |
getUuid()
|
int |
getVersion()
|
boolean |
isRequestNotifications()
|
boolean |
isStatusNotifications()
|
static ApprovalJson
|
map(com.atlassian.confluence.user.UserAccessor userAccessor,co.uk.automationconsultants.approvals.ao.Approval approval) |
void |
setCreated(java.util.Date created)
|
void |
setCreatorUsername(java.lang.String creatorUsername)
|
void |
setExpireOnEdit(java.lang.Boolean expireOnEdit)
|
void |
setExpiryDate(java.util.Date expiryDate)
|
void |
setMacroId(java.lang.String macroId)
|
void |
setMembers(java.util.List<ApprovalMemberJson> members)
|
void |
setPageId(java.lang.Long pageId)
|
void |
setPageTitle(java.lang.String pageTitle)
|
void |
setPostCommentsEnabled(java.lang.Boolean postCommentsEnabled)
|
void |
setQuorumSize(java.lang.Integer quorumSize)
|
void |
setRequestNotifications(boolean requestNotifications)
|
void |
setStatus(java.lang.String status)
|
void |
setStatusNotifications(boolean statusNotifications)
|
void |
setSuperseded(java.lang.Boolean superseded)
|
void |
setTitle(java.lang.String title)
|
void |
setType(java.lang.String type)
|
void |
setUpdated(java.util.Date updated)
|
void |
setUuid(java.lang.String uuid)
|
void |
setVersion(int version)
|
public java.lang.String type
public java.lang.String status
public java.lang.String creatorUsername
public java.lang.Long pageId
public java.lang.String pageTitle
public java.lang.String macroId
public java.lang.String title
public boolean requestNotifications
public boolean statusNotifications
public java.lang.Boolean expireOnEdit
public java.util.Date expiryDate
public java.lang.Integer quorumSize
public java.lang.Boolean postCommentsEnabled
public java.util.List<ApprovalMemberJson> members
public int version
public java.lang.String uuid
public java.lang.Boolean superseded
public java.util.Date created
public java.util.Date updated
public static ApprovalJson map(com.atlassian.confluence.user.UserAccessor userAccessor, co.uk.automationconsultants.approvals.ao.Approval approval)
public java.lang.String getType()
public void setType(java.lang.String type)
public java.lang.String getCreatorUsername()
public void setCreatorUsername(java.lang.String creatorUsername)
public java.lang.Long getPageId()
public void setPageId(java.lang.Long pageId)
public java.lang.String getMacroId()
public void setMacroId(java.lang.String macroId)
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
public boolean isRequestNotifications()
public void setRequestNotifications(boolean requestNotifications)
public boolean isStatusNotifications()
public void setStatusNotifications(boolean statusNotifications)
public java.lang.Boolean getExpireOnEdit()
public void setExpireOnEdit(java.lang.Boolean expireOnEdit)
public java.util.Date getExpiryDate()
public void setExpiryDate(java.util.Date expiryDate)
public java.lang.Integer getQuorumSize()
public void setQuorumSize(java.lang.Integer quorumSize)
public java.lang.Boolean getPostCommentsEnabled()
public void setPostCommentsEnabled(java.lang.Boolean postCommentsEnabled)
public java.util.List<ApprovalMemberJson> getMembers()
public void setMembers(java.util.List<ApprovalMemberJson> members)
public int getVersion()
public void setVersion(int version)
public java.lang.String getUuid()
public void setUuid(java.lang.String uuid)
public java.lang.Boolean getSuperseded()
public void setSuperseded(java.lang.Boolean superseded)
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
public java.lang.String getPageTitle()
public void setPageTitle(java.lang.String pageTitle)
public java.util.Date getCreated()
public void setCreated(java.util.Date created)
public java.util.Date getUpdated()
public void setUpdated(java.util.Date updated)