|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AccountPoolMapperDB
Provides the set of accounts for the AccountPoolMapper class which assignes accounts from a pool.
The implementation shouldn't buffer the information, as it the AccountPoolMapper responsability to do so.
Method Summary | |
---|---|
void |
addAccount(java.lang.String account)
Adds an account to the pool of free accounts. |
java.lang.String |
assignAccount(java.lang.String userDN)
Assigns a new account from the pool to the user. |
boolean |
needsCacheRefresh()
|
boolean |
removeAccount(java.lang.String account)
Removes account from the pool of free accounts. |
java.lang.String |
retrieveAccount(java.lang.String userDN)
Retrieves the account associated to the Grid identity. |
java.util.Map |
retrieveAccountMap()
Retrieves a user to account map. |
java.util.Map |
retrieveReverseAccountMap()
Retrieves an account to user DN map, including null DNs, where empty strings are returned if the account is unassigned. |
java.util.List |
retrieveUsersNotUsedSince(java.util.Date date)
Retrieve the list of accounts not in use since the given date. |
void |
setNeedsCacheRefresh(boolean value)
Set when cache has been refreshed |
void |
unassignAccount(java.lang.String account)
Unassigns whatever user is assigned to this account from the account mapping and renders that account available to the pool. |
void |
unassignUser(java.lang.String user)
Removes user from the mapping, and renders it available to the pool. |
Method Detail |
---|
void addAccount(java.lang.String account)
account
- the account to be addedjava.lang.String assignAccount(java.lang.String userDN)
userDN
- the user to be mapped
boolean needsCacheRefresh()
boolean removeAccount(java.lang.String account)
account
- the account to be removed
java.lang.String retrieveAccount(java.lang.String userDN)
userDN
- the certificate DN
java.util.Map retrieveAccountMap()
java.util.Map retrieveReverseAccountMap()
java.util.List retrieveUsersNotUsedSince(java.util.Date date)
date
- the time since the accounts haven't been used.
void setNeedsCacheRefresh(boolean value)
value
- void unassignAccount(java.lang.String account)
account
- that should be unassignedvoid unassignUser(java.lang.String user)
user
- the user that shouldn't be mapped anymore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |