|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.nucleus.RegisteredService atg.security.GenericUserAuthority atg.security.RepositoryAccountManager atg.security.LDAPRepositoryAccountManager
public class LDAPRepositoryAccountManager
An account manager and user authority that works against an LDAPRepository
RepositoryAccountManager
Nested Class Summary | |
---|---|
class |
LDAPRepositoryAccountManager.SecurityCache
The cache of security permissions associated with this account manager |
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
LDAPRepositoryAccountManager()
|
Method Summary | |
---|---|
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. |
Methods inherited from class atg.nucleus.RegisteredService |
---|
addToRegistry, getRegistry, getRegistryName, getServiceName, removeFromRegistry, setRegistryName, setServiceName, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface atg.security.UserAuthority |
---|
addAuthenticationFailedListener, addAuthenticationSucceededListener, getUserAuthorityName, removeAuthenticationFailedListener, removeAuthenticationSucceededListener |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public LDAPRepositoryAccountManager()
Method Detail |
---|
public 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 UserAuthority
getPersona
in class RepositoryAccountManager
protected java.util.Iterator listLoginAccounts() throws RepositoryException
RepositoryException
protected java.util.Iterator listGroupAccounts() throws RepositoryException
RepositoryException
protected java.util.Iterator listPrivilegeAccounts() throws RepositoryException
RepositoryException
protected java.util.Iterator listGroupAndPrivilegeAccounts() throws RepositoryException
RepositoryException
public java.util.Iterator listAccounts(int pType)
listAccounts
in interface AccountManager
listAccounts
in class RepositoryAccountManager
pType
- -- type of the account requestedAccountTypes
protected java.util.Iterator listMembersForAccount(java.lang.String pAccountName)
public java.util.Iterator listGroupsFor(java.lang.String pAccountName)
RepositoryAccountManager
listGroupsFor
in class RepositoryAccountManager
LDAPRepositoryAccountManager
public Account getAccount(java.lang.String pAccountName)
getAccount
in interface AccountManager
getAccount
in class RepositoryAccountManager
pAccountName
- The name of the account to retrieve.public void doStartService()
doStartService
in class RepositoryAccountManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |