Examples of deleteMembership()


Examples of org.activiti.engine.IdentityService.deleteMembership()

  protected void dropUsers() {
    IdentityService identityService = processEngine.getIdentityService();
   
    identityService.deleteUser("kermit");
    identityService.deleteGroup("admin");
    identityService.deleteMembership("kermit", "admin");
  }
 
  /** Each test is assumed to clean up all DB content it entered.
   * After a test method executed, this method scans all tables to see if the DB is completely clean.
   * It throws AssertionFailed in case the DB is not clean.
View Full Code Here

Examples of org.activiti.engine.IdentityService.deleteMembership()

  protected void dropUsers() {
    IdentityService identityService = processEngine.getIdentityService();
   
    identityService.deleteUser("kermit");
    identityService.deleteGroup("admin");
    identityService.deleteMembership("kermit", "admin");
  }
 
  /** Each test is assumed to clean up all DB content it entered.
   * After a test method executed, this method scans all tables to see if the DB is completely clean.
   * It throws AssertionFailed in case the DB is not clean.
View Full Code Here

Examples of org.activiti.engine.IdentityService.deleteMembership()

    // Add only if not already member
    Group group = identityService.createGroupQuery().groupMember(userId)
        .groupId(groupId).singleResult();
    if (group != null)
      identityService.deleteMembership(userId, groupId);
    return new StateResponse().setSuccess(true);
  }
}
View Full Code Here

Examples of org.activiti.engine.IdentityService.deleteMembership()

  protected void dropUsers() {
    IdentityService identityService = processEngine.getIdentityService();
   
    identityService.deleteUser("kermit");
    identityService.deleteGroup("admin");
    identityService.deleteMembership("kermit", "admin");
  }
 
  protected void stopRestServer() throws Exception {
    component.stop();
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.identity.spi.IdentitySession.deleteMembership()

    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

Examples of org.jbpm.pvm.internal.identity.spi.IdentitySession.deleteMembership()

    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
TOP
Copyright © 2018 www.massapi.com. 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.