com.filenet.rm.api
Class BusinessRules
- java.lang.Object
com.filenet.rm.api.BusinessRules
- public class BusinessRules
- extends java.lang.Object
Constructor Summary
Constructor and Description |
---|
BusinessRules()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getBusinessRulesPropertiesMap(com.filenet.wcm.api.Properties aoProp)
This is a direct copy of the getPropertiesMap() method available from RMObject class.
|
|
getRMDeclassificationOffset(com.filenet.wcm.api.ObjectStore aoObjectStore)
Returns the declassification offset for this object.
|
|
validateSecurityClassification(com.filenet.wcm.api.Properties aoRecordProps,com.filenet.wcm.api.ObjectStore aoObjectStore)
Validates the specified properties to perform an initial security classification action.
|
|
validateSecurityDeclassify(com.filenet.wcm.api.Properties aoRecordProps)
Validates the specified properties to perform a declassify action.
|
|
validateSecurityDowngrade(com.filenet.wcm.api.Properties aoRecordProps)
Validates the specified properties to perform a downgrade action.
|
|
validateSecurityUpgrade(com.filenet.wcm.api.Properties aoRecordProps)
Validates the specified properties to perform an upgrade action.
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
BusinessRules
- public BusinessRules()
Method Detail
validateSecurityClassification
- public static ValidationErrors validateSecurityClassification( com.filenet.wcm.api.Properties aoRecordProps,
- com.filenet.wcm.api.ObjectStore aoObjectStore)
Validates the specified properties to perform an initial security classification action.
Parameters:
aoRecordProps
- A Properties
collection containing the properties for the
security classification action. aoObjectStore
- An ObjectStore
object identifying the object store
for the file plan. Returns:
A
ValidationErrors
collection containing the errors for
the business rules that failed validation. Returns an empty collection if there are no
validation errors. validateSecurityUpgrade
- public static ValidationErrors validateSecurityUpgrade( com.filenet.wcm.api.Properties aoRecordProps)
Validates the specified properties to perform an upgrade action.
Parameters:
aoRecordProps
- A Properties
collection containing the properties for the
upgrade action. Returns:
A
ValidationErrors
collection containing the errors for
the business rules that failed validation. Returns an empty collection if there are no
validation errors. validateSecurityDowngrade
- public static ValidationErrors validateSecurityDowngrade( com.filenet.wcm.api.Properties aoRecordProps)
Validates the specified properties to perform a downgrade action.
Parameters:
aoRecordProps
- A Properties
collection containing the properties for the
downgrade action. Returns:
A
ValidationErrors
collection containing the errors for
the business rules that failed validation. Returns an empty collection if there are no
validation errors. validateSecurityDeclassify
- public static ValidationErrors validateSecurityDeclassify( com.filenet.wcm.api.Properties aoRecordProps)
Validates the specified properties to perform a declassify action.
Parameters:
aoRecordProps
- A Properties
collection containing the properties for the
declassify action. Returns:
A
ValidationErrors
collection containing the errors for
the business rules that failed validation. Returns an empty collection if there are no
validation errors. getBusinessRulesPropertiesMap
- protected static java.util.Map getBusinessRulesPropertiesMap( com.filenet.wcm.api.Properties aoProp)
This is a direct copy of the getPropertiesMap() method available from RMObject class. The method on
RMObject is non-static, and cannot be called from a static method. So this will be a helper function
to static methods requiring the same service.
Returns:
A
java.util.Map
object of the properties passed in. getRMDeclassificationOffset
- public static int getRMDeclassificationOffset( com.filenet.wcm.api.ObjectStore aoObjectStore)
Returns the declassification offset for this object.
Parameters:
aoObjectStore
- An ObjectStore
object identifying the object store
for the FPOS data model. Returns:
An
int
value representing the declassification offset for classification
of a record. Throws:
RMException
- If this method is not called in the context of a DoD Chapter 4 data model.