|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.idoox.security.pstore.AbstractUserStore
This abstract class provides basic functionality to register
and unregister notification listener, to test matching
of userId
agains userFilter
.
Field Summary | |
protected java.util.Vector |
listeners
|
Fields inherited from interface org.idoox.security.pstore.UserStore |
DELETE_USER_ACTION, FILTER_STRING, IMAGE_PROPERTY, PASSWORD_PROPERTY, X509CERTIFICATE_PROPERTY, X509CERTIFICATECHAIN_PROPERTY |
Constructor Summary | |
AbstractUserStore()
|
Method Summary | |
void |
addNotificationListener(NotificationListener listener)
Registers notification listener. |
void |
destroy()
Release allocated resources. |
protected void |
fireDeleteUserAction(java.lang.String userName)
Fires the delete user notification event to all listeners. |
protected boolean |
match(java.lang.String userId,
java.lang.String pureUserFilter,
boolean checkStart,
boolean checkEnd)
Tests if the userId matches the userFilter string. |
void |
removeNotificationListener(NotificationListener listener)
Deregisters notification listener. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.idoox.security.pstore.UserStore |
deleteUser, getPropertySerializer, getSupportedAttributes, getUserIds, getUserProperties, getUserProperty, getUsers, getUsers, hasUser, removeUserProperty, setPropertySerializer, setUserProperties, setUserProperty, setUserStoreSource |
Field Detail |
protected java.util.Vector listeners
Constructor Detail |
public AbstractUserStore()
Method Detail |
public void addNotificationListener(NotificationListener listener)
addNotificationListener
in interface UserStore
listener
- notification listener to registerNotificationEvent
public void removeNotificationListener(NotificationListener listener)
removeNotificationListener
in interface UserStore
listener
- notification listener to deregisterNotificationEvent
protected boolean match(java.lang.String userId, java.lang.String pureUserFilter, boolean checkStart, boolean checkEnd)
userFilter
is carried by checkStart
and checkEnd
parameters. Following pseudocode describes the semantics of search string.
VAR FILTER_FUNCTION;
IF (checkStart)
IF (checkEnd)
FILTER_METHOD = contains_function ;
ELSE
FILTER_METHOD = startsWith_function ;
ENDIF
ELSE
IF (checkEnd)
FILTER_METHOD = endsWith_function ;
ELSE
FILTER_METHOD = equals_function ;
ENDIF
ENDIF
userId
- user identifierpureUserFilter
- This string carries pure filter string, it means the semantics of
filtering is carried by checkStart
and checkEnd
parameters.
It can be null
to sileghtly return true
.checkStart
- described abovecheckEnd
- described above
protected void fireDeleteUserAction(java.lang.String userName)
deleteUser
method to
notify all registered listeners about user removal.
userName
- name of user that is being deleted from underlaying databasepublic void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |