Package com.agiletec.plugins.jpcontentworkflow.aps.system.services.workflow.model

Examples of com.agiletec.plugins.jpcontentworkflow.aps.system.services.workflow.model.Step


    Workflow workflow = this.getWorkflowManager().getWorkflow(contentTypeCode);
    items.add(new SelectItem(Content.STATUS_DRAFT, "name.contentStatus." + Content.STATUS_DRAFT));
    if (null != workflow) {
      Iterator<Step> stepsIter = workflow.getSteps().iterator();
      while (stepsIter.hasNext()) {
        Step step = stepsIter.next();
        if (this.checkRole(step.getRole(), user)) {
          items.add(new SelectItem(step.getCode(), step.getDescr()));
        }
      }
    }
    if (this.getAuthorizationManager().isAuthOnPermission(user, Permission.SUPERVISOR)) {
      items.add(new SelectItem(Content.STATUS_READY, "name.contentStatus." + Content.STATUS_READY));
View Full Code Here


    List<String> allowedSteps = new ArrayList<String>();
    allowedSteps.add(Content.STATUS_NEW);
    allowedSteps.add(Content.STATUS_DRAFT);
    Iterator<Step> stepsIter = workflow.getSteps().iterator();
    while (stepsIter.hasNext()) {
      Step step = stepsIter.next();
      String stepRole = step.getRole();
      if (null == stepRole || stepRole.trim().length() == 0
          || this.getAuthorizationManager().isAuthOnRole(user, step.getRole())) {
        allowedSteps.add(step.getCode());
      }
    }
    if (isSupervisor) {
      allowedSteps.add(Content.STATUS_READY);
      allowedSteps.add(Content.STATUS_PUBLIC);
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpcontentworkflow.aps.system.services.workflow.model.Step

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.