@Path(value="/files")
public interface IFiles
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_TO_FILE_ACTION |
static String |
ADD_TO_TEMPLATE_ACTION |
static String |
DELETE_ACTION |
static String |
EDIT_ACTION |
static String |
REMOVE_FROM_TEMPLATE_ACTION |
static String |
ROOT
the root
|
static String |
SAVE_ACTION |
static String |
TEMPLATE_FILTER
a viewtype for template view
|
| Modifier and Type | Method and Description |
|---|---|
AjaxAnswer |
addFileToTemplate(String[] name,
String template) |
RenderedView |
addFileToTemplateView(String template) |
AjaxAnswer |
addTemplateToFile(String[] template,
String name) |
RenderedView |
addTemplateToFileView(String file) |
AjaxAnswer |
deleteFile(String name) |
AjaxAnswer |
deleteFileFromTemplate(String name,
String template) |
RenderedView |
deleteFileFromTemplateView(String name,
String template) |
RenderedView |
deleteFileView(String name) |
RenderedView |
editFileView(String name) |
RenderedView |
newFileView() |
AjaxAnswer |
saveFile(String oldname,
String newname,
String owner,
String group,
String mode,
String targetPath,
String content,
Boolean isTemplate,
String depPackage,
String[] depServices,
String[] templates) |
RenderedView |
view(String viewtype,
String[] filter) |
static final String TEMPLATE_FILTER
static final String ROOT
static final String DELETE_ACTION
static final String EDIT_ACTION
static final String SAVE_ACTION
static final String ADD_TO_FILE_ACTION
static final String ADD_TO_TEMPLATE_ACTION
static final String REMOVE_FROM_TEMPLATE_ACTION
@Path(value="/") RenderedView view(String viewtype, String[] filter)
viewtype - the viewtypefilter - the filter@Path(value="/add") RenderedView newFileView()
@Path(value="/{name}/edit")
RenderedView editFileView(String name)
name - the file name@Path(value="/{name}/delete")
RenderedView deleteFileView(String name)
name - the file name@Path(value="/{template}/{name}/delete")
RenderedView deleteFileFromTemplateView(String name,
String template)
name - the file nametemplate - the template name@Path(value="/{template}/add")
RenderedView addFileToTemplateView(String template)
template - the template name@Path(value="/{name}/templates/add")
RenderedView addTemplateToFileView(String file)
file - the file name@Path(value="/{name}/save")
AjaxAnswer saveFile(String oldname,
String newname,
String owner,
String group,
String mode,
String targetPath,
String content,
Boolean isTemplate,
String depPackage,
String[] depServices,
String[] templates)
throws FormErrorException
oldname - the old file namenewname - the new file nameowner - the ownergroup - the groupmode - the file modetargetPath - the target pathcontent - the file contentisTemplate - file is templatedepPackage - name of dependent packagedepServices - names of associated servicestemplates - names of associated templatesFormErrorException - on error within the form@Path(value="/{name}/delete")
AjaxAnswer deleteFile(String name)
name - the file name@Path(value="/{template}/{name}/delete")
AjaxAnswer deleteFileFromTemplate(String name,
String template)
name - the file nametemplate - the template name@Path(value="/{template}/add")
AjaxAnswer addFileToTemplate(String[] name,
String template)
name - array of file namestemplate - the template anem@Path(value="/{name}/templates/add")
AjaxAnswer addTemplateToFile(String[] template,
String name)
name - array of file namestemplate - the template anemCopyright © 2014 Cinovo AG. All Rights Reserved.