copper-server-api/src/main/java/com/pogeyan/cmis/api/repo/CopperCmsRepository.java
/**
	 * Checks if the user in the given context is valid for this repository and
	 * if the user has the required permissions.
	 */
Checks if the user in the given context is valid for this repository and
if the user has the required permissions.
Checks if the user in the given context is valid for this repository and if the user has the required permissions .
@SuppressWarnings("unused")
	private boolean checkUser(CallContext context, boolean writeRequired) {
		if (context == null) {
			throw new CmisPermissionDeniedException("No user context!");
		}
		Boolean readOnly = readWriteUserMap.get(context.getUsername());
		if (readOnly.booleanValue() && writeRequired) {
			LOG.error("No write permission!");
			throw new CmisPermissionDeniedException("No write permission!");
		}
		return readOnly.booleanValue();
	}
@ SuppressWarnings ( "unused" ) private boolean checkUser ( CallContext context , boolean writeRequired ) { if ( context == null ) { throw new CmisPermissionDeniedException ( "No user context!" ) ; } Boolean readOnly = readWriteUserMap . get ( context . getUsername ( ) ) ; if ( readOnly . booleanValue ( ) && writeRequired ) { LOG . error ( "No write permission!" ) ; throw new CmisPermissionDeniedException ( "No write permission!" ) ; } return readOnly . booleanValue ( ) ; }
Checks if the user in the given context is valid for this repository and
 if the user has the required permissions.
Checks if the user in the given context is valid for this repository and if the user has the required permissions .