Package org.beangle.security.blueprint.model

Examples of org.beangle.security.blueprint.model.GroupMemberBean


          user.getGroups().remove(myMember);
          removedMembers.add(myMember);
        }
      } else {
        if (null == myMember) {
          myMember = new GroupMemberBean(member.getGroup(), user, null);
        }
        myMember.setUpdatedAt(new Date());
        myMember.setMember(isMember);
        myMember.setGranter(isGranter);
        myMember.setManager(isManager);
View Full Code Here


  public List<GroupMember> getGroupMembers(User user, GroupMember.Ship ship) {
    if (isAdmin(user)) {
      List<GroupMember> members = CollectUtils.newArrayList();
      List<Group> groups = entityDao.getAll(Group.class);
      for (Group group : groups) {
        GroupMemberBean gmb = new GroupMemberBean(group, user, GroupMember.Ship.MEMBER);
        gmb.setGranter(true);
        gmb.setManager(true);
        members.add(gmb);
      }
      return members;
    }
    OqlBuilder<GroupMember> builder = OqlBuilder.from(GroupMember.class, "gm");
View Full Code Here

  public void createGroup(User owner, Group group) {
    group.setUpdatedAt(new Date(System.currentTimeMillis()));
    group.setCreatedAt(new Date(System.currentTimeMillis()));
    group.setOwner(owner);
    group.getMembers().add(new GroupMemberBean(group, owner, GroupMember.Ship.MANAGER));
    entityDao.saveOrUpdate(group);
  }
View Full Code Here

TOP

Related Classes of org.beangle.security.blueprint.model.GroupMemberBean

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.