com.jurismarches.vradi.services.managers
Class FormTypeManager

java.lang.Object
  extended by com.jurismarches.vradi.services.managers.FormTypeManager

public class FormTypeManager
extends Object

Class containing the metods to manage the form types : - creation, update, retrieving - cache filling

Version:
$Revision: 465 $ $Date: 2010-02-04 14:22:16 +0100 (jeu., 04 févr. 2010) $
Author:
schorlet

Constructor Summary
FormTypeManager()
           
FormTypeManager(org.sharengo.wikitty.WikittyProxy proxy)
           
 
Method Summary
 List<org.sharengo.wikitty.WikittyExtension> getAllFormTypes()
          Retrieves all the form types
 Map<String,org.sharengo.wikitty.WikittyExtension> getAllFormTypesMap()
          Retrieves all the form types associated with their name
 org.sharengo.wikitty.WikittyExtension getFormType(String name)
          Retrieves the form type whose name is the parameter 'name'
 Map<String,org.sharengo.wikitty.FieldType> getFormTypeFields(String name)
          Retrieves the fields of the form type whose name is the parameter 'name'
 org.sharengo.wikitty.WikittyExtension updateFormType(String name, Map<String,org.sharengo.wikitty.FieldType> fields, String requires, Map<String,String> tagValues)
          Updates the form type whose name is 'name'
 org.sharengo.wikitty.WikittyExtension updateFormType(org.sharengo.wikitty.WikittyExtension extension)
          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
 

Constructor Detail

FormTypeManager

public FormTypeManager(org.sharengo.wikitty.WikittyProxy proxy)

FormTypeManager

public FormTypeManager()
Method Detail

getAllFormTypes

public List<org.sharengo.wikitty.WikittyExtension> getAllFormTypes()
Retrieves all the form types

Returns:
a list containing all the form types

getAllFormTypesMap

public Map<String,org.sharengo.wikitty.WikittyExtension> getAllFormTypesMap()
Retrieves all the form types associated with their name

Returns:
a map containing the form type names and the form types

getFormType

public org.sharengo.wikitty.WikittyExtension getFormType(String name)
Retrieves the form type whose name is the parameter 'name'

Parameters:
name - the name of the form type we want to retrieve
Returns:
the form type whose name is the paramater

getFormTypeFields

public Map<String,org.sharengo.wikitty.FieldType> getFormTypeFields(String name)
Retrieves the fields of the form type whose name is the parameter 'name'

Parameters:
name - the name of the form type we want to retrieve the fields
Returns:
a map containing the field names and their type

updateFormType

public org.sharengo.wikitty.WikittyExtension updateFormType(String name,
                                                            Map<String,org.sharengo.wikitty.FieldType> fields,
                                                            String requires,
                                                            Map<String,String> tagValues)
Updates the form type whose name is 'name'

Parameters:
name - the name of the form type to update
fields - the new fields of the form type
requires - the new requires of the form type
tagValues - the new tag values of the form type
Returns:
the form type up to date

updateFormType

public org.sharengo.wikitty.WikittyExtension updateFormType(org.sharengo.wikitty.WikittyExtension extension)
Update the form type given in parameter

Parameters:
extension - the form type to update
Returns:
the form type up to date


Copyright © 2009-2010 JurisMarches. All Rights Reserved.