congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CmisPermissionDeniedException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.chemistry.opencmis.commons.exceptions.CmisPermissionDeniedException
constructor

Best Java code snippets using org.apache.chemistry.opencmis.commons.exceptions.CmisPermissionDeniedException.<init> (Showing top 14 results out of 315)

origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

throw new CmisPermissionDeniedException("Invalid CSRF token!");
throw new CmisPermissionDeniedException("Invalid CSRF token!");
throw new CmisPermissionDeniedException("Invalid CSRF token!");
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

  result.put(CallContext.PASSWORD, null);
} else {
  throw new CmisPermissionDeniedException("Invalid token!");
throw new CmisPermissionDeniedException("No authentication!");
origin: org.alfresco/alfresco-repository

public void checkIfUseful(String what)
{
  switch (objecVariant)
  {
  case INVALID_ID:
    throw new CmisInvalidArgumentException(what + " id is invalid: " + objectId);
  case NOT_EXISTING:
    throw new CmisObjectNotFoundException(what + " not found: " + objectId);
  case NOT_A_CMIS_OBJECT:
    throw new CmisObjectNotFoundException(what + " is not a CMIS object: " + objectId);
  case PERMISSION_DENIED:
    throw new CmisPermissionDeniedException("Permission denied!");
  }
}
origin: Alfresco/alfresco-repository

public void checkIfUseful(String what)
{
  switch (objecVariant)
  {
  case INVALID_ID:
    throw new CmisInvalidArgumentException(what + " id is invalid: " + objectId);
  case NOT_EXISTING:
    throw new CmisObjectNotFoundException(what + " not found: " + objectId);
  case NOT_A_CMIS_OBJECT:
    throw new CmisObjectNotFoundException(what + " is not a CMIS object: " + objectId);
  case PERMISSION_DENIED:
    throw new CmisPermissionDeniedException("Permission denied!");
  }
}
origin: org.alfresco/alfresco-repository

throw new CmisPermissionDeniedException(cmisAffecting.getMessage(), e);
throw new CmisPermissionDeniedException("Permission denied: " + cmisAffecting.getMessage(), e);
origin: Alfresco/alfresco-repository

throw new CmisPermissionDeniedException(cmisAffecting.getMessage(), e);
throw new CmisPermissionDeniedException("Permission denied: " + cmisAffecting.getMessage(), e);
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

      return new CmisObjectNotFoundException(message, errorContent, additionalData, t);
    } else if (CmisPermissionDeniedException.EXCEPTION_NAME.equalsIgnoreCase((String) jsonError)) {
      return new CmisPermissionDeniedException(message, errorContent, additionalData, t);
    } else if (CmisStorageException.EXCEPTION_NAME.equalsIgnoreCase((String) jsonError)) {
      return new CmisStorageException(message, errorContent, additionalData, t);
  return new CmisUnauthorizedException(message, errorContent, t);
case 403:
  return new CmisPermissionDeniedException(message, errorContent, t);
case 404:
  return new CmisObjectNotFoundException(message, errorContent, t);
origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

  return new CmisObjectNotFoundException(msg, code, errorContent, additionalData);
case PERMISSION_DENIED:
  return new CmisPermissionDeniedException(msg, code, errorContent, additionalData);
case RUNTIME:
  return new CmisRuntimeException(msg, code, errorContent, additionalData);
origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

      return new CmisObjectNotFoundException(message, errorContent, additionalData, t);
    } else if (CmisPermissionDeniedException.EXCEPTION_NAME.equalsIgnoreCase((String) jsonError)) {
      return new CmisPermissionDeniedException(message, errorContent, additionalData, t);
    } else if (CmisStorageException.EXCEPTION_NAME.equalsIgnoreCase((String) jsonError)) {
      return new CmisStorageException(message, errorContent, additionalData, t);
  return new CmisUnauthorizedException(message, errorContent, t);
case 403:
  return new CmisPermissionDeniedException(message, errorContent, t);
case 404:
  return new CmisObjectNotFoundException(message, errorContent, t);
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

    return new CmisStreamNotSupportedException(message, errorContent, t);
  return new CmisPermissionDeniedException(message, errorContent, t);
case 404:
  return new CmisObjectNotFoundException(message, errorContent, t);
origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

    return new CmisStreamNotSupportedException(message, errorContent, additionalData, t);
  return new CmisPermissionDeniedException(message, errorContent, additionalData, t);
case 404:
  return new CmisObjectNotFoundException(message, errorContent, additionalData, t);
origin: org.opencms/opencms-core

/**
 * Initializes a CMS context for the authentication data contained in a call context.<p>
 *
 * @param context the call context
 * @return the initialized CMS context
 */
protected CmsObject getCmsObject(CmsCmisCallContext context) {
  try {
    if (context.getUsername() == null) {
      // user name can be null
      CmsObject cms = OpenCms.initCmsObject(OpenCms.getDefaultUsers().getUserGuest());
      cms.getRequestContext().setCurrentProject(m_adminCms.getRequestContext().getCurrentProject());
      return cms;
    } else {
      CmsObject cms = OpenCms.initCmsObject(m_adminCms);
      CmsProject projectBeforeLogin = cms.getRequestContext().getCurrentProject();
      cms.loginUser(context.getUsername(), context.getPassword());
      cms.getRequestContext().setCurrentProject(projectBeforeLogin);
      return cms;
    }
  } catch (CmsException e) {
    throw new CmisPermissionDeniedException(e.getLocalizedMessage(), e);
  }
}
origin: Alfresco/alfresco-repository

if (AccessStatus.ALLOWED != perm)
  throw new CmisPermissionDeniedException("Cannot delete the node version.");
  if (AccessStatus.ALLOWED != perm)
    throw new CmisPermissionDeniedException("Cannot delete the node version.");
origin: org.alfresco/alfresco-repository

if (AccessStatus.ALLOWED != perm)
  throw new CmisPermissionDeniedException("Cannot delete the node version.");
  if (AccessStatus.ALLOWED != perm)
    throw new CmisPermissionDeniedException("Cannot delete the node version.");
org.apache.chemistry.opencmis.commons.exceptionsCmisPermissionDeniedException<init>

Javadoc

Default constructor.

Popular methods of CmisPermissionDeniedException

    Popular in Java

    • Creating JSON documents from java classes using gson
    • onRequestPermissionsResult (Fragment)
    • getSystemService (Context)
    • getSupportFragmentManager (FragmentActivity)
    • SortedMap (java.util)
      A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
    • TimeZone (java.util)
      TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
    • Cipher (javax.crypto)
      This class provides access to implementations of cryptographic ciphers for encryption and decryption
    • Servlet (javax.servlet)
      Defines methods that all servlets must implement. A servlet is a small Java program that runs within
    • XPath (javax.xml.xpath)
      XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
    • StringUtils (org.apache.commons.lang)
      Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
    • Top 15 Vim Plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now