agave-monitors/monitors-core/src/main/java/org/iplantc/service/monitor/managers/MonitorManager.java
/**
	 * Checks that the {@link Monitor} owner's role satisfies {@link RoleType#canRead()} on the {@code system}.
	 * @param system the {@link RemoteSystem} for which to check user data roles
	 * @param username the username of the user to check system data access
	 * @throws PermissionException if the user has {@link RoleType#NONE} permissions on the system
	 */
Checks that the  Monitor owner's role satisfies  RoleType#canRead() on the  system.
@param system the  RemoteSystem for which to check user data roles
@param username the username of the user to check system data access
@throws PermissionException if the user has  RoleType#NONE permissions on the system
Checks that the Monitor owner ' s role satisfies RoleType#canRead () on the system . @param system the RemoteSystem for which to check user data roles @param username the username of the user to check system data access @throws PermissionException if the user has RoleType#NONE permissions on the system
public void verifyUserHasSystemDataPermissions(RemoteSystem system, String username) throws SystemRoleException, PermissionException {
		SystemRoleManager systemRoleManager = getSystemRoleManager(system);
		if ( ! system.getUserRole(username).getRole().canRead()) {
			throw new PermissionException("User does not have a sufficient roles to access data on system" +
					system.getSystemId());
		}
	}
public void verifyUserHasSystemDataPermissions ( RemoteSystem system , String username ) throws SystemRoleException , PermissionException { SystemRoleManager systemRoleManager = getSystemRoleManager ( system ) ; if ( ! system . getUserRole ( username ) . getRole ( ) . canRead ( ) ) { throw new PermissionException ( "User does not have a sufficient roles to access data on system" + system . getSystemId ( ) ) ; } }
Checks that the {@link Monitor} owner's role satisfies {@link RoleType#canRead()} on the {@code system}.
Checks that the { @link Monitor } owner ' s role satisfies { @link RoleType#canRead () } on the { @code system } .