@Path(value="/templates")
public interface ITemplate
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_PACKAGE_ACTION |
static String |
DEFAULT_SERVICE_STATE |
static String |
DELETE_TEMPLATE_ACTION |
static String |
EDIT_TEMPLATE_ACTION |
static String |
REMOVE_PACKAGE_ACTION |
static String |
ROOT
the root
|
static String |
UPDATE_PACKAGE_ACTION |
| Modifier and Type | Method and Description |
|---|---|
AjaxAnswer |
addPackage(String tname,
String[] pkgs) |
RenderedView |
addPackageView(String tname) |
AjaxAnswer |
addTemplate(String templatename,
Long packageManager,
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) |
AjaxAnswer |
updatePackages(String tname,
List<String> updatePackages) |
RenderedView |
view() |
static final String ROOT
static final String UPDATE_PACKAGE_ACTION
static final String REMOVE_PACKAGE_ACTION
static final String EDIT_TEMPLATE_ACTION
static final String ADD_PACKAGE_ACTION
static final String DELETE_TEMPLATE_ACTION
static final String DEFAULT_SERVICE_STATE
@Path(value="/") RenderedView view()
@Path(value="/{name}/update")
AjaxAnswer updatePackages(String tname,
List<String> updatePackages)
tname - the template nameupdatePackages - the package names to update@Path(value="/{name}/remove")
AjaxAnswer changeTemplateState(String tname,
List<String> deletePackages)
tname - the template namedeletePackages - the package names to delete@Path(value="/add") RenderedView addTemplateView()
@Path(value="/add") AjaxAnswer addTemplate(String templatename, Long packageManager, String description, String autoupdate, String smoothupdate) throws FormErrorException
templatename - the template namepackageManager - the package managerdescription - the template descriptionautoupdate - the auto update flagsmoothupdate - the smooth update flagFormErrorException - on form errors@Path(value="/{name}/edit")
RenderedView editTemplateView(String tname)
tname - the tempalte name@Path(value="/{name}/edit")
AjaxAnswer editTemplate(String tname,
String templatename,
Long packageManagerId,
String description,
String autoupdate,
String smoothupdate)
throws FormErrorException
tname - 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@Path(value="/{name}/package/add")
RenderedView addPackageView(String tname)
tname - the template name@Path(value="/{name}/package/add")
AjaxAnswer addPackage(String tname,
String[] pkgs)
throws FormErrorException
tname - the template namepkgs - the package namesFormErrorException - on form errors@Path(value="/{name}/delete")
RenderedView deleteTemplateView(String tname)
tname - the package names@Path(value="/{name}/delete")
AjaxAnswer deleteTemplate(String tname)
throws FormErrorException
tname - the template nameFormErrorException - on form errors@Path(value="/{name}/services/default")
RenderedView defaultServiceStatesView(String tname)
tname - the template name@Path(value="/{name}/services/default")
AjaxAnswer changeDefaultServiceStates(String tname,
List<String> startService,
List<String> stopService)
tname - the template namestartService - service names to startstopService - service names to stopCopyright © 2014 Cinovo AG. All Rights Reserved.