com.filenet.rm.api

Class BusinessRules

  1. java.lang.Object
  2. extended bycom.filenet.rm.api.BusinessRules

  1. public class BusinessRules
  2. extends java.lang.Object
Represents a set of business rules that are applied to security classification actions.

Constructor Summary

Constructor and Description
BusinessRules()

Method Summary

Modifier and Type Method and Description
  1. protected static
  2. java.util.Map
getBusinessRulesPropertiesMap(com.filenet.wcm.api.Properties aoProp)
This is a direct copy of the getPropertiesMap() method available from RMObject class.
  1. static
  2. int
getRMDeclassificationOffset(com.filenet.wcm.api.ObjectStore aoObjectStore)
Returns the declassification offset for this object.
  1. static
  2. 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.
  1. static
  2. ValidationErrors
validateSecurityDeclassify(com.filenet.wcm.api.Properties aoRecordProps)
Validates the specified properties to perform a declassify action.
  1. static
  2. ValidationErrors
validateSecurityDowngrade(com.filenet.wcm.api.Properties aoRecordProps)
Validates the specified properties to perform a downgrade action.
  1. static
  2. ValidationErrors
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

  1. public BusinessRules()

Method Detail

validateSecurityClassification

  1. public static ValidationErrors validateSecurityClassification( com.filenet.wcm.api.Properties aoRecordProps,
  2. 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

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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.