com.jurismarches.vradi
Class VradiContext

java.lang.Object
  extended by jaxx.runtime.context.DefaultJAXXContext
      extended by jaxx.runtime.context.DefaultApplicationContext
          extended by com.jurismarches.vradi.VradiContext
All Implemented Interfaces:
jaxx.runtime.JAXXContext

public class VradiContext
extends jaxx.runtime.context.DefaultApplicationContext


Nested Class Summary
 
Nested classes/interfaces inherited from class jaxx.runtime.context.DefaultApplicationContext
jaxx.runtime.context.DefaultApplicationContext.AutoLoad, jaxx.runtime.context.DefaultApplicationContext.MethodAccess
 
Field Summary
static jaxx.runtime.context.JAXXContextEntryDef<AdminPopupUI> ADMIN_UI_ENTRY_DEF
           
protected static jaxx.runtime.context.JAXXContextEntryDef<List<Client>> CLIENTS_ENTRY_DEF
          where the clients are hold in context
static jaxx.runtime.context.JAXXContextEntryDef<EmailPopupUI> EMAIL_UI_ENTRY_DEF
           
protected static jaxx.runtime.context.JAXXContextEntryDef<Map<String,VradiFormDTO>> FORMS_DTO_ENTRY_DEF
          where the forms dto are hold in context
protected static jaxx.runtime.context.JAXXContextEntryDef<Map<String,Form>> FORMS_ENTRY_DEF
          where the forms are hold in context
protected static jaxx.runtime.context.JAXXContextEntryDef<List<org.sharengo.wikitty.WikittyExtension>> FORMS_TYPE_ENTRY_DEF
          where the forms type are hold in context
protected static jaxx.runtime.context.JAXXContextEntryDef<List<Group>> GROUPS_ENTRY_DEF
          where the groups are hold in context
protected static VradiContext instance
          l'intance partagée accessible après un appel à la méthode init()
protected  Object lock
          Un objet pour bloquer le context
static jaxx.runtime.context.JAXXContextEntryDef<VradiMainUI> MAIN_UI_ENTRY_DEF
           
static jaxx.runtime.context.JAXXContextEntryDef<List<OfferEditUI>> OFFERT_EDIT_UI_ENTRY_DEF
           
static jaxx.runtime.context.JAXXContextEntryDef<OfferListUI> OFFERT_LIST_UI_ENTRY_DEF
           
static jaxx.runtime.context.JAXXContextEntryDef<org.sharengo.wikitty.TreeNodeImpl> ROOT_TREE_NODE_ENTRY_DEF
           
static jaxx.runtime.context.JAXXContextEntryDef<SearchUI> SEARCH_UI_ENTRY_DEF
           
protected static jaxx.runtime.context.JAXXContextEntryDef<Map<String,Sending>> SENDING_ENTRY_DEF
          where the session are hold in context
protected static jaxx.runtime.context.JAXXContextEntryDef<List<VradiSessionDTO>> SESSIONS_DTO_ENTRY_DEF
          where the session are hold in context
protected static jaxx.runtime.context.JAXXContextEntryDef<Map<String,Session>> SESSIONS_ENTRY_DEF
          where the session are hold in context
protected static jaxx.runtime.context.JAXXContextEntryDef<List<Status>> STATUSES_ENTRY_DEF
          where the statuses are hold in context
protected static jaxx.runtime.context.JAXXContextEntryDef<VradiThesaurusDTO> THESAURUS_ENTRY_DEF
          where the thesaurus are hold in context
static jaxx.runtime.context.JAXXContextEntryDef<Map<String,jaxx.runtime.swing.navigation.NavigationModel>> THESAURUS_NAVIGATION_MODEL
           
protected static jaxx.runtime.context.JAXXContextEntryDef<Map<String,org.sharengo.wikitty.TreeNodeImpl>> TREE_NODE_ENTRY_DEF
          where the clients are hold in context
