Package com.orchestranetworks.workflow
Class PublicationMetadata.PublicationMetadataBuilder
java.lang.Object
com.orchestranetworks.workflow.PublicationMetadata.PublicationMetadataBuilder
- Enclosing class:
- PublicationMetadata
Builder class for constructing instances of
PublicationMetadata.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionPermissions(Map<PublicationMetadata.ActionPermissionName, Profile> actionPermissions) Sets the action permissions for the metadata.actionPermissionsBean(String actionPermissionsBean) Sets the action permissions bean name for the metadata.build()Builds and returns thePublicationMetadatainstance.documentation(com.onwbp.base.text.bean.LabelDescription documentation) Sets the documentation for the publication.Sets the links associated with the workflow steps.moduleName(String moduleName) Sets the module name for the metadata.notificationProfiles(Map<PublicationMetadata.NotificationEvent, List<String>> notificationProfiles) Sets the notification profiles for the publication.publishedProcessKey(PublishedProcessKey publishedProcessKey) Sets the published process key for the metadata.wfTriggerBean(String wfTriggerBean) Sets the workflow trigger bean name for the metadata.Sets the workflow step metadata for the publication.
-
Constructor Details
-
PublicationMetadataBuilder
public PublicationMetadataBuilder()
-
-
Method Details
-
publishedProcessKey
public PublicationMetadata.PublicationMetadataBuilder publishedProcessKey(PublishedProcessKey publishedProcessKey) Sets the published process key for the metadata.- Parameters:
publishedProcessKey- ThePublishedProcessKeyto set.- Returns:
- The builder instance.
-
moduleName
Sets the module name for the metadata.- Parameters:
moduleName- The module name to set.- Returns:
- The builder instance.
-
wfTriggerBean
Sets the workflow trigger bean name for the metadata.- Parameters:
wfTriggerBean- The workflow trigger bean name to set.- Returns:
- The builder instance.
-
actionPermissions
public PublicationMetadata.PublicationMetadataBuilder actionPermissions(Map<PublicationMetadata.ActionPermissionName, Profile> actionPermissions) Sets the action permissions for the metadata.- Parameters:
actionPermissions- A map ofPublicationMetadata.ActionPermissionNametoProfile.- Returns:
- The builder instance.
-
actionPermissionsBean
public PublicationMetadata.PublicationMetadataBuilder actionPermissionsBean(String actionPermissionsBean) Sets the action permissions bean name for the metadata.- Parameters:
actionPermissionsBean- The action permissions bean name to set.- Returns:
- The builder instance.
-
workflowStepMetadata
public PublicationMetadata.PublicationMetadataBuilder workflowStepMetadata(Map<String, WorkflowStepMetadata> steps) Sets the workflow step metadata for the publication.- Parameters:
steps- A map of step identifiers toWorkflowStepMetadata.- Returns:
- The builder instance.
-
links
public PublicationMetadata.PublicationMetadataBuilder links(Set<WorkflowStepMetadata.WorkflowLink> links) Sets the links associated with the workflow steps.- Parameters:
links- A set ofWorkflowStepMetadata.WorkflowLink.- Returns:
- The builder instance.
-
notificationProfiles
public PublicationMetadata.PublicationMetadataBuilder notificationProfiles(Map<PublicationMetadata.NotificationEvent, List<String>> notificationProfiles) Sets the notification profiles for the publication.- Parameters:
notificationProfiles- A map ofPublicationMetadata.NotificationEventto a list of notification profile names.- Returns:
- The builder instance.
-
documentation
public PublicationMetadata.PublicationMetadataBuilder documentation(com.onwbp.base.text.bean.LabelDescription documentation) Sets the documentation for the publication.- Parameters:
documentation- TheLabelDescriptioncontaining the label and description of the publication.- Returns:
- The builder instance.
-
build
Builds and returns thePublicationMetadatainstance.- Returns:
- The constructed
PublicationMetadatainstance.
-