Examples of CmisPermissionDeniedException


Examples of org.apache.chemistry.opencmis.commons.exceptions.CmisPermissionDeniedException

        case 400:
            return new CmisInvalidArgumentException(message, errorContent, t);
        case 404:
            return new CmisObjectNotFoundException(message, errorContent, t);
        case 403:
            return new CmisPermissionDeniedException(message, errorContent, t);
        case 405:
            return new CmisNotSupportedException(message, errorContent, t);
        case 409:
            return new CmisConstraintException(message, errorContent, t);
        default:
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.exceptions.CmisPermissionDeniedException

        }
    }

    protected void checkHasUser(String user) {
        if (null == user || user.length() == 0) {
            throw new CmisPermissionDeniedException("Object can't be checked-in, no user is given.");
        }
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.commons.exceptions.CmisPermissionDeniedException

        checkAccess(principalId, so, Permission.ALL);
    }
    private void checkAccess(String principalId, StoredObject so, Permission permission) {
        if (!hasAccess(principalId, so, permission))
            throw new CmisPermissionDeniedException("Object with id " + so.getId() + " and name " + so.getName()
                    + " does not grant " + permission.toString() + " access to principal " + principalId);
    }
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.