Examples of newGroup()


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

    // create a new user to create a new request
    User requester = identityService.newUser("Micha Kops");
    identityService.saveUser(requester);

    // create group service and assign the user to it
    Group serviceGroup = identityService.newGroup("service");
    identityService.saveGroup(serviceGroup);
    identityService.createMembership(requester.getId(),
        serviceGroup.getId());

    // create a new user for an it-support employee
View Full Code Here

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

    // create a new user for an it-support employee
    User itguy = identityService.newUser("itguy");
    identityService.saveUser(itguy);

    // create a group it-support for critical issues
    Group itSupportGroup = identityService.newGroup("itsupport-critical");
    itSupportGroup.setName("IT Support for Critical Issues");
    identityService.saveGroup(itSupportGroup);

    // assign the user itguy to the group itsupport-critical
    identityService.createMembership(itguy.getId(), itSupportGroup.getId());
View Full Code Here

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

    @Override
    protected Object doExecute() throws Exception {
        IdentityService identityService = getProcessEngine().getIdentityService();

        Group group = identityService.newGroup(id);
        group.setName(name);
        group.setType(type);
        identityService.saveGroup(group);

        return null;
View Full Code Here

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

        User user1 = identityService.newUser("user1");
        identityService.saveUser(user1);
        User user2 = identityService.newUser("user2");
        identityService.saveUser(user2);

        Group group1 = identityService.newGroup("group1");
        identityService.saveGroup(group1);
        identityService.createMembership("user1", "group1");

        // 启动流程
        RuntimeService runtimeService = activitiRule.getRuntimeService();
View Full Code Here

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

    user.setFirstName("Manually");
    user.setLastName("created");
    identityService.saveUser(user);
   
    // Add admin group
    Group group = identityService.newGroup("admin");
    identityService.saveGroup(group);

    identityService.createMembership(username, "admin");
  }
View Full Code Here

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

    user.setFirstName("Kermit");
    user.setLastName("the Frog");
    user.setPassword("kermit");
    identityService.saveUser(user);
   
    Group group = identityService.newGroup("admin");
    group.setName("Administrators");
    identityService.saveGroup(group);
   
    identityService.createMembership(user.getId(), group.getId());
  }
View Full Code Here

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

    }
    if (groupInfo.getName() == null || groupInfo.getName().equals(""))
      groupInfo.setName(groupInfo.getId());

    if (identityService.createGroupQuery().groupId(groupInfo.getId()).count() == 0) {
      Group group = identityService.newGroup(groupInfo.getId());
      group.setName(groupInfo.getName());
      if (groupInfo.getType() != null) {
        group.setType(groupInfo.getType());
      } else {
        group.setType("assignment");
View Full Code Here

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

    @Override
    protected Object doExecute() throws Exception {
        IdentityService identityService = getProcessEngine().getIdentityService();

        Group group = identityService.newGroup(id);
        group.setName(name);
        group.setType(type);
        identityService.saveGroup(group);

        return null;
View Full Code Here

Examples of org.camunda.bpm.engine.IdentityService.newGroup()

    if(identityService.isReadOnly()) {
      throw new InvalidRequestException(Status.FORBIDDEN, "Identity service implementation is read-only.");
    }

    Group newGroup = identityService.newGroup(groupDto.getId());
    groupDto.update(newGroup);
    identityService.saveGroup(newGroup);

  }
View Full Code Here

Examples of org.camunda.bpm.engine.IdentityService.newGroup()

      user4.setPassword("peter");
      user4.setEmail("peter@camunda.org");

      identityService.saveUser(user4);

      Group salesGroup = identityService.newGroup("sales");
      salesGroup.setName("Sales");
      salesGroup.setType("WORKFLOW");
      identityService.saveGroup(salesGroup);

      Group accountingGroup = identityService.newGroup("accounting");
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.