|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jurismarches.vradi.services.managers.FormTypeManager
public class FormTypeManager
Class containing the metods to manage the form types : - creation, update, retrieving - cache filling
| Field Summary | |
|---|---|
protected org.nuiton.wikitty.WikittyProxy |
wikittyProxy
|
| Constructor Summary | |
|---|---|
FormTypeManager(org.nuiton.wikitty.WikittyProxy wikittyProxy)
|
|
| Method Summary | |
|---|---|
org.nuiton.wikitty.WikittyExtension |
createFormType(String formTypeName)
Create new form type. |
Map<String,String> |
getAssociatedFields(String extensionName,
String templateName)
Get association between template fields and extension fields. |
org.nuiton.wikitty.WikittyExtension |
getFormType(String name)
Retrieves the form type whose name is the parameter 'name' |
Map<String,org.nuiton.wikitty.FieldType> |
getFormTypeFields(String name)
Retrieves the fields of the form type whose name is the parameter 'name' |
String |
getFormTypeTemplateName(org.nuiton.wikitty.WikittyExtension extension)
|
File |
getTemplate(String extensionName,
String templateName)
|
Collection<String> |
getTemplateFilenames(org.nuiton.wikitty.WikittyExtension extension)
Get the template file names associated with the specified extension. |
boolean |
isFormTypeExists(String formTypeName)
Check if a form type name already exists. |
void |
setAssociatedFields(String extensionName,
String templateName,
Map<String,String> fieldMap)
Save association between template fields and user selected fields into external xml field next to template. |
org.nuiton.wikitty.WikittyExtension |
updateFormType(String name,
Map<String,org.nuiton.wikitty.FieldType> fields,
String requires,
Map<String,String> tagValues)
Updates the form type whose name is 'name' |
org.nuiton.wikitty.WikittyExtension |
updateFormType(org.nuiton.wikitty.WikittyExtension extension,
String templateName)
Update the form type given in parameter |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.nuiton.wikitty.WikittyProxy wikittyProxy
| Constructor Detail |
|---|
public FormTypeManager(org.nuiton.wikitty.WikittyProxy wikittyProxy)
| Method Detail |
|---|
public org.nuiton.wikitty.WikittyExtension getFormType(String name)
throws VradiException
name - the name of the form type we want to retrieve
VradiException
public Map<String,org.nuiton.wikitty.FieldType> getFormTypeFields(String name)
throws VradiException
name - the name of the form type we want to retrieve the fields
VradiException
public org.nuiton.wikitty.WikittyExtension updateFormType(String name,
Map<String,org.nuiton.wikitty.FieldType> fields,
String requires,
Map<String,String> tagValues)
throws VradiException
name - the name of the form type to updatefields - the new fields of the form typerequires - the new requires of the form typetagValues - the new tag values of the form type
VradiException
public org.nuiton.wikitty.WikittyExtension updateFormType(org.nuiton.wikitty.WikittyExtension extension,
String templateName)
throws VradiException
extension - the form type to update
VradiException
public File getTemplate(String extensionName,
String templateName)
extensionName - templateName -
public Collection<String> getTemplateFilenames(org.nuiton.wikitty.WikittyExtension extension)
extension - extension
public Map<String,String> getAssociatedFields(String extensionName,
String templateName)
throws VradiException
extensionName - templateName -
null is there is no association yet
VradiException
public void setAssociatedFields(String extensionName,
String templateName,
Map<String,String> fieldMap)
throws VradiException
extensionName - templateName - fieldMap -
VradiException
public boolean isFormTypeExists(String formTypeName)
throws VradiException
formTypeName - form type name
VradiException - if name is not valid
public org.nuiton.wikitty.WikittyExtension createFormType(String formTypeName)
throws VradiException
formTypeName - form type name
VradiException - if name is not validpublic String getFormTypeTemplateName(org.nuiton.wikitty.WikittyExtension extension)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||