protected static jaxx.runtime.context.JAXXContextEntryDef<List<User>> USERS_ENTRY_DEF
          where the users are hold in context
protected static jaxx.runtime.context.JAXXContextEntryDef<List<XmlStream>> XMLSTREAMS_ENTRY_DEF
          where the xmlStreams are hold in context
 
Fields inherited from class jaxx.runtime.context.DefaultApplicationContext
entryListened, forwards, pcs
 
Fields inherited from class jaxx.runtime.context.DefaultJAXXContext
data, PARENT_CONTEXT_ENTRY, parentContext
 
Constructor Summary
protected VradiContext()
           
 
Method Summary
static void addAllFormsDTOInEntryDef(List<VradiFormDTO> formList)
           
static void addAllFormsInEntryDef(List<Form> formList)
           
static void addAllSendingInEntryDef(List<Sending> sendingList)
           
static void addAllSessionDTOEntryDef(List<VradiSessionDTO> sessions)
           
static void addAllSessionEntryDef(List<Session> sessions)
           
static void addFormDTOInEntryDef(VradiFormDTO form)
           
static void addFormInEntryDef(Form form)
           
static
<T> void
addIfNecessary(jaxx.runtime.context.JAXXContextEntryDef<List<T>> entryDef, T o)
           
 void close()
          close the application's context.
protected static
<E extends org.sharengo.wikitty.BusinessEntity>
Map<String,E>
fillMap(List<E> value)
           
static List<Form> findAllFormsInEntryDef(List<VradiFormDTO> formDTOs)
           
static List<org.sharengo.wikitty.TreeNodeImpl> findAllTreeNodeInEntryDef(List<String> ids)
           
static VradiFormDTO findFormsDTOInEntryDef(String id)
           
static Form findFormsInEntryDef(String id)
           
protected static
<E extends org.sharengo.wikitty.BusinessEntity>
E
findInMapRef(jaxx.runtime.context.JAXXContextEntryDef<Map<String,E>> ref, String id)
           
static Sending findSendingInEntryDef(String id)
           
static Session findSessionInEntryDef(String id)
           
static org.sharengo.wikitty.TreeNodeImpl findTreeNodeInEntryDef(String id)
           
static VradiContext get()
          Récupération du contexte applicatif.
static jaxx.runtime.context.JAXXContextEntryDef<List<Client>> getClientsEntryDef()
           
static List<Client> getClientsInEntryDef()
           
 jaxx.runtime.decorator.DecoratorProvider getDecoratorProvider()
           
 jaxx.runtime.swing.renderer.DecoratorProviderListCellRenderer getDecoratorProviderListCellRenderer()
           
static jaxx.runtime.context.JAXXContextEntryDef<Map<String,VradiFormDTO>> getFormsDTOEntryDef()
           
static List<VradiFormDTO> getFormsDTOInEntryDef()
           
static jaxx.runtime.context.JAXXContextEntryDef<Map<String,Form>> getFormsEntryDef()
           
static List<Form> getFormsInEntryDef()
           
static jaxx.runtime.context.JAXXContextEntryDef<List<org.sharengo.wikitty.WikittyExtension>> getFormsTypeEntryDef()
           
static List<org.sharengo.wikitty.WikittyExtension> getFormsTypeInEntryDef()
           
static jaxx.runtime.context.JAXXContextEntryDef<List<Group>> getGroupsEntryDef()
           
static List<Group> getGroupsInEntryDef()
           
static jaxx.runtime.context.JAXXContextEntryDef<org.sharengo.wikitty.TreeNodeImpl> getRootTreeNodeEntryDef()
           
static org.sharengo.wikitty.TreeNodeImpl getRootTreeNodeInEntryDef()
           
static jaxx.runtime.context.JAXXContextEntryDef<Map<String,Sending>> getSendingEntryDef()
           
static List<Sending> getSendingInEntryDef()
           
static jaxx.runtime.context.JAXXContextEntryDef<List<VradiSessionDTO>> getSessionDTOEntryDef()
           
