org.apache.myfaces.extensions.validator.core.storage
Interface GroupStorage

All Known Implementing Classes:
DefaultBeanValidationGroupStorage, DefaultGroupStorage, ExtValBeanValidationContext

public interface GroupStorage

Interface for group storages e.g. used by the bv module (or add-ons which use validation groups).

It allows to manage validation-groups for the current request. Since JSF allows very dynamic pages, we can use the groups just for one request.

Since:
x.x.3

Method Summary
 void addGroup(Class groupClass, String viewId, String clientId)
          Links the given group with the given component (id) for the a given view-id
 Class[] getGroups(String viewId, String clientId)
          Returns all groups which are registered for the given component (id) in the given view.
 void restrictGroup(Class groupClass, String viewId, String clientId)
          Restricts the given group for the given component (id) for the a given view-id
 

Method Detail

addGroup

void addGroup(Class groupClass,
              String viewId,
              String clientId)
Links the given group with the given component (id) for the a given view-id

Parameters:
groupClass - 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.

restrictGroup

void restrictGroup(Class groupClass,
                   String viewId,
                   String clientId)
Restricts the given group for the given component (id) for the a given view-id

Parameters:
groupClass - 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.

getGroups

Class[] getGroups(String viewId,
                  String clientId)
Returns all groups which are registered for the given component (id) in the given view.

Parameters:
viewId - The view where the uiComponent is located.
clientId - The clientId value of the component within the view.
Returns:
Array of groups defined for the component.


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.