Using the ISecurityObjectManager interface

The ISecurityObjectManager interface provides all necessary methods. You must manage the security objects in the system with the ISecurityObjectManager interface. Refer to its Java document for details about this interface.

The usage of the ISecurityObjectManager interface is the same as the XML DAO and Database DAO except for its configuration. The following is the sample code for the configuration:
BasicElementFactory factory = new 
  //using xml DAO
BasicElementFactory("jar:///file/test/branch001.xml");
  //using database DAO
  //BasicElementFactory("jar:///config/branch001_db.xml");
		        
ISecurityObjectManager securityObjectManager = 
    ((BTTSecurityManager)securitymanager).getSecurityObjectManager();
  // use securityObjectManager …
securityObjectManager.addRight(“right01”);
securityObjectManager.addService(“service01”);
securityObjectManager.getAllUsers();

You can also use this interface on the client side on BTT Service Connector. Using the interface on the client side is the same as using it on the server side.