static jaxx.runtime.context.JAXXContextEntryDef<Map<String,Session>> getSessionEntryDef()
           
static List<VradiSessionDTO> getSessionsDTOInEntryDef()
           
static List<Session> getSessionsInEntryDef()
           
static jaxx.runtime.context.JAXXContextEntryDef<List<Status>> getStatusEntryDef()
           
static List<Status> getStatusInEntryDef()
           
static jaxx.runtime.context.JAXXContextEntryDef<VradiThesaurusDTO> getThesaurusEntryDef()
           
static VradiThesaurusDTO getThesaurusInEntryDef()
           
static jaxx.runtime.context.JAXXContextEntryDef<Map<String,org.sharengo.wikitty.TreeNodeImpl>> getTreeNodeEntryDef()
           
static List<org.sharengo.wikitty.TreeNodeImpl> getTreeNodeInEntryDef()
           
static jaxx.runtime.context.JAXXContextEntryDef<List<User>> getUsersEntryDef()
           
static List<User> getUsersInEntryDef()
           
 VradiConfig getVradiConfig()
           
static jaxx.runtime.context.JAXXContextEntryDef<List<XmlStream>> getXmlStreamEntryDef()
           
static List<XmlStream> getXmlStreamInEntryDef()
           
static VradiContext init()
          Permet l'initialisation du contexte applicatif et positionne l'instance partagée.
static void initEntryDef()
           
static void initThesaurusDef()
           
static boolean isInit()
           
protected static void loadAllChildrenThesaurus(VradiThesaurusDTO thesaurusDTO)
           
 void lock()
           
 void releaseLock()
           
static void remove(org.sharengo.wikitty.BusinessEntity entity)
           
static void replace(org.sharengo.wikitty.BusinessEntity entity)
           
static void setClientsEntryDef(List<Client> values)
           
static void setFormsDTOEntryDef(List<VradiFormDTO> values)
           
static void setFormsEntryDef(List<Form> values)
           
static void setFormsTypeEntryDef(List<org.sharengo.wikitty.WikittyExtension> values)
           
static void setGroupsEntryDef(List<Group> values)
           
static void setRootTreeNodeEntryDef(org.sharengo.wikitty.TreeNodeImpl rootThesaurus)
           
static void setSendingEntryDef(List<Sending> values)
           
static void setSessionDTOEntryDef(List<VradiSessionDTO> values)
           
static void setSessionEntryDef(List<Session> values)
           
static void setStatusEntryDef(List<Status> values)
           
static void setThesaurusEntryDef(VradiThesaurusDTO value)
           
static void setTreeNodeEntryDef(List<org.sharengo.wikitty.TreeNodeImpl> value)
           
static void setUsersEntryDef(List<User> values)
           
static void setXmlStreamEntryDef(List<XmlStream> values)
           
 
Methods inherited from class jaxx.runtime.context.DefaultApplicationContext
addPropertyChangeListener, addPropertyChangeListener, addPropertyChangeListener, fireEntryChanged, fireEntryChanged, firePropertyChange, getContextValue, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, newAccess, newAccess, newInstance, removeContextValue, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener, setContextValue
 
Methods inherited from class jaxx.runtime.context.DefaultJAXXContext
clear, getContextValue, getEntry, getKey, getKeys, getParentContext, remove0, removeContextValue, setContextValue, setParentContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAIN_UI_ENTRY_DEF

public static final jaxx.runtime.context.JAXXContextEntryDef<VradiMainUI> MAIN_UI_ENTRY_DEF

OFFERT_LIST_UI_ENTRY_DEF

public static final jaxx.runtime.context.JAXXContextEntryDef<OfferListUI> OFFERT_LIST_UI_ENTRY_DEF

OFFERT_EDIT_UI_ENTRY_DEF

public static final jaxx.runtime.context.JAXXContextEntryDef<List<OfferEditUI>> OFFERT_EDIT_UI_ENTRY_DEF

