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

All Known Implementing Classes:
DefaultBeanValidationGroupStorage, DefaultGroupStorage, ExtValBeanValidationContext

public interface GroupStorage

Suggested interface for a group storage used by the bvi module and add-ons

it allows to manage groups for the current request

Since:
x.x.3
Author:
Gerhard Petracek

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.
 Class[] getGroups(String viewId, String clientId)
          Gets the list of groups defined for the component with the clientId specified as parameter in the view.
 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.
 

Method Detail

addGroup

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.

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)
Add the group in the restricted group list ,identified by the groupClass parameter, for the component identified by the clientId for the view viewId.

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)
Gets the list of groups defined for the component with the clientId specified as parameter in the view. The array is the values of the groups added minus the groups from the restricted group list.

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-2010 The Apache Software Foundation. All Rights Reserved.