use of org.bimserver.database.actions.UndeleteProjectDatabaseAction in project BIMserver by opensourceBIM.
the class ServiceImpl method undeleteProject.
@Override
public Boolean undeleteProject(Long poid) throws ServerException, UserException {
requireRealUserAuthentication();
DatabaseSession session = getBimServer().getDatabase().createSession();
try {
BimDatabaseAction<Boolean> action = new UndeleteProjectDatabaseAction(getBimServer(), session, getInternalAccessMethod(), poid, getAuthorization());
return session.executeAndCommitAction(action);
} catch (Exception e) {
return handleException(e);
} finally {
session.close();
}
}
Aggregations