Class WorkflowTransitionConfig


  • @StableMinor(version="14.0",
                 sinceVersion="4.0")
    public class WorkflowTransitionConfig
    extends Object
    A transition between two workflow states.
    Since:
    4.0.0
    Version:
    $Revision: 24476 $ $Date: 2021-04-28 11:28:23 -0300 (Wed, 28 Apr 2021) $
    • Method Detail

      • getInitialStateId

        public String getInitialStateId()
        Returns the identifier for the initial state of this transition.
        Returns:
        the identifier for the initial state of this transition.
      • getDescription

        public String getDescription()
        Returns the description for this transition.
        Returns:
        this transition's description, localizable using its workflow's string resource, or null if not defined.
        See Also:
        WorkflowConfig.getResource()
      • getFinalStateId

        public String getFinalStateId()
        Returns the identifier for the final state of this transition.
        Returns:
        the identifier for the final state of this transition.
      • getName

        public String getName()
        Returns the name for this transition.
        Returns:
        this transition's name, localizable using its workflow's string resource.
        See Also:
        WorkflowConfig.getResource()
      • getId

        public String getId()
        Returns the identifier for this transition.
        Returns:
        the identifier for this transition.
      • getPermissionsScopeAssignedTo

        @Deprecated
        public Collection<String> getPermissionsScopeAssignedTo()
        Deprecated.
        Since 6.0.2, replaced by getPermissions(TransitionScope).
        Returns all permissions available for 'assignedTo' scope.
        Returns:
        the permissions for the given scope.
        Since:
        6.0.2
      • getScopes

        protected EnumSet<TransitionScope> getScopes()
        Returns the scopes for a permission object.
        Returns:
        the scopes.
        Since:
        6.0.2
      • getPermissions

        public Collection<String> getPermissions​(TransitionScope transitionScope)
        Returns all permissions available for a given scope.
        Parameters:
        transitionScope - the scope to have the permissions returned
        Returns:
        the permissions
        Since:
        6.0.2
      • readPermissionsRoles

        protected Set<String> readPermissionsRoles​(Node[] permissionNodes)
                                            throws PortalException
        Returns an unmodifiable permission roles set.
        Parameters:
        permissionNodes - the nodes containing the permissions definition.
        Throws:
        PortalException
      • getPermissions

        protected Collection<String> getPermissions​(Enum<?> scope)
        Returns all permissions available for a given scope.
        Parameters:
        scope - the scope to have the permissions returned
        Returns:
        the permissions
        Since:
        6.0.2