Package com.dotmarketing.portlets.links.business

Examples of com.dotmarketing.portlets.links.business.MenuLinkAPI


    // changes
    dc.setSQL(selectChildrenLinkWithIndividualPermissionsSQL);
    dc.addParam(host.getPermissionId());
    dc.addParam(isHost ? "%" : folderPath + "%");
    idsToUpdate = dc.loadResults();
    MenuLinkAPI linkAPI = APILocator.getMenuLinkAPI();
    permission = 0;
    if (inheritablePermission != null) {
      permission = inheritablePermission.getPermission();
    }
    for (Map<String, String> idMap : idsToUpdate) {
      String id = idMap.get("id");
      Permissionable childPermissionable;
      try {
        childPermissionable = linkAPI.findWorkingLinkById(id, systemUser, false);
      } catch (DotSecurityException e) {
        Logger.error(PermissionBitFactoryImpl.class, e.getMessage(), e);
        throw new DotRuntimeException(e.getMessage(), e);
      }
      savePermission(new Permission(id, role.getId(), permission, true), childPermissionable);
View Full Code Here


        for (HTMLPage page : pages) {
          htmlPageAPI.delete(page, user, respectFrontendRoles);
        }

        // Remove Links
        MenuLinkAPI linkAPI = APILocator.getMenuLinkAPI();
        List<Link> links = linkAPI.findLinks(user, true, null, host.getIdentifier(), null, null, null, 0, -1, null);
        for (Link link : links) {
          linkAPI.delete(link, user, respectFrontendRoles);
        }

        // Remove Contentlet
        ContentletAPI contentAPI = APILocator.getContentletAPI();               
        List<Contentlet> contentlets = contentAPI.findContentletsByHost(host, user, respectFrontendRoles);
View Full Code Here

        for (HTMLPage page : pages) {
          htmlPageAPI.delete(page, user, respectFrontendRoles);
        }

        // Remove Links
        MenuLinkAPI linkAPI = APILocator.getMenuLinkAPI();
        List<Link> links = linkAPI.findLinks(user, true, null, host.getIdentifier(), null, null, null, 0, -1, null);
        for (Link link : links) {
          linkAPI.delete(link, user, respectFrontendRoles);
        }

        // Remove Contentlet
        ContentletAPI contentAPI = APILocator.getContentletAPI();               
        List<Contentlet> contentlets = contentAPI.findContentletsByHost(host, user, respectFrontendRoles);
View Full Code Here

TOP

Related Classes of com.dotmarketing.portlets.links.business.MenuLinkAPI

Copyright © 2018 www.massapicom. 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.