log.debug( "Queried repository (Quick Find) for (" + search + ") in " + methodDuration + " ms." );
return response;
}
protected void lockAsset(String uuid) {
AssetLockManager lockManager = AssetLockManager.instance();
String userName;
if ( Contexts.isApplicationContextActive() ) {
userName = Identity.instance().getCredentials().getUsername();
} else {
userName = "anonymous";
}
log.info( "Locking asset uuid=" + uuid + " for user [" + userName + "]" );
lockManager.lockAsset( uuid,
userName );
}