Examples of removePermissions()


Examples of com.dotmarketing.business.PermissionAPI.removePermissions()

        }else{
          destinationFile = fileAPI.getFileByURI(destinationPath + "/" + children[i].getName(), children[i].getHost(), live, user, false);
        }

        // Delete the new permissions
        perAPI.removePermissions(destinationFile);

        // Copy the new permissions
        perAPI.copyPermissions((Permissionable)children[i].getFile(), destinationFile);

        // ### END Copy the permission ###
View Full Code Here

Examples of org.apache.roller.business.UserManager.removePermissions()

        PermissionsData perm = null;
       
        // delete permissions
        perm = mgr.getPermissions(testWeblog, testUser);
        assertNotNull(perm);
        mgr.removePermissions(perm);
        TestUtils.endSession(true);
       
        // check that delete was successful
        perm = null;
        perm = mgr.getPermissions(testWeblog, testUser);
View Full Code Here

Examples of org.apache.roller.model.UserManager.removePermissions()

        UserManager userMgr = RollerFactory.getRoller().getUserManager();
        PermissionsData perms = userMgr.getPermissions(form.getInviteId());
       
        // TODO ROLLER_2.0: notify inviter that invitee has declined invitation
        // TODO EXCEPTIONS: better exception handling here
        userMgr.removePermissions(perms);
        RollerFactory.getRoller().flush();
       
        ActionMessages msgs = new ActionMessages();
        msgs.add(null, new ActionMessage(
                "yourWebsites.declined", perms.getWebsite().getHandle()));
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.removePermissions()

        // lookup the permissions
        UserManager mgr = WebloggerFactory.getWeblogger().getUserManager();
        WeblogPermission perm = mgr.getPermissions(id);
       
        // remove the permissions
        mgr.removePermissions(perm);
       
        // flush to db
        WebloggerFactory.getWeblogger().flush();
    }
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.removePermissions()

                    if (perms.getUser().getId().equals(user.getId()) &&
                            val < perms.getPermissionMask()) {
                        addError("memberPermissions.noSelfDemotions");
                    } else if (val != perms.getPermissionMask()) {
                        if (val == -1) {
                            userMgr.removePermissions(perms);
                            removed++;
                        } else {
                            perms.setPermissionMask(val);
                            userMgr.savePermissions(perms);
                            changed++;
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.removePermissions()

           
            if (pd == null) {
                throw new NotFoundException("ERROR: Permissions do not exist for weblog handle: " + handle + ", user name: " + username);
            }          
            UserManager mgr = getRoller().getUserManager();
            mgr.removePermissions(pd);
            getRoller().flush();
           
            User ud = getUserData(username);
            CacheManager.invalidate(ud);
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.removePermissions()

            if (perms != null) {
                String handle = perms.getWebsite().getHandle();
                       
                // TODO ROLLER_2.0: notify inviter that invitee has declined invitation
                // TODO EXCEPTIONS: better exception handling here
                userMgr.removePermissions(perms);
                WebloggerFactory.getWeblogger().flush();

                addMessage("yourWebsites.declined", handle);
            } else {
                addError("yourWebsites.permNotFound");
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.removePermissions()

            WeblogPermission perms = userMgr.getPermissions(website, user);
           
            if (perms != null) {
                // TODO ROLLER_2.0: notify website members that user has resigned
                // TODO EXCEPTIONS: better exception handling
                userMgr.removePermissions(perms);
                WebloggerFactory.getWeblogger().flush();
            }
           
            addMessage("yourWebsites.resigned", perms.getWebsite().getHandle());
        } catch (WebloggerException ex) {
View Full Code Here

Examples of org.apache.roller.weblogger.business.UserManager.removePermissions()

        // delete permissions
        testWeblog = TestUtils.getManagedWebsite(testWeblog);
        testUser = TestUtils.getManagedUser(testUser);
        perm = mgr.getPermissions(testWeblog, testUser);
        assertNotNull(perm);
        mgr.removePermissions(perm);
        TestUtils.endSession(true);
       
        // check that delete was successful
        perm = null;
        testWeblog = TestUtils.getManagedWebsite(testWeblog);
View Full Code Here

Examples of org.exoplatform.services.jcr.access.AccessControlList.removePermissions()

                  PropertyData aclData =
                     (PropertyData)dataManager.getItemData(frozen, new QPathEntry(Constants.EXO_PERMISSIONS, 0),
                        ItemType.PROPERTY);

                  AccessControlList acl = new AccessControlList();
                  acl.removePermissions(SystemIdentity.ANY);

                  for (ValueData value : aclData.getValues())
                  {
                     acl.addPermissions(new String(value.getAsByteArray(), Constants.DEFAULT_ENCODING));
                  }
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.