org.apache.myfaces.extensions.validator.core.storage
Class DefaultGroupStorage
java.lang.Object
org.apache.myfaces.extensions.validator.core.storage.DefaultGroupStorage
- All Implemented Interfaces:
- GroupStorage
public class DefaultGroupStorage
- extends Object
- implements GroupStorage
default storage implementation for groups
- 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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final Logger logger
DefaultGroupStorage
public DefaultGroupStorage()
addGroup
public void addGroup(Class groupClass,
String viewId,
String clientId)
- Description copied from interface:
GroupStorage
- Links the given group with the given component (id) for the a given view-id
- Specified by:
addGroup
in interface GroupStorage
- 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
public void restrictGroup(Class groupClass,
String viewId,
String clientId)
- Description copied from interface:
GroupStorage
- Restricts the given group for the given component (id) for the a given view-id
- Specified by:
restrictGroup
in interface GroupStorage
- 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
public Class[] getGroups(String viewId,
String clientId)
- Description copied from interface:
GroupStorage
- Returns all groups which are registered for the given component (id) in the given view.
- Specified by:
getGroups
in interface GroupStorage
- 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.