lib/EarthIT/CMIPREST/RESTer.php
protected function validateSimpleAction( EarthIT_CMIPREST_RESTAction $act ) {
		if( $act instanceof EarthIT_CMIPREST_RESTAction_ResourceAction ) {
			$rc = $act->getResourceClass();
			if( !$rc->hasRestService() ) {
				throw new EarthIT_CMIPREST_ResourceNotExposedViaService($act, array('message'=>"'".$rc->getName()."' records are not exposed via services"));
			}
		} else if( $act instanceof EarthIT_CMIPREST_RESTAction_InvalidAction ) {
			throw new EarthIT_CMIPREST_ActionInvalid($act, $act->getErrorDetails());
		} else {
			throw new EarthIT_CMIPREST_ActionInvalid($act, array(array(
				'class' => 'ClientError/ActionInvalid',
				'message' => 'Unrecognized action class: '.get_class($act)
			)));
		}
	}
protected function validateSimpleAction( EarthIT_CMIPREST_RESTAction $act ) {
		if( $act instanceof EarthIT_CMIPREST_RESTAction_ResourceAction ) {
			$rc = $act->getResourceClass();
			if( !$rc->hasRestService() ) {
				throw new EarthIT_CMIPREST_ResourceNotExposedViaService($act, array('message'=>"'".$rc->getName()."' records are not exposed via services"));
			}
		} else if( $act instanceof EarthIT_CMIPREST_RESTAction_InvalidAction ) {
			throw new EarthIT_CMIPREST_ActionInvalid($act, $act->getErrorDetails());
		} else {
			throw new EarthIT_CMIPREST_ActionInvalid($act, array(array(
				'class' => 'ClientError/ActionInvalid',
				'message' => 'Unrecognized action class: '.get_class($act)
			)));
		}
	}
protected function validateSimpleAction ( EarthIT_CMIPREST_RESTAction $ act ) { if ( $ act instanceof EarthIT_CMIPREST_RESTAction_ResourceAction ) { $ rc = $ act -> getResourceClass ( ) ; if ( ! $ rc -> hasRestService ( ) ) { throw new EarthIT_CMIPREST_ResourceNotExposedViaService ( $ act , array ( 'message' => "'" . $ rc -> getName ( ) . "' records are not exposed via services" ) ) ; } } else if ( $ act instanceof EarthIT_CMIPREST_RESTAction_InvalidAction ) { throw new EarthIT_CMIPREST_ActionInvalid ( $ act , $ act -> getErrorDetails ( ) ) ; } else { throw new EarthIT_CMIPREST_ActionInvalid ( $ act , array ( array ( 'class' => 'ClientError/ActionInvalid' , 'message' => 'Unrecognized action class: ' . get_class ( $ act ) ) ) ) ; } }
Ensure that the given action is structurally valid so that
assumptions made while authorizing hold true.
Will throw an exception otherwise.

@overridable
Ensure that the given action is structurally valid so that assumptions made while authorizing hold true . Will throw an exception otherwise .