Package org.jbpm.pvm.internal.identity.spi

Examples of org.jbpm.pvm.internal.identity.spi.IdentitySession


    this.groupId = groupId;
    this.role = role;
  }

  public Object execute(Environment environment) throws Exception {
    IdentitySession identitySession = environment.get(IdentitySession.class);
    identitySession.deleteMembership(userId, groupId, role);
    return null;
  }
View Full Code Here


    this.familyName = familyName;
    this.businessEmail = businessEmail;
  }

  public Void execute(Environment environment) throws Exception {
    IdentitySession identitySession = environment.get(IdentitySession.class);
    identitySession.createUser(userId, givenName, familyName, businessEmail);
    return null;
  }
View Full Code Here

    this.groupType = groupType;
    this.parentGroupId = parentGroupId;
  }

  public String execute(Environment environment) throws Exception {
    IdentitySession identitySession = environment.get(IdentitySession.class);
    return identitySession.createGroup(groupName, groupType, parentGroupId);
  }
View Full Code Here

  public DeleteUserCmd(String userId) {
    this.userId = userId;
  }

  public Void execute(Environment environment) throws Exception {
    IdentitySession identitySession = environment.get(IdentitySession.class);
    identitySession.deleteUser(userId);
    return null;
  }
View Full Code Here

  public FindUserCmd(String userId) {
    this.userId = userId;
  }

  public User execute(Environment environment) {
    IdentitySession identitySession = environment.get(IdentitySession.class);
    return identitySession.findUserById(userId);
  }
View Full Code Here

      hql.append(" as participant ");

      appendWhereClause("participant.task = task ", hql);
      appendWhereClause("participant.type = 'candidate' ", hql);

      IdentitySession identitySession = Environment.getFromCurrent(IdentitySession.class);
      List<Group> groups = identitySession.findGroupsByUser(candidate);
      if (groups.isEmpty()) {
        groupIds = null;
        appendWhereClause("participant.userId = :candidateUserId ", hql);
       
      } else {
View Full Code Here

    this.groupId = groupId;
    this.role = role;
  }

  public Object execute(Environment environment) throws Exception {
    IdentitySession identitySession = environment.get(IdentitySession.class);
    identitySession.createMembership(userId, groupId, role);
    return null;
  }
View Full Code Here

  public FindGroupCmd(String groupId) {
    this.groupId = groupId;
  }

  public Group execute(Environment environment) {
    IdentitySession identitySession = environment.get(IdentitySession.class);
    return identitySession.findGroupById(groupId);
  }
View Full Code Here

  public DeleteGroupCmd(String groupId) {
    this.groupId = groupId;
  }

  public Void execute(Environment environment) throws Exception {
    IdentitySession identitySession = environment.get(IdentitySession.class);
    identitySession.deleteGroup(groupId);
    return null;
  }
View Full Code Here

    this.userId = userId;
    this.groupType = groupType;
  }

  public List<Group> execute(Environment environment) throws Exception {
    IdentitySession identitySession = environment.get(IdentitySession.class);
    if (groupType!=null) {
      return identitySession.findGroupsByUserAndGroupType(userId, groupType);
    }
    return identitySession.findGroupsByUser(userId);
  }
View Full Code Here

TOP

Related Classes of org.jbpm.pvm.internal.identity.spi.IdentitySession

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.