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

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


    this.updateWorkflow(workflow);
  }
 
  @Override
  public List<Step> getSteps(String typeCode) {
    Workflow workflow = this.getWorkflow(typeCode);
    return workflow.getSteps();
  }
View Full Code Here


    return workflow.getSteps();
  }
 
  @Override
  public void updateSteps(String typeCode, List<Step> steps) throws ApsSystemException {
    Workflow workflow = this.getWorkflow(typeCode);
    workflow.setSteps(steps);
    this.updateWorkflow(workflow);
  }
View Full Code Here

    this.updateWorkflow(workflow);
  }
 
  @Override
  public Workflow getWorkflow(String typeCode) {
    Workflow workflow = this.getWorkflowConfig().get(typeCode);
    if (workflow == null) {
      workflow = new Workflow();
      workflow.setTypeCode(typeCode);
    }
    return workflow;
  }
View Full Code Here

    try {
      List<SmallContentType> contentTypes = this.getManagingContentTypes(user);
      boolean isSupervisor = this.getAuthorizationManager().isAuthOnPermission(user, Permission.SUPERVISOR);
      for (int i = 0; i < contentTypes.size(); i++) {
        SmallContentType type = contentTypes.get(i);
        Workflow workflow = this.getWorkflow(type.getCode());
        WorkflowSearchFilter filter = new WorkflowSearchFilter();
        filter.setTypeCode(type.getCode());
        List<String> allowedSteps = this.getAllowedStatus(user, isSupervisor, workflow);
        filter.setAllowedSteps(allowedSteps);
        filters.add(filter);
View Full Code Here

    List<SmallContentType> types = new ArrayList<SmallContentType>();
    try {
      List<SmallContentType> contentTypes = this.getContentManager().getSmallContentTypes();
      for (int i = 0; i < contentTypes.size(); i++) {
        SmallContentType contentType = contentTypes.get(i);
        Workflow workflow = this.getWorkflow(contentType.getCode());
        if (null != workflow && null != workflow.getRole()) {
          String roleName = workflow.getRole();
          if (null == roleName || roleName.trim().length() == 0
              || this.getAuthorizationManager().isAuthOnRole(user, roleName)) {
            types.add(contentType);
          }
        } else {
View Full Code Here

TOP

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

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.