4.7 Adding Classification Rules

File Server Resource Manager Protocol classification rules can be registered on the server via the IFsrmClassificationManager interface (section 3.2.4.2.45). The following describes how a client can add a new FSRM classification rule object:

  1. The client requests the creation of an instance of the Classification Manager on the local machine by calling CoCreateInstance with the class GUID of the Classification Manager, requesting an instance of the Classification Manager on the server.

  2. The server returns a reference to the IFsrmClassificationManager interface.

  3. The client calls the method IFsrmClassificationManager::CreateRule (section 3.2.4.2.45.16) with the value of the type of rule desired (FsrmRuleType (section 2.2.1.2.11)).

  4. The server returns a reference to the IFsrmRule interface (section 3.2.4.2.41) back to the client.

  5. The client can make calls to any of the methods implemented by IFsrmRule.

  6. The server responds appropriately to the client call.

  7. The client calls IFsrmObject::Commit (section 3.2.4.2.10.5).

  8. The server updates the collection of classification rules to include the new classification rule.

  9. The client calls IFsrmRule::Release.

  10. The server decrements the number of references to the classification rules.

Flow diagram for adding new classification rules

Figure 6: Flow diagram for adding new classification rules