Class PropertyMgrFactory
- java.lang.Object
-
- org.apache.directory.fortress.core.PropertyMgrFactory
-
public class PropertyMgrFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description PropertyMgrFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PropertyMgr
createInstance()
Create and return a reference toPropertyMgr
object using HOME context.static PropertyMgr
createInstance(String contextId)
Create and return a reference toPropertyMgr
object.static PropertyMgr
createInstance(String contextId, Session adminSess)
Create and return a reference toPropertyMgr
object.static PropertyMgr
createInstance(Session adminSess)
Create and return a reference toPropertyMgr
object using HOME context.
-
-
-
Method Detail
-
createInstance
public static PropertyMgr createInstance() throws SecurityException
Create and return a reference toPropertyMgr
object using HOME context.- Returns:
- instance of
PropertyMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
createInstance
public static PropertyMgr createInstance(String contextId) throws SecurityException
Create and return a reference toPropertyMgr
object.- Parameters:
contextId
- maps to sub-tree in DIT, e.g. ou=contextId, dc=example, dc=com.- Returns:
- instance of
PropertyMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
createInstance
public static PropertyMgr createInstance(Session adminSess) throws SecurityException
Create and return a reference toPropertyMgr
object using HOME context.- Parameters:
adminSess
- contains a valid Fortress A/RBAC Session object.- Returns:
- instance of
PropertyMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
createInstance
public static PropertyMgr createInstance(String contextId, Session adminSess) throws SecurityException
Create and return a reference toPropertyMgr
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
PropertyMgr
. - Throws:
SecurityException
- in the event of failure during instantiation.
-
-