|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface encapsulates the persistence of a user security.
This provides a central placeholder for changing the persistence of user security information.
A security implementation wanting to store user security implementation in LDAP for instance would need to provide an LDAP implementation of this interface.
| Method Summary | |
void |
addUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
Adds a new user principal in the backing store. |
Principal |
getUserPrincipal(String username)
Gets the user principal for the given user name. |
List |
getUserPrincipals(String filter)
Gets the an iterator of user principals for a given filter. |
boolean |
isUserPrincipal(String userName)
Checks if a UserPrincipal exists |
void |
removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
Removes the user principal. |
void |
updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
Updates the user principal in the backing store. |
| Method Detail |
public boolean isUserPrincipal(String userName)
Checks if a UserPrincipal exists
userName -
public Principal getUserPrincipal(String username)
Gets the user principal for the given user name.
username - The user name.
Principalpublic List getUserPrincipals(String filter)
Gets the an iterator of user principals for a given filter.
filter - The filter.
Principal
public void addUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
Adds a new user principal in the backing store.
userPrincipal - The new UserPrincipal.
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.
public void updateUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
Updates the user principal in the backing store.
userPrincipal - The UserPrincipal.
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.
public void removeUserPrincipal(org.apache.jetspeed.security.UserPrincipal userPrincipal)
throws org.apache.jetspeed.security.SecurityException
Removes the user principal.
userPrincipal - The UserPrincipal.
org.apache.jetspeed.security.SecurityException - Throws a SecurityException.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||