Package com.dotmarketing.business

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



      Folder destinationFolder = folderAPI.findFolderByPath(destinationFolderName + "/", destinationHost,user,false);

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

      // Copy the new permissions
      perAPI.copyPermissions(sourceFolder, destinationFolder);
    }catch (Exception e) {
      throw new DotDataException(e.getMessage(), e);
View Full Code Here

            if(!InodeUtils.isSet(identifier.getInode())) {
                Logger.warn(FolderFactory.class, "_deleteChildrenAssetsFromFolder: page inode = " + ((HTMLPage)page).getInode() " doesn't have a valid identifier associated.");
                continue;
            }
           
            perAPI.removePermissions((HTMLPage)page);

      List<Versionable> versions = APILocator.getVersionableAPI().findAllVersions(identifier, APILocator.getUserAPI().getDefaultUser(),false);

      for (Versionable versionV : versions) {
        HTMLPage version = (HTMLPage) versionV;
View Full Code Here

            if(!InodeUtils.isSet(identifier.getInode())) {
                Logger.warn(FolderFactory.class, "_deleteChildrenAssetsFromFolder: file inode = " + ((File)file).getInode() " doesn't have a valid identifier associated.");
                continue;
            }

            perAPI.removePermissions((File)file);

            List<Versionable> versions = APILocator.getVersionableAPI().findAllVersions(identifier, APILocator.getUserAPI().getDefaultUser(),false);
           
            for (Versionable versionV : versions) {
              File version = (File) versionV;
View Full Code Here

                    Logger.warn(FolderFactory.class, "_deleteChildrenAssetsFromFolder: link inode = " + link.getInode() +
                            " doesn't have a valid identifier associated.");
                    continue;
                }

                perAPI.removePermissions(link);

              List<Versionable> versions =APILocator.getVersionableAPI().findAllVersions(identifier, APILocator.getUserAPI().getSystemUser(), false);
             
              for (Versionable version : versions) {
          new HibernateUtil().delete(version);
View Full Code Here

    }

    object = (Category) HibernateUtil.load(Category.class, object.getInode());

    PermissionAPI perAPI = APILocator.getPermissionAPI();
    perAPI.removePermissions(object);

    HibernateUtil.delete(object);
    try {
      cleanParentChildrenCaches(object);
      catCache.remove(object);
View Full Code Here

    UserFilter uf;
    if (InodeUtils.isSet(mlForm.getUserFilterListInode())) {
      uf = (UserFilter) InodeFactory.getInode(mlForm.getUserFilterListInode(), UserFilter.class);

      //removing permissions on the user filter\
      perAPI.removePermissions(uf);
    }
    else {
      uf = new UserFilter();
    }
View Full Code Here

    if (InodeUtils.isSet(mlForm.getUserFilterListInode())) {
      uf = (UserFilter) InodeFactory.getInode(mlForm.getUserFilterListInode(), UserFilter.class);

      //removing permissions on the user filter
      PermissionAPI perAPI = APILocator.getPermissionAPI();
      perAPI.removePermissions(uf);
     
      InodeFactory.deleteInode(uf);
      HibernateUtil.flush();
      HibernateUtil.closeSession();
      SessionMessages.add(req, "message", "message.userfilter.success.delete");
View Full Code Here

            TagFactory.deleteTag(retrievedTag.getTagId());
        }

        if(InodeUtils.isSet(userProxy.getInode())) {
          PermissionAPI perAPI = APILocator.getPermissionAPI();
          perAPI.removePermissions(userProxy);
          // deletes user proxy
          InodeFactory.deleteInode(userProxy);
        }
        // deletes liferay user
        APILocator.getUserAPI().delete(APILocator.getUserAPI().loadUserById(userId,APILocator.getUserAPI().getSystemUser(),false),com.dotmarketing.business.APILocator.getUserAPI().getSystemUser(), false);
View Full Code Here

        if(reset && asset.isParentPermissionable()) {
          ResetPermissionsJob.triggerJobImmediately(asset);
        }
      } else {
        permissionAPI.removePermissions(asset);
      }
      HibernateUtil.commitTransaction();
    } catch (Exception e) {
        Logger.warn(this, e.getMessage(), e);
      HibernateUtil.rollbackTransaction();
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.