public class LDAPRepositoryAccountManager extends RepositoryAccountManager
RepositoryAccountManager| Modifier and Type | Class and Description |
|---|---|
class |
LDAPRepositoryAccountManager.SecurityCache
The cache of security permissions associated with this account manager
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
SERVICE_INFO_KEYANY_ACCOUNT, GROUP_ACCOUNT, LOGIN_ACCOUNT, PRIVILEGE_ACCOUNTDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
LDAPRepositoryAccountManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
doStartService()
Overwrites GenericService superclass
|
Account |
getAccount(java.lang.String pAccountName)
Overwrites super class
|
java.lang.String |
getAccountLdapDescriptorName()
Returns the attribute name for privs within LDAP directory
|
LDAPRepositoryAccountManager.SecurityCache |
getCache()
Returns cache to store account and privilege groupings
|
long |
getCacheReloadFrequency()
Returns How frequently the cahce should be reloaded (in minutes)
|
Scheduler |
getCacheScheduler()
Returns the scheduler for cache reload
|
java.lang.String |
getGroupLdapDescriptorName()
Returns the attribute name for groups within LDAP directory
|
java.lang.String[] |
getLdapGroups()
Returns List of groups defined in the LDAP repository
|
java.lang.String[] |
getLdapPrivileges()
Returns List of privileges defined in the LDAP repository
|
Persona |
getPersona(java.lang.Object id)
Returns a persona for a give id.
|
boolean |
isMemberOfCacheEnabled()
sets flag denoting whether the cache is enabled or not
|
boolean |
isReadOnly()
Returns flag denoting whether this account manager may create accounts
|
boolean |
isVerifyCachedItems()
Returns if true, after retrieving items from cache will verify against the repository.
|
java.util.Iterator |
listAccounts(int pType)
Lists all Accounts of specified type
|
protected java.util.Iterator |
listGroupAccounts()
Returns an iterator containing all Login Accounts
|
protected java.util.Iterator |
listGroupAndPrivilegeAccounts()
Returns an iterator containing all Login Accounts
|
java.util.Iterator |
listGroupsFor(java.lang.String pAccountName)
Lists accounts that match a given expression.
|
protected java.util.Iterator |
listLoginAccounts()
Returns an iterator containing all Login Accounts
|
protected java.util.Iterator |
listMembersForAccount(java.lang.String pAccountName) |
protected java.util.Iterator |
listPrivilegeAccounts()
Returns an iterator containing all Login Accounts
|
void |
loadMemberOfCache()
pre-configures Key/Value pairs acct -> list of groups the acct is a member of
|
void |
setCacheReloadFrequency(long pCacheReloadFrequency)
Sets How frequently the cahce should be reloaded (in minutes)
|
void |
setCacheScheduler(Scheduler pCacheScheduler)
Sets the scheduler for cache reload
|
void |
setMemberOfCacheEnabled(boolean pEnabled)
sets flag denoting whether the cache is enabled or not
|
void |
setVerifyCachedItems(boolean pVerifyCachedItems)
Sets if true, after retrieving items from cache will verify against the repository.
|
createAccount, getAccountInitializer, getAccountItem, getAccountNameProperty, getAccountQueryLimit, getAccountTypeProperty, getAlternateUserPasswordHasher, getAttributeResourceBundle, getDefaultGroupAttributes, getDefaultLoginAttributes, getDefaultLoginGroups, getDefaultPrivilegeAttributes, getDescriptionAttribute, getDescriptionProperty, getFirstNameAttribute, getFirstNameProperty, getGroupDescriptorName, getGroupPropertyNames, getGroupsProperty, getItemNameIsAccountName, getLastNameAttribute, getLastNameProperty, getLastPasswordUpdatePropertyName, getLoginDescriptorName, getLoginPropertyNames, getPasswordAttribute, getPasswordHasher, getPasswordHasherAttribute, getPasswordHasherProperty, getPasswordProperty, getPreviousNPasswordArrayPropertyName, getRepository, getTransactionManager, listMatchingAccounts, login, loginWithUserPasswordHasher, removeAccount, setAccountInitializer, setAccountNameProperty, setAccountQueryLimit, setAccountTypeProperty, setAlternateUserPasswordHasher, setAttributeResourceBundle, setDefaultGroupAttributes, setDefaultLoginAttributes, setDefaultLoginGroups, setDefaultPrivilegeAttributes, setDescriptionProperty, setFirstNameProperty, setGroupDescriptorName, setGroupPropertyNames, setGroupsProperty, setItemNameIsAccountName, setLastNameProperty, setLastPasswordUpdatePropertyName, setLoginDescriptorName, setLoginPropertyNames, setPasswordHasher, setPasswordHasherAttribute, setPasswordHasherProperty, setPasswordProperty, setPreviousNPasswordArrayPropertyName, setRepository, setTransactionManager, userDestroyedaddAuthenticationFailedListener, addAuthenticationSucceededListener, addSpecialPersona, fireAuthenticationFailedEvent, fireAuthenticationSucceededEvent, getProxyUserAuthorities, getSpecialPersonae, getSupportsEveryone, getUserAuthorityName, removeAuthenticationFailedListener, removeAuthenticationSucceededListener, removeSpecialPersona, setProxyUserAuthorities, setSpecialPersonae, setSupportsEveryone, setUserAuthorityNameaddToRegistry, getRegistry, getRegistryName, getServiceName, removeFromRegistry, setRegistryName, setServiceName, startService, stopServiceaddLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfovlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAuthenticationFailedListener, addAuthenticationSucceededListener, getUserAuthorityName, removeAuthenticationFailedListener, removeAuthenticationSucceededListenerpublic boolean isReadOnly()
public java.lang.String[] getLdapGroups()
public java.lang.String getGroupLdapDescriptorName()
public java.lang.String[] getLdapPrivileges()
public java.lang.String getAccountLdapDescriptorName()
public LDAPRepositoryAccountManager.SecurityCache getCache()
public void setMemberOfCacheEnabled(boolean pEnabled)
public boolean isMemberOfCacheEnabled()
public void loadMemberOfCache()
public void setVerifyCachedItems(boolean pVerifyCachedItems)
public boolean isVerifyCachedItems()
public void setCacheScheduler(Scheduler pCacheScheduler)
public Scheduler getCacheScheduler()
public void setCacheReloadFrequency(long pCacheReloadFrequency)
public long getCacheReloadFrequency()
public Persona getPersona(java.lang.Object id)
getPersona in interface UserAuthoritygetPersona in class RepositoryAccountManagerprotected java.util.Iterator listLoginAccounts()
throws RepositoryException
RepositoryExceptionprotected java.util.Iterator listGroupAccounts()
throws RepositoryException
RepositoryExceptionprotected java.util.Iterator listPrivilegeAccounts()
throws RepositoryException
RepositoryExceptionprotected java.util.Iterator listGroupAndPrivilegeAccounts()
throws RepositoryException
RepositoryExceptionpublic java.util.Iterator listAccounts(int pType)
listAccounts in interface AccountManagerlistAccounts in class RepositoryAccountManagerpType - -- type of the account requestedAccountTypesprotected java.util.Iterator listMembersForAccount(java.lang.String pAccountName)
public java.util.Iterator listGroupsFor(java.lang.String pAccountName)
RepositoryAccountManagerlistGroupsFor in class RepositoryAccountManagerLDAPRepositoryAccountManagerpublic Account getAccount(java.lang.String pAccountName)
getAccount in interface AccountManagergetAccount in class RepositoryAccountManagerpAccountName - The name of the account to retrieve.public void doStartService()
doStartService in class RepositoryAccountManager