agave-files/files-api/src/main/java/org/iplantc/service/io/resources/AbstractServerResource.java
/**
     * Throws a {@link ResourceException} if the current user has not sufficient
     * permissions.
     * 
     * @param allowedGroups
     *            The list of allowed groups.
     * @param deniedGroups
     *            The list of denied groups.
     * @throws ResourceException
     */
Throws a  ResourceException if the current user has not sufficient
permissions.

@param allowedGroups
The list of allowed groups.
@param deniedGroups
The list of denied groups.
Throws a ResourceException if the current user has not sufficient permissions . @param allowedGroups The list of allowed groups . @param deniedGroups The list of denied groups .
protected void checkGroups(String[] allowedGroups, String[] deniedGroups)
            throws ResourceException {
        if (!checkGroups(allowedGroups, deniedGroups, getRequest().getClientInfo().getRoles())) {
            throw new ResourceException(Status.CLIENT_ERROR_FORBIDDEN);
        }
    }
protected void checkGroups ( String [ ] allowedGroups , String [ ] deniedGroups ) throws ResourceException { if ( ! checkGroups ( allowedGroups , deniedGroups , getRequest ( ) . getClientInfo ( ) . getRoles ( ) ) ) { throw new ResourceException ( Status . CLIENT_ERROR_FORBIDDEN ) ; } }
Throws a {@link ResourceException} if the current user has not sufficient
 permissions.
Throws a { @link ResourceException } if the current user has not sufficient permissions .