@WebRemote
@Restrict("#{identity.loggedIn}")
public String renamePackage(String uuid,
String newName) {
if ( Contexts.isSessionContextActive() ) {
Identity.instance().checkPermission( new PackageUUIDType( uuid ),
RoleTypes.PACKAGE_ADMIN );
}
log.info( "USER:" + getCurrentUserName() + " RENAMING package [UUID: " + uuid + "] to package [" + newName + "]" );
return repository.renamePackage( uuid,