|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wles.blm.SCMManager
Manages all operations on SCMs. In addition to creating and deleting SCM's,
the SCM manager will also bind and unbind SSMs to an SCM....
Use the BLMContextManager
to obtain an instance of an
SCMManager.
BLMContextManager
Method Summary | |
void |
addConfigurationBinding(java.lang.String SCMName,
java.lang.String SSMName)
Binds an SSM to an SCM. |
void |
create(java.lang.String name)
Creates a new SCM. |
int |
distributeConfiguration(java.lang.String[] SSMNames,
PolicyAvailableForEnum returnWhen)
Distributes the configuration for a given SSM. |
java.lang.String |
filter(java.lang.String filterPattern)
Finds a set of SCM's based on a filter pattern. |
boolean |
find(java.lang.String name)
Checks that an SCM is in the policy store.. |
java.lang.String |
getBoundSSMs(java.lang.String SCMName)
Finds all SSMs bound to a specified SCM. |
int |
getCount(java.lang.String cID)
Returns the size of the SCM collection. |
java.lang.String[] |
getReport(java.lang.String cID)
Returns a report on an SCM collection |
java.lang.String[] |
getReport(java.lang.String cID,
int iStart,
int iCount)
Returns a subset of an SCM collection |
java.lang.String |
getUnboundSSMs()
Finds all unbound SSMs. |
void |
release(java.lang.String cID)
Releases the SCM collection. |
void |
remove(java.lang.String name)
Removes an SCM and unbinds any SSM's bound to it. |
void |
removeConfigurationBinding(java.lang.String SCMName,
java.lang.String SSMName)
Unbinds an SSM from an SCM. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void addConfigurationBinding(java.lang.String SCMName, java.lang.String SSMName) throws com.wles.blm.BLMException
SCMName
- The name of an existing SCM.SSMName
- The name of an existing SSM.
BLMException
public void create(java.lang.String name) throws com.wles.blm.BLMException
name
- Unique name of an SCM to create.
com.wles.blm.BLMException
public int distributeConfiguration(java.lang.String[] SSMNames, PolicyAvailableForEnum returnWhen) throws com.wles.blm.BLMException
null
will
distribute all SSM configurations. Returns a distribution id that should be used with
the BLMPolicyDistributor
to check the distribution status
SSMNames
- String array containing an SSMname per element to distribute.returnWhen
- specifies how long the call will block, one of: PolicyAvailableForEnum.READ, PolicyAvailableForEnum.WRITE,
PolicyAvailableForEnum.DISTRIBUTE
.
The value of null will distribute for all SSMs.
BLMException
public java.lang.String filter(java.lang.String filterPattern) throws com.wles.blm.BLMException
filterPattern
- Pattern for the filter eg. "*" or "MySCM*"
BLMException
getReport(String cID)
,
getReport(String cID, int iStart, int iCount)
,
getCount(String CID)
,
release(String cID)
,
find(String name)
public boolean find(java.lang.String name) throws com.wles.blm.BLMException
name
- Name of the SCM.
BLMException
public java.lang.String getBoundSSMs(java.lang.String SCMName) throws com.wles.blm.BLMException
SSMConfigurationManager
's report
method.
SCMName
- The name of the SCM to search for bound SSMs
BLMException.
com.wles.blm.BLMException
SSMConfigurationManager.getReport(String cID)
,
SSMConfigurationManager.getReport(String cID, int iStart, int iCount)
,
SSMConfigurationManager.getCount(String CID)
,
SSMConfigurationManager.release(String cID)
,
SSMConfigurationManager.find(String cID, String name)
,
SSMConfigurationManager
public int getCount(java.lang.String cID) throws com.wles.blm.BLMException
cID
- ID of the collection.
BLMException
public java.lang.String[] getReport(java.lang.String cID) throws com.wles.blm.BLMException
cID
- ID of the collection
BLMException
public java.lang.String[] getReport(java.lang.String cID, int iStart, int iCount) throws com.wles.blm.BLMException
cID
- ID of the collectioniStart
- Start index in the collection.iCount
- The number of objects.
BLMException
public java.lang.String getUnboundSSMs() throws com.wles.blm.BLMException
SSMConfigurationManager
's report
method.
BLMException.
com.wles.blm.BLMException
SSMConfigurationManager.getReport(String cID)
,
SSMConfigurationManager.getReport(String cID, int iStart, int iCount)
,
SSMConfigurationManager.getCount(String CID)
,
SSMConfigurationManager.release(String cID)
,
SSMConfigurationManager.find(String cID, String name)
,
SSMConfigurationManager
public void release(java.lang.String cID) throws com.wles.blm.BLMException
null
collection id will cause all held collections to be released.
cID
- ID of the collection
BLMException
public void remove(java.lang.String name) throws com.wles.blm.BLMException
name
- The name of the SCM to remove.
BLMException
public void removeConfigurationBinding(java.lang.String SCMName, java.lang.String SSMName) throws com.wles.blm.BLMException
SCMName
- The name of an existing SCM.SSMName
- The name of an existing SSM bound to the SCM passed in.
BLMException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |