/* (non-Javadoc)
* @see org.drools.guvnor.client.rpc.RepositoryService#lockAsset(java.lang.String)
*/
@Restrict("#{identity.loggedIn}")
public void lockAsset(String uuid) {
AssetLockManager alm = AssetLockManager.instance();
String userName;
if ( Contexts.isApplicationContextActive() ) {
userName = Identity.instance().getUsername();
} else {
userName = "anonymous";
}
log.info( "Locking asset uuid=" + uuid + " for user [" + userName + "]" );
alm.lockAsset( uuid, userName );
}