Examples of Authorizable


Examples of org.apache.jackrabbit.api.security.user.Authorizable

                "   <sv:property sv:name=\"rep:principalName\" sv:type=\"String\"><sv:value>t</sv:value></sv:property>" +
                "   <sv:property sv:name=\"rep:authorizableId\" sv:type=\"String\"><sv:value>t</sv:value></sv:property>" +
                "</sv:node>";
        doImport(getTargetPath(), xml);

        Authorizable newUser = userMgr.getAuthorizable("t");

        assertNotNull(newUser);
        assertFalse(newUser.isGroup());
        assertEquals("t", newUser.getID());
        assertTrue(adminSession.propertyExists(newUser.getPath() + "/rep:authorizableId"));
        assertEquals("t", adminSession.getProperty(newUser.getPath() + "/rep:authorizableId").getString());
        adminSession.save();
    }
View Full Code Here

Examples of org.apache.sentry.core.Authorizable

  public static Iterable<Authorizable> parseRole(String string) {
    List<Authorizable> result = Lists.newArrayList();
    for(String section : AUTHORIZABLE_SPLITTER.split(string)) {
      // XXX this ugly hack is because action is not an authorizeable
      if(!section.toLowerCase().startsWith(PRIVILEGE_PREFIX)) {
        Authorizable authorizable = Authorizables.from(section);
        if(authorizable == null) {
          String msg = "No authorizable found for " + section;
          throw new ConfigurationException(msg);
        }
        result.add(authorizable);
View Full Code Here

Examples of org.springframework.richclient.core.Authorizable

        // Install the decision
        for( Iterator iter = controlledObjects.iterator(); iter.hasNext(); ) {
            WeakReference ref = (WeakReference) iter.next();

            Authorizable controlledObject = (Authorizable) ref.get();
            if( controlledObject == null ) {
                // Has been GCed, remove from our list
                iter.remove();
            } else {
                updateControlledObject( controlledObject, authorize );
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.