Examples of createGroup()


Examples of org.apache.jackrabbit.api.security.user.UserManager.createGroup()

        Group testGroup = getTestGroup();

        /* create a second group the test user is member of */
        Principal principal = new TestPrincipal("testGroup" + UUID.randomUUID());
        UserManager umgr = getUserManager(superuser);
        Group group2 = umgr.createGroup(principal);

        try {
            group2.addMember(testUser);
            if (!umgr.isAutoSave() && superuser.hasPendingChanges()) {
                superuser.save();
View Full Code Here

Examples of org.apache.jackrabbit.api.security.user.UserManager.createGroup()

    public void before() throws Exception {
        super.before();

        new NodeUtil(root.getTree("/")).addChild("test", JcrConstants.NT_UNSTRUCTURED);
        UserManager uMgr = getUserManager(root);
        adminstrators = uMgr.createGroup(ADMINISTRATOR_GROUP);
        root.commit();
        config = getSecurityProvider().getConfiguration(AuthorizationConfiguration.class);
    }

    @Override
View Full Code Here

Examples of org.apache.jackrabbit.api.security.user.UserManager.createGroup()

        Group testGroup = getTestGroup();

        /* create a second group the test user is member of */
        Principal principal = new TestPrincipal("testGroup" + UUID.randomUUID());
        UserManager umgr = getUserManager(superuser);
        Group group2 = umgr.createGroup(principal);
        try {
            group2.addMember(testUser);
            if (!umgr.isAutoSave() && superuser.hasPendingChanges()) {
                superuser.save();
            }
View Full Code Here

Examples of org.apache.jackrabbit.oak.spi.security.user.UserProvider.createGroup()

    @Test
    public void testCreateGroup() throws RepositoryException {
        UserProvider up = createUserProvider();

        Tree groupTree = up.createGroup("group1", null);

        assertNotNull(groupTree);
        assertTrue(Text.isDescendant(defaultGroupPath, groupTree.getPath()));

        int level = defaultConfig.getConfigValue(UserConfig.PARAM_DEFAULT_DEPTH, UserConstants.DEFAULT_DEPTH) + 1;
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.model.BasicPluginConfigModel.createGroup()

    param_e_enable.addEnabledOnSelection( param_public_ipv6 );
    param_e_enable.addEnabledOnSelection( param_local_ipv4 );
    param_e_enable.addEnabledOnSelection( param_local_ipv6 );
    param_e_enable.addEnabledOnSelection( param_host );
   
    configModel.createGroup(
      "pairing.group.explicit",
      new Parameter[]{
        param_e_info,
        param_e_enable,
        param_public_ipv4, 
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.model.BasicPluginConfigModel.createGroup()

   
    reseed = config.addActionParameter2( "dht.reseed.info", "dht.reseed");

    reseed.setEnabled( false );
   
    config.createGroup( "dht.reseed.group",
        new Parameter[]{ reseed_label, reseed_ip, reseed_port, reseed });
   
    final BooleanParameter ipfilter_logging_param = config.addBooleanParameter2( "dht.ipfilter.log", "dht.ipfilter.log", true );
    ipfilter_logging[0] = ipfilter_logging_param.getValue();
    ipfilter_logging_param.addListener(new ParameterListener() {
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.model.BasicPluginConfigModel.createGroup()

    LabelParameter  advanced_label = config.addLabelParameter2( "dht.advanced.label" );

    final StringParameter  override_ip  = config.addStringParameter2( "dht.override.ip", "dht.override.ip", "" );

    config.createGroup( "dht.advanced.group",
        new Parameter[]{ advanced_label, override_ip });

    advanced.addEnabledOnSelection( advanced_label );
    advanced.addEnabledOnSelection( override_ip );
   
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.model.BasicPluginConfigModel.createGroup()

   
    ActionParameter  execute = config.addActionParameter2( "dht.execute.info", "dht.execute");
   
    final BooleanParameter  logging = config.addBooleanParameter2( "dht.logging", "dht.logging", false );
   
    config.createGroup( "dht.diagnostics.group",
        new Parameter[]{ command, execute, logging });

    logging.addListener(
      new ParameterListener()
      {
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.model.BasicPluginConfigModel.createGroup()

        subs_man.getAutoStartMaxMB());

    auto_start.addEnabledOnSelection( min_auto_start_size );
    auto_start.addEnabledOnSelection( max_auto_start_size );
   
    configModel.createGroup(
      "subscriptions.config.auto",
      new Parameter[]{
          auto_start,
          min_auto_start_size,
          max_auto_start_size,
View Full Code Here

Examples of org.gudy.azureus2.plugins.ui.model.BasicPluginConfigModel.createGroup()

      configModel.addHyperlinkParameter2(
        "device.rss.view", subs_man.getRSSLink());
   
    rss_enable.addEnabledOnSelection( rss_view );
   
    configModel.createGroup(
      "device.rss.group",
      new Parameter[]
      {
          rss_enable, rss_view,
      });
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.