|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.extensions.validator.beanval.ExtValBeanValidationContext
public class ExtValBeanValidationContext
| Field Summary | |
|---|---|
protected javax.validation.MessageInterpolator |
defaultMessageInterpolator
|
protected boolean |
developmentMode
|
protected GroupStorage |
groupStorage
|
protected Logger |
logger
|
protected MessageResolver |
messageResolver
|
protected ModelValidationStorage |
modelValidationStorage
|
protected javax.validation.ValidatorFactory |
validatorFactory
|
| Constructor Summary | |
|---|---|
protected |
ExtValBeanValidationContext()
|
| Method Summary | |
|---|---|
void |
addGroup(Class groupClass,
String viewId,
String clientId)
Add the group, identified by the groupClass parameter, for the component identified by the clientId for the view viewId. |
void |
addModelValidationEntry(ModelValidationEntry modelValidationEntry)
|
static ExtValBeanValidationContext |
getCurrentInstance()
|
Class[] |
getGroups(String viewId,
String clientId)
Gets the list of groups defined for the component with the clientId specified as parameter in the view. |
javax.validation.MessageInterpolator |
getMessageInterpolator()
|
List<ModelValidationEntry> |
getModelValidationEntriesToValidate()
|
javax.validation.ValidatorFactory |
getValidatorFactory()
|
protected void |
initGroupStorage()
|
protected void |
initMessageInterpolator()
|
protected void |
initMessageResolver()
|
protected void |
initModelValidationStorage()
|
void |
lockGroups(String viewId)
If the storage is locked, it isn't possible to change the state |
void |
resetGroups(String viewId)
Allows to reset all groups which have been added so far. |
void |
restrictGroup(Class groupClass,
String viewId,
String clientId)
Add the group in the restricted group list ,identified by the groupClass parameter, for the component identified by the clientId for the view viewId. |
void |
unlockGroups(String viewId)
Allows to change the storage again |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Logger logger
protected javax.validation.ValidatorFactory validatorFactory
protected javax.validation.MessageInterpolator defaultMessageInterpolator
protected MessageResolver messageResolver
protected GroupStorage groupStorage
protected ModelValidationStorage modelValidationStorage
protected boolean developmentMode
| Constructor Detail |
|---|
protected ExtValBeanValidationContext()
| Method Detail |
|---|
public static ExtValBeanValidationContext getCurrentInstance()
public javax.validation.ValidatorFactory getValidatorFactory()
public javax.validation.MessageInterpolator getMessageInterpolator()
public void addGroup(Class groupClass,
String viewId,
String clientId)
GroupStorage
addGroup in interface GroupStoragegroupClass - The group to add.viewId - The view where the uiComponent is located where we want to add the group.clientId - The clientId value of the component within the view.
public void restrictGroup(Class groupClass,
String viewId,
String clientId)
GroupStorage
restrictGroup in interface GroupStoragegroupClass - The group to add in the restricted group list.viewId - The view where the uiComponent is located where we want to add the group.clientId - The clientId value of the component within the view.
public Class[] getGroups(String viewId,
String clientId)
GroupStorage
getGroups in interface GroupStorageviewId - The view where the uiComponent is located.clientId - The clientId value of the component within the view.
public void resetGroups(String viewId)
GroupStorage
resetGroups in interface GroupStorageviewId - allows to reset groups only for one view-id
that allows to keep the groups e.g. of the current or the target view (depending on the given value).
if it is null, all stored view-ids will be affected.public void lockGroups(String viewId)
GroupStorage
lockGroups in interface GroupStorageviewId - allows to lock groups only for one view-id
that allows to keep the groups e.g. of the current or the target view (depending on the given value)
if it is null, all stored view-ids will be affected.public void unlockGroups(String viewId)
GroupStorage
unlockGroups in interface GroupStorageviewId - allows to lock groups only for one view-id
that allows to keep the groups e.g. of the current or the target view (depending on the given value)
if it is null, all stored view-ids will be affected.public void addModelValidationEntry(ModelValidationEntry modelValidationEntry)
addModelValidationEntry in interface ModelValidationStoragepublic List<ModelValidationEntry> getModelValidationEntriesToValidate()
getModelValidationEntriesToValidate in interface ModelValidationStorageprotected void initGroupStorage()
protected void initModelValidationStorage()
protected void initMessageInterpolator()
protected void initMessageResolver()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||