Examples of JahiaRuntimeException


Examples of org.jahia.exceptions.JahiaRuntimeException

        if (contentCache == null) {
            try {
                contentCache = CacheFactory.getInstance().getCache(CONTENT_CACHE_NAME, true);
            } catch (JahiaInitializationException e) {
                logger.error(e.getMessage(), e);
                throw new JahiaRuntimeException(e);
            }
        }
       
        return contentCache;
       
View Full Code Here

Examples of org.jahia.exceptions.JahiaRuntimeException

        if (lastModifiedCache == null) {
            try {
                lastModifiedCache = CacheFactory.getInstance().getCache(LAST_MODIFIED_CACHE_NAME, true);
            } catch (JahiaInitializationException e) {
                logger.error(e.getMessage(), e);
                throw new JahiaRuntimeException(e);
            }
        }
       
        return lastModifiedCache;
    }
View Full Code Here

Examples of org.jahia.exceptions.JahiaRuntimeException

    }

    protected WorkflowProvider lookupProvider(String key) {
        WorkflowProvider provider = providers.get(key);
        if (provider == null) {
            throw new JahiaRuntimeException("Unknown workflow provider with the key '" + key + "'");
        }

        return provider;
    }
View Full Code Here

Examples of org.jahia.exceptions.JahiaRuntimeException

  public JahiaPasswordPolicy getDefaultPolicy() {
    JahiaPasswordPolicy defPolicy;
    try {
      defPolicy = policyMgr.getDefaultPolicy();
    } catch (RepositoryException e) {
      throw new JahiaRuntimeException(e);
    }
    if (defPolicy == null) {
      synchronized (JahiaPasswordPolicyService.class) {
        if (defPolicy == null) {
          // no def policy found --> creating one
          JahiaPasswordPolicy copy = (JahiaPasswordPolicy) defaultPasswordPolicy.clone();
          try {
            policyMgr.update(copy);
          } catch (RepositoryException e) {
            throw new JahiaRuntimeException(e);
          }
          defPolicy = copy;
        }
      }
    }
View Full Code Here

Examples of org.jahia.exceptions.JahiaRuntimeException

   */
  public void updatePolicy(JahiaPasswordPolicy policy) {
    try {
      policyMgr.update(policy);
    } catch (RepositoryException e) {
      throw new JahiaRuntimeException(e);
    }
  }
View Full Code Here

Examples of org.jahia.exceptions.JahiaRuntimeException

        super();
        this.readOnly = readOnly;
        try {
            init();
        } catch (RepositoryException e) {
            throw new JahiaRuntimeException(e);
        }
    }
View Full Code Here

Examples of org.jahia.exceptions.JahiaRuntimeException

    protected void forwardToErrorPage(String errorPagePath, HttpServletRequest request,
            HttpServletResponse response) throws ServletException, IOException {
        if (null == errorPagePath) {
            logger.info("No appropriate error page found for error code '" + getErrorCode(request)
                    + "'. Using server's default page.");
            throw new JahiaRuntimeException(
                    "No appropriate error page found. Server's default page will be used.");
        } else {
            if (logger.isDebugEnabled()) {
                logger.debug("Forwarding request to the following error page: " + errorPagePath);
            }
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.