Package com.dotmarketing.portlets.virtuallinks.model

Examples of com.dotmarketing.portlets.virtuallinks.model.VirtualLink


  }

  private void _deleteVirtualLink(ActionRequest req, ActionResponse res,PortletConfig config, ActionForm form , User user)
  throws Exception {

    VirtualLink vl = (VirtualLink) req.getAttribute(WebKeys.VIRTUAL_LINK_EDIT);

    //removes this URL from cache
    if (UtilMethods.isSet(vl.getUrl())) {
        VirtualLinksCache.removePathFromCache(vl.getUrl());
    }
   
    vl = virtualLinkAPI.checkVirtualLinkForEditPermissions(vl, user);
         
      if(vl == null){
View Full Code Here


  }
 
  @Override
  protected VirtualLink get(String key) {
    key = sanitizeKey(key);
    VirtualLink virtualLink = null;
      try{
        virtualLink = (VirtualLink) cache.get(key,primaryGroup);
      }catch (DotCacheException e) {
      Logger.debug(this, "Cache Entry not found", e);
    }
View Full Code Here

            Identifier id = APILocator.getIdentifierAPI().find(host, uri);
            HTMLPage myHTMLPage = (HTMLPage) APILocator.getVersionableAPI().findLiveVersion(id, APILocator.getUserAPI().getSystemUser(),false);
            req.setAttribute("htmlPage", myHTMLPage);
            if (!InodeUtils.isSet(id.getInode())) {

                VirtualLink vl = null;
                try{
                  vl = VirtualLinkFactory.getVirtualLinkByURL(uri);
                }
                catch(DotHibernateException dhe){
                  Logger.debug(VirtualLinksCache.class, "failed to find: " + uri)
                }
                if (vl != null && !InodeUtils.isSet(vl.getInode())) {

                    myHTMLPage.setTitle(LanguageUtil.get(user, "message.htmlpageviews.pagenotfound"));
                    SessionMessages.add(req, "message", "message.htmlpageviews.pagenotfound");
                } else {
                    req.setAttribute(WebKeys.VIRTUAL_LINK_EDIT, vl);
View Full Code Here

TOP

Related Classes of com.dotmarketing.portlets.virtuallinks.model.VirtualLink

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.