@ Override public Validation validate ( Context context , String pid , Date asOfDateTime ) throws ServerException { try { logger . debug ( "Entered validate" ) ; m_authz . enforceValidate ( context , pid , asOfDateTime ) ; return ecmValidator . validate ( context , pid , asOfDateTime ) ; } finally { // Logger completion if ( logger . isInfoEnabled ( ) ) { StringBuilder logMsg = new StringBuilder ( "Completed validate(" ) ; logMsg . append ( "pid: " ) . append ( pid ) ; logMsg . append ( ", asOfDateTime: " ) . append ( asOfDateTime ) ; logMsg . append ( ")" ) ; logger . info ( logMsg . toString ( ) ) ; } logger . debug ( "Exiting validate" ) ; } }
Validate the object against the datacontracts from the objects content model . This method just delegates the validation to EcmValidator