|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.events.handlers.AbstractLimitedSupportEventHandler
public abstract class AbstractLimitedSupportEventHandler
Abstract implemenation that allows for one EventHandler to handle many events
configurably without being defined multiple times.
The supports(PortalEvent) method checks three criteria for a PortalEvent to determine if it is
supported or not.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
Protected logging instance. |
| Constructor Summary | |
|---|---|
AbstractLimitedSupportEventHandler()
|
|
| Method Summary | |
|---|---|
Collection<String> |
getIgnoredUserNames()
|
Collection<Class<? extends PortalEvent>> |
getSupportedEvents()
|
Collection<String> |
getSupportedUserNames()
|
boolean |
isExplicitMatching()
|
boolean |
isRequireAll()
|
boolean |
isSupportGuest()
|
void |
setExplicitMatching(boolean explicitMatching)
|
void |
setIgnoredUserNames(Collection<String> ignoredUserNames)
If no ignoredUserNames Collection is configured all user-names are supported otherwise
exact String equality matching is done to determine ignored userNames. |
void |
setRequireAll(boolean requireAll)
The requireAll can be used to require either any one criteria match for support or all three
criteria. |
void |
setSupportedEvents(Collection<Class<? extends PortalEvent>> supportedEvents)
If no supportedEvents Collection is configured all PortalEvent sub-classes are
supported otherwise matching is done. |
void |
setSupportedUserNames(Collection<String> supportedUserNames)
If no supportedUserNames Collection is configured all user-names are supported otherwise
exact String equality matching is done to determine supported userNames. |
void |
setSupportGuest(boolean supportGuest)
If the supportGuest property is true PortalEvents where IPerson.isGuest() is true or
false will be supported. |
boolean |
supports(PortalEvent event)
Method to check if this handler will be able to process the event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jasig.portal.events.EventHandler |
|---|
handleEvent |
| Field Detail |
|---|
protected org.apache.commons.logging.Log logger
| Constructor Detail |
|---|
public AbstractLimitedSupportEventHandler()
| Method Detail |
|---|
public final boolean supports(PortalEvent event)
EventHandler
supports in interface EventHandlerevent - the event we want to check if we support.
public Collection<Class<? extends PortalEvent>> getSupportedEvents()
public void setSupportedEvents(Collection<Class<? extends PortalEvent>> supportedEvents)
supportedEvents Collection is configured all PortalEvent sub-classes are
supported otherwise matching is done. If explicitMatching is true Class equality matching is used,
if it is false Class.isAssignableFrom(Class) is called on each supported event type passing the tested
event as the argument. The property defaults to null (all event types)
supportedEvents - the supportedEvents to setpublic boolean isExplicitMatching()
public void setExplicitMatching(boolean explicitMatching)
explicitMatching - the explicitMatching to setpublic Collection<String> getSupportedUserNames()
public void setSupportedUserNames(Collection<String> supportedUserNames)
supportedUserNames Collection is configured all user-names are supported otherwise
exact String equality matching is done to determine supported userNames. The property defaults to null (all user
names)
supportedUserNames - the supportedUserNames to setpublic Collection<String> getIgnoredUserNames()
public void setIgnoredUserNames(Collection<String> ignoredUserNames)
ignoredUserNames Collection is configured all user-names are supported otherwise
exact String equality matching is done to determine ignored userNames. The property defaults to null (all user
names)
ignoredUserNames - the ignoredUserNames to setpublic boolean isSupportGuest()
public void setSupportGuest(boolean supportGuest)
supportGuest property is true PortalEvents where IPerson.isGuest() is true or
false will be supported. If the supportGuest property is false only PortalEvents where
IPerson.isGuest() is false will be supported. The property defaults to true.
supportGuest - the supportGuest to setpublic boolean isRequireAll()
public void setRequireAll(boolean requireAll)
requireAll can be used to require either any one criteria match for support or all three
criteria.
requireAll - the requireAll to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||