Examples of ACL


Examples of org.apache.zookeeper.data.ACL

                    }
                }
            };
            client.getConnectionStateListenable().addListener(listener);

            ACL acl = new ACL(ZooDefs.Perms.WRITE, ZooDefs.Ids.AUTH_IDS);
            List<ACL> aclList = Lists.newArrayList(acl);
            client.create().withACL(aclList).forPath("/test", "test".getBytes());

            server.stop();
            Assert.assertTrue(timing.awaitLatch(lostLatch));
View Full Code Here

Examples of org.apache.zookeeper_voltpatches.data.ACL

    private boolean listACLEquals(List<ACL> lista, List<ACL> listb) {
        if (lista.size() != listb.size()) {
            return false;
        }
        for (int i = 0; i < lista.size(); i++) {
            ACL a = lista.get(i);
            ACL b = listb.get(i);
            if (!a.equals(b)) {
                return false;
            }
        }
        return true;
View Full Code Here

Examples of org.glite.authz.pap.authz.ACL

            papContext = AuthorizationEngine.instance().getGlobalContext();
        else
            throw new PAPAuthzException(
                    "Only the context 'global-context' is currently supported!");
       
        ACL globalACL = papContext.getAcl();
       
        SetACLOperation.instance( context, convertACL( acl )).execute();
       
        AuthorizationEngine.instance().saveConfiguration();
        return;
View Full Code Here

Examples of org.intalio.tempo.workflow.auth.ACL

            throw new InvalidTaskException("Form URL is not valid", e);
        }
    }

    public void authorizeActionForUser(String action, String user) {
        ACL acl = getACLs(action);
        acl.getUserOwners().add(user);
    }
View Full Code Here

Examples of org.jboss.security.acl.ACL

         assertNull(this.strategy.getACL(this.resources[index]));

      // create ACLs for half of the resources.
      for (int index = 0; index < this.resources.length / 2; index++)
      {
         ACL acl = this.strategy.createACL(this.resources[index]);
         this.createdACLs.add(acl);
         assertNotNull(acl);
         assertEquals("Unexpected entries found", 0, acl.getEntries().size());
         assertEquals("Unexpected resource", this.resources[index], acl.getResource());
      }

      // assert no ACL still exists for the remaining resources.
      int index = (this.resources.length / 2) + 1;
      for (; index < this.resources.length; index++)
View Full Code Here

Examples of org.jmanage.core.auth.ACL

     */
    public static boolean canAccess(ServiceContext context,
                                    String aclName,
                                    String targetName){

        ACL acl = ACLStore.getInstance().getACL(aclName);
        if(acl == null){
            /* if acl is not specified, user has access by default */
            if(logger.isLoggable(Level.FINE))
                logger.fine("acl not configured:" + aclName);
            return true;
        }

        /* construct ACLContext from ServiceContext */
        ACLContext aclContext = getACLContext(context, targetName);
        if(acl.isAuthorized(aclContext, context.getUser())){
            return true;
        }
        return false;
    }
View Full Code Here

Examples of org.modeshape.web.shared.Acl

    public void addAccessList() {
        addAccessListDialog.showModal();
    }
   
    public void addAccessList(String name) {
        Acl acl = node.getAcl();
        if (acl == null) {
            acl = new Acl();
            node.setAcl(acl);
        }
       
        Policy policy = new Policy();
        policy.setPrincipal(name);
        policy.add(JcrPermission.ALL);
       
        acl.addPolicy(policy);
        accessList.show(node);
        saveButton.enable();
    }
View Full Code Here

Examples of org.nuxeo.ecm.core.api.security.ACL

    private void initializeSocialWorkspaceRights(SocialWorkspace socialWorkspace) {
        try {
            DocumentModel doc = socialWorkspace.getDocument();
            CoreSession session = doc.getCoreSession();
            ACP acp = doc.getACP();
            ACL acl = acp.getOrCreateACL(SOCIAL_WORKSPACE_ACL_NAME);
            addSocialWorkspaceACL(acl, socialWorkspace);
            doc.setACP(acp, true);
            doc.putContextData(ScopeType.REQUEST,
                    SocialWorkspaceListener.DO_NOT_PROCESS, true);
            doc = session.saveDocument(doc);
View Full Code Here

Examples of org.openntf.domino.ACL

  }

  private ACLEntry getNext() {
    if (nextEntry_ == null) {
      ACLEntry currentEntry = getCurrentEntry();
      ACL acl = getAcl();
      try {
        if (currentEntry == null) {
          if (isDone()) {
            nextEntry_ = null;
          } else {
            nextEntry_ = acl.getFirstEntry();
          }
        } else {
          nextEntry_ = acl.getNextEntry(currentEntry);
        }
      } catch (Throwable t) {
        DominoUtils.handleException(t);
      }
    }
View Full Code Here

Examples of org.springframework.security.acls.model.Acl

        final ObjectIdentity oid =
                objectIdentityRetrievalStrategy.getObjectIdentity(domainObject);

        try {
           
            final Acl acl = aclService.readAclById(oid, sids);

            if (acl.isGranted(permissions, sids, false)) {
               
                if (logger.isTraceEnabled()) {
                    logger.trace("[THYMELEAF][{}] Checked authorization using Access Control List for user \"{}\". " +
                            "Domain object is of class \"{}\" and permissions are \"{}\". Access is GRANTED.",
                            new Object[] {TemplateEngine.threadIndex(), authentication.getName(),
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.