public class TemplatesImpl extends AWebPage implements ITemplate
| Modifier and Type | Field and Description |
|---|---|
protected ITemplateDAO |
dTemplate |
dServerOptions, mc, navRegistryADD_PACKAGE_ACTION, DEFAULT_SERVICE_STATE, DELETE_TEMPLATE_ACTION, EDIT_TEMPLATE_ACTION, REMOVE_PACKAGE_ACTION, ROOT, UPDATE_PACKAGE_ACTION| Constructor and Description |
|---|
TemplatesImpl() |
| Modifier and Type | Method and Description |
|---|---|
AjaxAnswer |
addPackage(String tname,
String[] pkgs) |
RenderedView |
addPackageView(String tname) |
AjaxAnswer |
addTemplate(String templatename,
Long packageManagerId,
String description,
String autoupdate,
String smoothupdate) |
RenderedView |
addTemplateView() |
AjaxAnswer |
changeDefaultServiceStates(String tname,
List<String> startService,
List<String> stopService) |
AjaxAnswer |
changeTemplateState(String tname,
List<String> deletePackages) |
RenderedView |
defaultServiceStatesView(String tname) |
AjaxAnswer |
deleteTemplate(String tname) |
RenderedView |
deleteTemplateView(String tname) |
AjaxAnswer |
editTemplate(String tname,
String templatename,
Long packageManagerId,
String description,
String autoupdate,
String smoothupdate) |
RenderedView |
editTemplateView(String tname) |
protected String |
getNavElementName() |
protected String |
getTemplateFolder() |
protected void |
init() |
AjaxAnswer |
updatePackages(String tname,
List<String> updatePackages) |
RenderedView |
view() |
addBreadCrumb, addFilter, addSidebarElement, addSidebarElement, addSidebarElements, addTopAction, addViewType, assertNotEmpty, auditFormat, checkForEmpty, clearFilter, clearViewType, createError, createModal, createView, createView, getCurrentFilter, getCurrentViewType, getSidebarType, hasError, pollError, removeSidebarElement, setMessageContext, sortMap, sortNamedList@Autowired protected ITemplateDAO dTemplate
protected String getTemplateFolder()
getTemplateFolder in class AWebPageprotected String getNavElementName()
getNavElementName in class AWebPage@Transactional public RenderedView view()
@Transactional public AjaxAnswer updatePackages(String tname, List<String> updatePackages)
updatePackages in interface ITemplatetname - the template nameupdatePackages - the package names to update@Transactional public AjaxAnswer changeTemplateState(String tname, List<String> deletePackages)
changeTemplateState in interface ITemplatetname - the template namedeletePackages - the package names to delete@Transactional public RenderedView editTemplateView(String tname)
editTemplateView in interface ITemplatetname - the tempalte name@Transactional public AjaxAnswer editTemplate(String tname, String templatename, Long packageManagerId, String description, String autoupdate, String smoothupdate) throws FormErrorException
editTemplate in interface ITemplatetname - the old template nametemplatename - the new template namepackageManagerId - the package manager iddescription - the template descriptionautoupdate - the auto update flagsmoothupdate - the smooth update flagFormErrorException - on error@Transactional public RenderedView addPackageView(String tname)
addPackageView in interface ITemplatetname - the template name@Transactional public AjaxAnswer addPackage(String tname, String[] pkgs) throws FormErrorException
addPackage in interface ITemplatetname - the template namepkgs - the package namesFormErrorException - on form errors@Transactional public RenderedView deleteTemplateView(String tname)
deleteTemplateView in interface ITemplatetname - the package names@Transactional public AjaxAnswer deleteTemplate(String tname) throws FormErrorException
deleteTemplate in interface ITemplatetname - the template nameFormErrorException - on form errors@Transactional public RenderedView defaultServiceStatesView(String tname)
defaultServiceStatesView in interface ITemplatetname - the template name@Transactional public AjaxAnswer changeDefaultServiceStates(String tname, List<String> startService, List<String> stopService)
changeDefaultServiceStates in interface ITemplatetname - the template namestartService - service names to startstopService - service names to stop@Transactional public RenderedView addTemplateView()
addTemplateView in interface ITemplate@Transactional public AjaxAnswer addTemplate(String templatename, Long packageManagerId, String description, String autoupdate, String smoothupdate) throws FormErrorException
addTemplate in interface ITemplatetemplatename - the template namepackageManagerId - the package managerdescription - the template descriptionautoupdate - the auto update flagsmoothupdate - the smooth update flagFormErrorException - on form errorsCopyright © 2014 Cinovo AG. All Rights Reserved.