SEARCH_UI_ENTRY_DEF

public static final jaxx.runtime.context.JAXXContextEntryDef<SearchUI> SEARCH_UI_ENTRY_DEF

ADMIN_UI_ENTRY_DEF

public static final jaxx.runtime.context.JAXXContextEntryDef<AdminPopupUI> ADMIN_UI_ENTRY_DEF

EMAIL_UI_ENTRY_DEF

public static final jaxx.runtime.context.JAXXContextEntryDef<EmailPopupUI> EMAIL_UI_ENTRY_DEF

THESAURUS_NAVIGATION_MODEL

public static final jaxx.runtime.context.JAXXContextEntryDef<Map<String,jaxx.runtime.swing.navigation.NavigationModel>> THESAURUS_NAVIGATION_MODEL

ROOT_TREE_NODE_ENTRY_DEF

public static final jaxx.runtime.context.JAXXContextEntryDef<org.sharengo.wikitty.TreeNodeImpl> ROOT_TREE_NODE_ENTRY_DEF

THESAURUS_ENTRY_DEF

protected static final jaxx.runtime.context.JAXXContextEntryDef<VradiThesaurusDTO> THESAURUS_ENTRY_DEF
where the thesaurus are hold in context


TREE_NODE_ENTRY_DEF

protected static final jaxx.runtime.context.JAXXContextEntryDef<Map<String,org.sharengo.wikitty.TreeNodeImpl>> TREE_NODE_ENTRY_DEF
where the clients are hold in context


CLIENTS_ENTRY_DEF

protected static final jaxx.runtime.context.JAXXContextEntryDef<List<Client>> CLIENTS_ENTRY_DEF
where the clients are hold in context


USERS_ENTRY_DEF

protected static final jaxx.runtime.context.JAXXContextEntryDef<List<User>> USERS_ENTRY_DEF
where the users are hold in context


GROUPS_ENTRY_DEF

protected static final jaxx.runtime.context.JAXXContextEntryDef<List<Group>> GROUPS_ENTRY_DEF
where the groups are hold in context


STATUSES_ENTRY_DEF

protected static final jaxx.runtime.context.JAXXContextEntryDef<List<Status>> STATUSES_ENTRY_DEF
where the statuses are hold in context


FORMS_TYPE_ENTRY_DEF

protected static final jaxx.runtime.context.JAXXContextEntryDef<List<org.sharengo.wikitty.WikittyExtension>> FORMS_TYPE_ENTRY_DEF
where the forms type are hold in context


FORMS_ENTRY_DEF

protected static final jaxx.runtime.context.JAXXContextEntryDef<Map<String,Form>> FORMS_ENTRY_DEF
where the forms are hold in context


FORMS_DTO_ENTRY_DEF

protected static final jaxx.runtime.context.JAXXContextEntryDef<Map<String,VradiFormDTO>> FORMS_DTO_ENTRY_DEF
where the forms dto are hold in context


XMLSTREAMS_ENTRY_DEF

protected static final jaxx.runtime.context.JAXXContextEntryDef<List<XmlStream>> XMLSTREAMS_ENTRY_DEF
where the xmlStreams are hold in context


SESSIONS_DTO_ENTRY_DEF

protected static final jaxx.runtime.context.JAXXContextEntryDef<List<VradiSessionDTO>> SESSIONS_DTO_ENTRY_DEF
where the session are hold in context


SESSIONS_ENTRY_DEF

protected static final jaxx.runtime.context.JAXXContextEntryDef<Map<String,Session>> SESSIONS_ENTRY_DEF
where the session are hold in context


SENDING_ENTRY_DEF

protected static final jaxx.runtime.context.JAXXContextEntryDef<Map<String,Sending>> SENDING_ENTRY_DEF
where the session are hold in context


instance

protected static VradiContext instance
l'intance partagée accessible après un appel à la méthode init()


lock

