Package org.apache.chemistry.opencmis.commons.enums

Examples of org.apache.chemistry.opencmis.commons.enums.ContentStreamAllowed


        throw new CmisConstraintException("acl set for type: " + typeDef.getDisplayName() + " that is not controllableACL");
      }
    }
   
    public static void validateContentAllowed(DocumentTypeDefinition typeDef, boolean hasContent) {
        ContentStreamAllowed contentAllowed = typeDef.getContentStreamAllowed();
        if (ContentStreamAllowed.REQUIRED == contentAllowed && !hasContent) {
            throw new CmisConstraintException("Type " + typeDef.getId() + " requires content but document has no content.");
        } else if (ContentStreamAllowed.NOTALLOWED == contentAllowed && hasContent) {
            throw new CmisConstraintException("Type " + typeDef.getId() + " does not allow content but document has content.");
        }
View Full Code Here

TOP

Related Classes of org.apache.chemistry.opencmis.commons.enums.ContentStreamAllowed

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.