Ejemplo n.º 1
0
        public virtual void createGroup(GroupDto groupDto)
        {
//JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final':
//ORIGINAL LINE: final org.camunda.bpm.engine.IdentityService identityService = getIdentityService();
            IdentityService identityService = IdentityService;

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

            Group newGroup = identityService.newGroup(groupDto.Id);

            groupDto.update(newGroup);
            identityService.saveGroup(newGroup);
        }