congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.apache.chemistry.opencmis.commons.exceptions
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using org.apache.chemistry.opencmis.commons.exceptions (Showing top 20 results out of 315)

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: org.opencms/opencms-core

/**
 * @see org.opencms.cmis.I_CmsCmisRepository#deleteContentStream(org.opencms.cmis.CmsCmisCallContext, org.apache.chemistry.opencmis.commons.spi.Holder, org.apache.chemistry.opencmis.commons.spi.Holder)
 */
public synchronized void deleteContentStream(
  CmsCmisCallContext context,
  Holder<String> objectId,
  Holder<String> changeToken) {
  throw new CmisConstraintException("Content streams may not be deleted.");
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

@Override
public ObjectInFolderList getChildren(String repositoryId, String folderId,
    String filter, String orderBy, Boolean includeAllowableActions,
    IncludeRelationships includeRelationships, String renditionFilter,
    Boolean includePathSegment, BigInteger maxItems,
    BigInteger skipCount, ExtensionsData extension) {
  throw new CmisNotSupportedException();
}
origin: org.opencms/opencms-core

/**
 * Wrap OpenCms into OpenCMIS exceptions and rethrow them.<p>
 *
 * @param e the exception to handle
 */
public static void handleCmsException(CmsException e) {
  if (e instanceof CmsVfsResourceNotFoundException) {
    throw new CmisObjectNotFoundException(e.getLocalizedMessage(), e);
  } else if (e instanceof CmsSecurityException) {
    throw new CmisUnauthorizedException(e.getLocalizedMessage(), e);
  } else {
    throw new CmisRuntimeException(e.getLocalizedMessage(), e);
  }
}
origin: Alfresco/alfresco-repository

  public boolean handleAuditEntryError(Long entryId, String errorMsg, Throwable error)
  {
    throw new CmisRuntimeException("Audit entry " + entryId + ": " + errorMsg, error);
  }
};
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-support

/**
 * Throws an exception if the given properties set is {@code null}.
 */
protected void checkProperties(Properties properties) {
  if (properties == null) {
    throw new CmisInvalidArgumentException("Properties must be set!");
  }
}
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

  public boolean handleAuditEntryError(Long entryId, String errorMsg, Throwable error)
  {
    throw new CmisRuntimeException("Audit entry " + entryId + ": " + errorMsg, error);
  }
};
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

private void addFieldBytes(int len) {
  fieldBytes += len;
  if (fieldBytes > MAX_FIELD_BYTES) {
    throw new CmisInvalidArgumentException("Limit exceeded!");
  }
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

@Override
public List<ObjectParentData> getObjectParents(String repositoryId,
    String objectId, String filter, Boolean includeAllowableActions,
    IncludeRelationships includeRelationships, String renditionFilter,
    Boolean includeRelativePathSegment, ExtensionsData extension) {
  throw new CmisNotSupportedException();
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

  public static Document newDomDocument() {
    throw new CmisRuntimeException("This method should never be used on Android!");
  }
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

private void checkLength() throws IOException {
  if (counter > max) {
    throw new CmisInvalidArgumentException("Limit exceeded!");
  }
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

@Override
public TypeDefinitionList getTypeChildren(String repositoryId,
    String typeId, Boolean includePropertyDefinitions,
    BigInteger maxItems, BigInteger skipCount, ExtensionsData extension) {
  throw new CmisNotSupportedException();
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-support

/**
 * Throws an exception if the given type definition is {@code null}.
 */
protected void checkTypeDefinition(TypeDefinition typeDef) {
  if (typeDef == null) {
    throw new CmisInvalidArgumentException("Type definition must be set!");
  }
}
origin: org.opencms/opencms-core

/**
 * Checks whether we have write access to this repository and throws an exception otherwise.<p>
 */
protected void checkWriteAccess() {
  if (m_isReadOnly) {
    throw new CmisNotSupportedException("Readonly repository '" + m_id + "' does not allow write operations.");
  }
}
origin: org.opencms/opencms-core

/**
 * Helper method to create exceptions for unsupported features.<p>
 *
 * @return the created exception
 */
protected RuntimeException notSupported() {
  return new CmisNotSupportedException("Not supported");
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

  @Override
  public TypeDefinition getTypeDefinition(String repositoryId, String typeId,
      ExtensionsData extension) {
    throw new CmisNotSupportedException();
  }
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

@Override
public String createDocumentFromSource(String repositoryId, String sourceId, Properties properties,
    String folderId, VersioningState versioningState, List<String> policies, Acl addACEs, Acl removeACEs,
    ExtensionsData extension) {
  throw new CmisNotSupportedException("createDocumentFromSource is not supported by the AtomPub binding!");
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-client-bindings

@Override
public String createDocumentFromSource(String repositoryId, String sourceId, Properties properties,
    String folderId, VersioningState versioningState, List<String> policies, Acl addACEs, Acl removeACEs,
    ExtensionsData extension) {
  throw new CmisNotSupportedException("createDocumentFromSource is not supported by the AtomPub binding!");
}
origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

@Override
public ObjectData getObject(String repositoryId, String objectId,
    String filter, Boolean includeAllowableActions,
    IncludeRelationships includeRelationships, String renditionFilter,
    Boolean includePolicyIds, Boolean includeAcl,
    ExtensionsData extension) {
  throw new CmisNotSupportedException();
}
org.apache.chemistry.opencmis.commons.exceptions

Most used classes

  • CmisRuntimeException
    CMIS Runtime Exception. Cause: Any other cause not expressible by another CMIS exception.
  • CmisInvalidArgumentException
    CMIS InvalidArgument Exception. Cause: One or more of the input parameters to the service method is
  • CmisObjectNotFoundException
    CMIS ObjectNotFound Exception. Cause: The service call has specified an object, an object-type or a
  • CmisConstraintException
    CMIS Constraint Exception. Intent: The operation violates a repository- or object-level constraint d
  • CmisStorageException
    CMIS Storage Exception. Intent: The repository is not able to store the object that the user is crea
  • CmisBaseException,
  • CmisConnectionException,
  • CmisContentAlreadyExistsException,
  • CmisPermissionDeniedException,
  • CmisStreamNotSupportedException,
  • CmisUpdateConflictException,
  • CmisFilterNotValidException,
  • CmisNameConstraintViolationException,
  • CmisServiceUnavailableException,
  • CmisUnauthorizedException,
  • CmisVersioningException,
  • CmisProxyAuthenticationException,
  • CmisTooManyRequestsException
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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