protected final Object lock
Un objet pour bloquer le context

Constructor Detail

VradiContext

protected VradiContext()
Method Detail

isInit

public static boolean isInit()
Returns:
true si le context a été initialisé via la méthode init(), false autrement.

init

public static VradiContext init()
                         throws IllegalStateException
Permet l'initialisation du contexte applicatif et positionne l'instance partagée.

Note : Cette méthode ne peut être appelée qu'une seule fois.

Returns:
l'instance partagée
Throws:
IllegalStateException - si un contexte applicatif a déja été positionné.

get

public static VradiContext get()
                        throws IllegalStateException
Récupération du contexte applicatif.

Returns:
l'instance partagé du contexte.
Throws:
IllegalStateException - si le contexte n'a pas été initialisé via la méthode init()

lock

public void lock()
          throws InterruptedException
Throws:
InterruptedException

releaseLock

public void releaseLock()

close

public void close()
           throws Exception
close the application's context.

Throws:
Exception - if any pb while closing

getThesaurusEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<VradiThesaurusDTO> getThesaurusEntryDef()

getTreeNodeEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<Map<String,org.sharengo.wikitty.TreeNodeImpl>> getTreeNodeEntryDef()

getClientsEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<List<Client>> getClientsEntryDef()

getUsersEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<List<User>> getUsersEntryDef()

getGroupsEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<List<Group>> getGroupsEntryDef()

getStatusEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<List<Status>> getStatusEntryDef()

getFormsTypeEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<List<org.sharengo.wikitty.WikittyExtension>> getFormsTypeEntryDef()

getFormsEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<Map<String,Form>> getFormsEntryDef()

getFormsDTOEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<Map<String,VradiFormDTO>> getFormsDTOEntryDef()

getXmlStreamEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<List<XmlStream>> getXmlStreamEntryDef()

getSessionEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<Map<String,Session>> getSessionEntryDef()

getSessionDTOEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<List<VradiSessionDTO>> getSessionDTOEntryDef()

getSendingEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<Map<String,Sending>> getSendingEntryDef()

getRootTreeNodeEntryDef

public static jaxx.runtime.context.JAXXContextEntryDef<org.sharengo.wikitty.TreeNodeImpl> getRootTreeNodeEntryDef()

getThesaurusInEntryDef

public static VradiThesaurusDTO getThesaurusInEntryDef()

getTreeNodeInEntryDef

public static List<org.sharengo.wikitty.TreeNodeImpl> getTreeNodeInEntryDef()

getClientsInEntryDef

public static List<Client> getClientsInEntryDef()

getUsersInEntryDef

public static List<User> getUsersInEntryDef()

getGroupsInEntryDef

public static List<Group> getGroupsInEntryDef()

getStatusInEntryDef

public static List<Status> getStatusInEntryDef()

getFormsTypeInEntryDef

public static List<org.sharengo.wikitty.WikittyExtension> getFormsTypeInEntryDef()

getFormsInEntryDef

public static List<Form> getFormsInEntryDef()

getFormsDTOInEntryDef

public static List<VradiFormDTO> getFormsDTOInEntryDef()

getXmlStreamInEntryDef

public static List<XmlStream> getXmlStreamInEntryDef()

getSessionsDTOInEntryDef

public static List<VradiSessionDTO> getSessionsDTOInEntryDef()

getSessionsInEntryDef

public static List<Session> getSessionsInEntryDef()

getSendingInEntryDef

public static List<Sending> getSendingInEntryDef()

getRootTreeNodeInEntryDef

public static org.sharengo.wikitty.TreeNodeImpl getRootTreeNodeInEntryDef()

setThesaurusEntryDef

public static void setThesaurusEntryDef(VradiThesaurusDTO value)

setTreeNodeEntryDef

public static void setTreeNodeEntryDef(List<org.sharengo.wikitty.TreeNodeImpl> value)

setClientsEntryDef

public static void setClientsEntryDef(List<Client> values)

