public boolean isRAEntityLinkNameReferenced ( String raLinkName ) { if ( raLinkName == null ) { throw new NullPointerException ( "null ra link name" ) ; } boolean b = false ; try { b = transactionManager . requireTransaction ( ) ; for ( ServiceID serviceID : componentRepositoryImpl . getServiceIDs ( ) ) { ServiceComponent serviceComponent = componentRepositoryImpl . getComponentByID ( serviceID ) ; if ( serviceComponent . getServiceState ( ) != ServiceState . INACTIVE && serviceComponent . getResourceAdaptorEntityLinks ( componentRepositoryImpl ) . contains ( raLinkName ) ) { return true ; } } return false ; } finally { try { transactionManager . requireTransactionEnd ( b , false ) ; } catch ( Throwable ex ) { throw new SLEEException ( ex . getMessage ( ) , ex ) ; } } }
Verifies if the specified ra entity link name is referenced by a non inactive service .