Package com.dotmarketing.business

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


      User user = userWebAPI.getLoggedInUser(request);
      boolean respectFrontendRoles = !userWebAPI.isLoggedToBackend(request);

      PermissionAPI permissionAPI = APILocator.getPermissionAPI();
      Permissionable asset = retrievePermissionable(assetId, languageId, user, respectFrontendRoles);
      permissionAPI.removePermissions(asset);

    } catch (DotDataException e) {
      HibernateUtil.rollbackTransaction();
      throw e;
    }
View Full Code Here


        File f;
        String jrxmlPath;
        String jasperPath;
    HibernateUtil.startTransaction();
    PermissionAPI perAPI = APILocator.getPermissionAPI();
    perAPI.removePermissions(report);
      ReportFactory.deleteReport(report);     
      ReportParameterFactory.deleteReportsParameters(report);           
      WebFormFactory.removeWebFormsByType(report.getReportName());
      if (UtilMethods.isSet(Config.getStringProperty("ASSET_REAL_PATH"))) {
        jrxmlPath = Config.getStringProperty("ASSET_REAL_PATH") + File.separator + Config.getStringProperty("REPORT_PATH") + File.separator + report.getInode() + ".jrxml";
View Full Code Here

        relationships = RelationshipFactory.getRelationshipsByChild(st);
        for (Relationship rel : relationships)
            RelationshipFactory.deleteRelationship(rel);

        // remove structure permissions
        perAPI.removePermissions(st);

        HibernateUtil.getSession().clear();
       
        // remove structure itself
        StructureFactory.deleteStructure(st);
View Full Code Here

                InodeFactory.deleteInode(r);
            }
           
            if(perAPI.doesUserHavePermission(c,PermissionAPI.PERMISSION_WRITE,user)){
              perAPI.removePermissions(c);
        }

            InodeFactory.deleteInode(c);
        }
    }
View Full Code Here

      return;
    }
    PermissionAPI perAPI = APILocator.getPermissionAPI();
    User user = APILocator.getUserAPI().loadUserById(userId,APILocator.getUserAPI().getSystemUser(),false);
    if(perAPI.doesUserHavePermission(c,PermissionAPI.PERMISSION_WRITE,user)){
      perAPI.removePermissions(c);
    }
    InodeFactory.deleteInode(c);
   
  }
 
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.