Package org.structr.core.entity

Examples of org.structr.core.entity.Group


    }

    if (parentNode instanceof Group) {

      Group group = (Group) parentNode;
     
      Principal user = (Principal) getNode(id);

      if (user != null) {
        try {
          group.addMember(user);
        } catch (FrameworkException ex) {
          logger.log(Level.SEVERE, null, ex);
          getWebSocket().send(MessageBuilder.status().code(422).message("Cannot append file").build(), true);
        }
      }
View Full Code Here


      List<TestUser> users = createTestNodes(TestUser.class, 2);
      TestUser user1 = (TestUser) users.get(0);

      List<Group> groups = createTestNodes(Group.class, 1);
      Group group1 = (Group) groups.get(0);
     
      TestOne t1 = createTestNode(TestOne.class);
     
      t1.setProperty(AbstractNode.owner, user1);
      t1.setProperty(AbstractNode.owner, group1);
View Full Code Here

TOP

Related Classes of org.structr.core.entity.Group

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.