Class AuditMgrFactory
- java.lang.Object
-
- org.apache.directory.fortress.core.AuditMgrFactory
-
public final class AuditMgrFactory extends Object
Creates an instance of the AuditMgr object.The default implementation class is specified as
AuditMgrImpl
but can be overridden by adding theGlobalIds.AUDIT_IMPLEMENTATION
config property.- Author:
- Apache Directory Project
-
-
Constructor Summary
Constructors Constructor Description AuditMgrFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuditMgr
createInstance()
Create and return a reference toAuditMgr
object using HOME context.static AuditMgr
createInstance(String contextId)
Create and return a reference toAuditMgr
object.static AuditMgr
createInstance(String contextId, Session adminSess)
Create and return a reference toAuditMgr
object.static AuditMgr
createInstance(Session adminSess)
Create and return a reference toAuditMgr
object using HOME context.
-
-
-
Method Detail
-
createInstance
public static AuditMgr createInstance() throws SecurityException
Create and return a reference toAuditMgr
object using HOME context.- Returns:
- instance of
AuditMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
createInstance
public static AuditMgr createInstance(String contextId) throws SecurityException
Create and return a reference toAuditMgr
object.- Parameters:
contextId
- maps to sub-tree in DIT, e.g. ou=contextId, dc=example, dc=com.- Returns:
- instance of
AuditMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
createInstance
public static AuditMgr createInstance(Session adminSess) throws SecurityException
Create and return a reference toAuditMgr
object using HOME context.- Parameters:
adminSess
- contains a valid Fortress A/RBAC Session object.- Returns:
- instance of
AuditMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
createInstance
public static AuditMgr createInstance(String contextId, Session adminSess) throws SecurityException
Create and return a reference toAuditMgr
object.- Parameters:
contextId
- maps to sub-tree in DIT, e.g. ou=contextId, dc=example, dc=com.adminSess
- contains a valid Fortress A/RBAC Session object.- Returns:
- instance of
AuditMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
-