319320321322323324325326327328329
param.setPanelInstance(theInstance); session.saveOrUpdate(theInstance); } }; try { txFragment.execute(); } catch (Exception e) { log.error("Error:", e); } }
715716717718719720721722723724725
protected void txFragment(Session session) throws Exception { session.saveOrUpdate(instance); } }; txFragment.execute(); } /** * Restores content from secondary storage *
109110111112113114115116117118119
} session.setFlushMode(oldFlushMode); } }; txFragment.execute(); Collections.sort(elements); } /** * Reads zipped elements in a directory and deploys them all.
135136137138139140141142143144145
HibernateTxFragment fragment = new HibernateTxFragment(true) { public void txFragment(Session session) throws Exception { deployZippedElement(elementZip, elementName);//Global for all workspaces. } }; fragment.execute(); } } } /**
163164165166167168169170171172173
element.setLastModified(new Date()); session.save(element); } }; txFragment.execute(); elements.add(element); Collections.sort(elements); } }
8788899091929394959697
session.delete(section); } }; txFragment.execute(); } /** * Stores workspace section state in database */
158159160161162163164165166167168
workspace.setDefaultWorkspace(defaultWorkspace); getWorkspacesManager().store(workspace); } }; txFragment.execute(); MessagesComponentHandler.lookup().addMessage("ui.alert.workspaceEdition.OK"); } catch (Exception e) { log.error("Error: ", e); } }
459460461462463464465466467468469
} }; try { txFragment.execute(); } catch (Exception e) { log.error("Can't delete section " + section.getId(), e); } }
652653654655656657658659660661662
panelInstancesSet.remove(instance); session.delete(instance); } }; txFragment.execute(); } catch (Exception e) { log.error("Can't remove panel instance with id " + instance.getId(), e); } } }
UIServices.lookup().getSectionsManager().store(section); } } }; txFragment.execute(); } /** * Shows the screen for a new panel creation