Examples of removeGroup()


Examples of org.apache.cayenne.cache.QueryCache.removeGroup()

                // TODO: replace this with QueryCache injection once CAY-1445 is done
                QueryCache cache = ((DataContext) originatingContext).getQueryCache();

                for (String group : groupSet) {
                    cache.removeGroup(group);
                }
            }

            return result;
        }
View Full Code Here

Examples of org.apache.hadoop.security.authorize.AccessControlList.removeGroup()

    assertEquals(iter.next(), "tardis");
    assertEquals(iter.next(), "users");
    assertEquals("drwho,joe tardis,users", acl.getAclString());

    acl.removeUser("joe");
    acl.removeGroup("users");
    users = acl.getUsers();
    assertEquals(users.size(), 1);
    assertFalse(users.contains("joe"));
    groups = acl.getGroups();
    assertEquals(groups.size(), 1);
View Full Code Here

Examples of org.apache.jetspeed.om.security.ldap.LDAPUser.removeGroup()

            throw new GroupException("Failed to Retrieve User: ", e);
        }

        try
        {
            user.removeGroup(groupName);
            user.update(false);
        }
        catch(Exception e)
        {
            throw new GroupException("Failed to add group info ", e);
View Full Code Here

Examples of org.apache.jetspeed.om.security.ldap.LDAPUser.removeGroup()

            throw new GroupException("Failed to Retrieve User: ", e);
        }

        try
        {
            user.removeGroup(groupName);
            user.update(false);
        }
        catch(Exception e)
        {
            throw new GroupException("Failed to add group info ", e);
View Full Code Here

Examples of org.apache.wiki.auth.authorize.GroupManager.removeGroup()

  protected void tearDown() throws Exception
  {
    GroupManager groupManager = m_engine.getGroupManager();
    if ( groupManager.findRole( m_groupName ) != null )
    {
        groupManager.removeGroup( m_groupName );
    }
  }

  /** Call this setup program to use the save-profile workflow. */
  protected void setUpWithWorkflow() throws Exception
View Full Code Here

Examples of org.atomojo.auth.service.db.RealmUser.removeGroup()

                     getResponse().setStatus(Status.CLIENT_ERROR_METHOD_NOT_ALLOWED);
                     return null;
                  } else {
                     Group group = fetchGroup(user);
                     if (group!=null) {
                        if (user.removeGroup(group)) {
                           getResponse().setStatus(Status.SUCCESS_NO_CONTENT);
                           return null;
                        } else {
                           getResponse().setStatus(Status.CLIENT_ERROR_NOT_FOUND);
                           return null;
View Full Code Here

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

            assertEquals(group1Name, groups[0]);
            assertEquals(group2Name, groups[1]);

        } finally {
            //cleanup
            try { ums.removeGroup(group1); } catch(Exception e) {}
            try { ums.removeGroup(group2); } catch(Exception e) {}
            try { ums.removeAccount(user); } catch(Exception e) {}
        }
    }
}
View Full Code Here

Examples of org.exoplatform.services.organization.GroupHandler.removeGroup()

            assertNotNull(container);
            assertEquals(4, container.getChildren().size());
            assertTrue(container.getChildren().get(2) instanceof PageBody);
            assertTrue(((Application)container.getChildren().get(1)).getType() == ApplicationType.PORTLET);
           
            groupHandler.removeGroup(group, true);
         }
      }.execute(null);
   }
  
   public void testCacheUserPortalConfig()
View Full Code Here

Examples of org.exoplatform.services.organization.GroupHandler.removeGroup()

       * We need to remove the /groupTest from the groupHandler as the
       * handler is shared between the tests and can cause other tests
       * to fail.
       * TODO: make the tests fully independent
       */
      groupHandler.removeGroup(group, false);
      group = groupHandler.findGroupById("/groupTest");
      assertNull(group);
   }

   public void testUserLayout() throws Exception
View Full Code Here

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

        fail=true;
        try {
            store2.updateGroup(group);
        } catch (IOException ex) {
            try {
                store2.removeGroup(group);
            } catch (IOException ex1) {
                try {
                    store2.addGroup(group);
                } catch (IOException ex2) {
                    fail=false;
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.