Package info.bliki.gae.model

Examples of info.bliki.gae.model.GroupAuthorityEntity


    ofy.put(page);
    return page;
  }

  public static GroupAuthorityEntity update(GroupAuthorityEntity role) {
    GroupAuthorityEntity existingEntity = null;
    try {
      Objectify ofy = OS.begin();
      existingEntity = ofy.get(GroupAuthorityEntity.class, role
          .getGroupAuthorityId());
      existingEntity.setGroupId(role.getGroupId());
      existingEntity.setAuthority(role.getAuthority());
      ofy.put(existingEntity);
    } catch (EntityNotFoundException enf) {
    }
    return existingEntity;
  }
View Full Code Here


      // status = DatabaseConnection.startTransaction();
      GroupAuthorityService.deleteByGroupId(groupId);
      for (String authority : roles) {
        this.validateAuthority(authority);
        // this.queryHandler().insertUserAuthority(username, authority, conn);
        GroupAuthorityService.save(new GroupAuthorityEntity(groupId, groupName, authority));
      }
      // refresh the current role requirements
      JAMWikiAuthenticationConfiguration.resetJamwikiAnonymousAuthorities();
      JAMWikiAuthenticationConfiguration.resetDefaultGroupRoles();
    } catch (WikiException e) {
View Full Code Here

TOP

Related Classes of info.bliki.gae.model.GroupAuthorityEntity

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.