setUsersEntryDef

public static void setUsersEntryDef(List<User> values)

setGroupsEntryDef

public static void setGroupsEntryDef(List<Group> values)

setStatusEntryDef

public static void setStatusEntryDef(List<Status> values)

setFormsTypeEntryDef

public static void setFormsTypeEntryDef(List<org.sharengo.wikitty.WikittyExtension> values)

setFormsEntryDef

public static void setFormsEntryDef(List<Form> values)

setFormsDTOEntryDef

public static void setFormsDTOEntryDef(List<VradiFormDTO> values)

setXmlStreamEntryDef

public static void setXmlStreamEntryDef(List<XmlStream> values)

setSessionDTOEntryDef

public static void setSessionDTOEntryDef(List<VradiSessionDTO> values)

setSessionEntryDef

public static void setSessionEntryDef(List<Session> values)

setSendingEntryDef

public static void setSendingEntryDef(List<Sending> values)

setRootTreeNodeEntryDef

public static void setRootTreeNodeEntryDef(org.sharengo.wikitty.TreeNodeImpl rootThesaurus)

findTreeNodeInEntryDef

public static org.sharengo.wikitty.TreeNodeImpl findTreeNodeInEntryDef(String id)

findAllTreeNodeInEntryDef

public static List<org.sharengo.wikitty.TreeNodeImpl> findAllTreeNodeInEntryDef(List<String> ids)

findFormsInEntryDef

public static Form findFormsInEntryDef(String id)

findAllFormsInEntryDef

public static List<Form> findAllFormsInEntryDef(List<VradiFormDTO> formDTOs)

findFormsDTOInEntryDef

public static VradiFormDTO findFormsDTOInEntryDef(String id)

findSessionInEntryDef

public static Session findSessionInEntryDef(String id)

findSendingInEntryDef

public static Sending findSendingInEntryDef(String id)

addFormInEntryDef

public static void addFormInEntryDef(Form form)

addAllFormsInEntryDef

public static void addAllFormsInEntryDef(List<Form> formList)

addFormDTOInEntryDef

public static void addFormDTOInEntryDef(VradiFormDTO form)

addAllFormsDTOInEntryDef

public static void addAllFormsDTOInEntryDef(List<VradiFormDTO> formList)

addAllSendingInEntryDef

public static void addAllSendingInEntryDef(List<Sending> sendingList)

addAllSessionEntryDef

public static void addAllSessionEntryDef(List<Session> sessions)

addAllSessionDTOEntryDef

public static void addAllSessionDTOEntryDef(List<VradiSessionDTO> sessions)

findInMapRef

protected static <E extends org.sharengo.wikitty.BusinessEntity> E findInMapRef(jaxx.runtime.context.JAXXContextEntryDef<Map<String,E>> ref,
                                                                                String id)

fillMap

protected static <E extends org.sharengo.wikitty.BusinessEntity> Map<String,E> fillMap(List<E> value)

getVradiConfig

public VradiConfig getVradiConfig()

getDecoratorProvider

public jaxx.runtime.decorator.DecoratorProvider getDecoratorProvider()

getDecoratorProviderListCellRenderer

public jaxx.runtime.swing.renderer.DecoratorProviderListCellRenderer getDecoratorProviderListCellRenderer()

addIfNecessary

public static <T> void addIfNecessary(jaxx.runtime.context.JAXXContextEntryDef<List<T>> entryDef,
                                      T o)

initThesaurusDef

public static void initThesaurusDef()
                             throws VradiException
Throws:
VradiException

loadAllChildrenThesaurus

protected static void loadAllChildrenThesaurus(VradiThesaurusDTO thesaurusDTO)

initEntryDef

public static void initEntryDef()

replace

public static void replace(org.sharengo.wikitty.BusinessEntity entity)

remove

public static void remove(org.sharengo.wikitty.BusinessEntity entity)


Copyright © 2009-2010 JurisMarches. All Rights Reserved.