Examples of addGroup()


Examples of org.exist.security.internal.aider.GroupAider.addGroup()

            }
            if (user != null && !secman.hasAccount(user)) {
                final UserAider aider = new UserAider(user);
                aider.setPassword(password);
                if (group != null)
                    {aider.addGroup(group);}

                secman.addAccount(aider);
            }
        } catch (final ConfigurationException e) {
            throw new PackageException("Failed to create user: " + user, e);
View Full Code Here

Examples of org.exist.security.internal.aider.UserAider.addGroup()

            //AccountImpl actAdmin = new AccountImpl(broker, this, ADMIN_ACCOUNT_ID, SecurityManager.DBA_USER, "", GROUP_DBA, true);
            final UserAider actAdmin = new UserAider(ADMIN_ACCOUNT_ID, getId(), SecurityManager.DBA_USER);
            actAdmin.setPassword(DEFAULT_ADMIN_PASSWORD);
            actAdmin.setMetadataValue(AXSchemaType.FULLNAME, SecurityManager.DBA_USER);
            actAdmin.setMetadataValue(EXistSchemaType.DESCRIPTION, "System Administrator");
            actAdmin.addGroup(SecurityManager.DBA_GROUP);
            getSecurityManager().addAccount(broker, actAdmin);
        }

        //Guest account
        if(getSecurityManager().getAccount(GUEST_ACCOUNT_ID) == null) {
View Full Code Here

Examples of org.exist.xmldb.UserManagementService.addGroup()

        //create the personal group
        Group group = new GroupAider(username);
        group.setMetadataValue(EXistSchemaType.DESCRIPTION, "Personal group for " + username);
        group.addManager(ums.getAccount("admin"));
        ums.addGroup(group);

        //add the personal group as the primary group
        user.addGroup(username);

        //create the account
View Full Code Here

Examples of org.exolab.castor.xml.schema.ComplexType.addGroup()

          group.setOrder(Order.sequence);
          group.setMinOccurs(0);
          group.setMaxOccurs(-1);
          Wildcard any = new Wildcard(group);
          group.addWildcard(any);
          complexType.addGroup(group);

       } else if (dtdElement.isElemOnlyContent()) {

          // mixed="false"
          contentType = ContentType.elemOnly;
View Full Code Here

Examples of org.exolab.castor.xml.schema.Group.addGroup()

             contentParticle = convertContentParticle(child, schema);

             if (contentParticle instanceof ElementDecl) {
                group.addElementDecl((ElementDecl)contentParticle);
             } else {
                group.addGroup((Group)contentParticle);
             }
          }

          returnValue = group;
View Full Code Here

Examples of org.geoserver.security.GeoServerUserGroupStore.addGroup()

        if (groups != null && !groups.isEmpty()) {
            for (String groupName : groups) {
                GeoServerUserGroup group = ugStore.getGroupByGroupname(groupName);
                if (group == null) {
                    group = ugStore.createGroupObject(groupName, true);
                    ugStore.addGroup(group);
                }
   
                ugStore.associateUserToGroup(user, group);
            }
        }
View Full Code Here

Examples of org.gwtoolbox.widget.client.form.layout.simple.SimpleFormLayout.addGroup()

                new ShortTextField("address.city", "City"),
                new ShortTextField("address.country", "Country")
        );

        SimpleFormLayout layout = new SimpleFormLayout();
        layout.addGroup(new FieldGroup("Contact Details").setOptional(true).setKeys(
                "address.street", "address.city", "address.country"
        ));

        final FormPanel formPanel = new FormPanel(form, layout);
View Full Code Here

Examples of org.jboss.as.test.integration.domain.management.util.RolloutPlanBuilder.addGroup()

       
        String[] serverGroups = CLITestSuite.serverGroups.keySet().toArray(new String[]{});
       
        // create rollout plan
        RolloutPlanBuilder planBuilder = new RolloutPlanBuilder();
        planBuilder.addGroup(serverGroups[0], new RolloutPlanBuilder.RolloutPolicy(true, null, null));
        planBuilder.addGroup(serverGroups[1], new RolloutPlanBuilder.RolloutPolicy(true, null, null));       
        String rolloutPlan = planBuilder.buildAsString();       
        cli.sendLine("rollout-plan add --name=testPlan --content=" + rolloutPlan);       
       
        // check it is listed
View Full Code Here

Examples of org.jboss.deployers.vfs.plugins.structure.dir.GroupingStructure.addGroup()

         {
            return file.getName().endsWith(".sar");
         }
      };
      gs.setShortCircuitFilter(top);
      gs.addGroup("lib");
      gs.addGroup("lib/nested");
      return determineStructureWithStructureDeployers(deployment, new MockEarStructureDeployer(), new JARStructure(), gs);
   }
}
View Full Code Here

Examples of org.jboss.portal.identity.metadata.config.OptionsMetaData.addGroup()

      else if (parent instanceof OptionsMetaData)
      {
         OptionsMetaData options = (OptionsMetaData)parent;
         if (child instanceof OptionsGroupMetaData)
         {
            options.addGroup((OptionsGroupMetaData)child);
         }
      }
      else if (parent instanceof OptionsGroupMetaData)
      {
         OptionsGroupMetaData group = (OptionsGroupMetaData)parent;
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.