Class OOOWfModelDesignate
java.lang.Object
com.adobe.cq.inbox.api.preferences.domain.outofoffice.OOOWfModelDesignate
Class for the AEM Inbox Out Of Office Workflow Model Designate.
It represents who will be assignee for which workflow model along with
the excluded workflow models when user is out of office.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA constant to specify to include all the current workflow models in the wfModels list. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the excluded workflow model id's when user is out of office or null if excluded workflow model id's are not present.Returns the designated user when user is out of officeReturns the list of workflow model id's for which task is delegated when user is out of officevoidsetExcludedWfmodels(List<String> excludedWfmodels) Sets the excluded workflow model id's when user is out of office or null if excluded workflow model id's are not present.voidsetOutOfOfficeDesignate(String outOfOfficeDesignate) Sets the designated user id when user is out of officevoidsetWfModels(List<String> wfModels) Sets the list of workflow model id's for which task is delegated when user is out of office
-
Field Details
-
ALL_WORKFLOW_MODELS
A constant to specify to include all the current workflow models in the wfModels list.- See Also:
-
-
Constructor Details
-
OOOWfModelDesignate
public OOOWfModelDesignate(@Nonnull String outOfOfficeDesignate, @Nonnull List<String> wfModels, @Nullable List<String> excludedWfmodels) Constructor for AEM Inbox Out Of Office Workflow Model Designate.- Parameters:
outOfOfficeDesignate- designated user idwfModels- the list of workflow model id's. If it containsALL_WORKFLOW_MODELSthen designated user will be set for all the workflow modelsexcludedWfmodels- the excluded workflow model id's when user is out of office
-
-
Method Details
-
getOutOfOfficeDesignate
Returns the designated user when user is out of office- Returns:
- The user id of the designated user
-
setOutOfOfficeDesignate
Sets the designated user id when user is out of office- Parameters:
outOfOfficeDesignate- designated user id
-
getWfModels
Returns the list of workflow model id's for which task is delegated when user is out of office- Returns:
- The list of workflow model id's for which task is delegated when user is out of office
-
setWfModels
Sets the list of workflow model id's for which task is delegated when user is out of office- Parameters:
wfModels- the list of workflow model id's. If it containsALL_WORKFLOW_MODELSthen designated user will be set for all the workflow models
-
getExcludedWfmodels
Returns the excluded workflow model id's when user is out of office or null if excluded workflow model id's are not present. This is applicable only when workflow model containALL_WORKFLOW_MODELS.- Returns:
- The excluded workflow model id's when user is out of office
-
setExcludedWfmodels
Sets the excluded workflow model id's when user is out of office or null if excluded workflow model id's are not present.- Parameters:
excludedWfmodels- the excluded workflow model id's when user is out of office
-