def __init__(self, appbuilder):
super(SecurityManager, self).__init__(appbuilder)<EOL>user_datamodel = MongoEngineInterface(self.user_model)<EOL>if self.auth_type == c.AUTH_DB:<EOL><INDENT>self.userdbmodelview.datamodel = user_datamodel<EOL><DEDENT>elif self.auth_type == c.AUTH_LDAP:<EOL><INDENT>self.userldapmodelview.datamodel = user_datamodel<EOL><DEDENT>elif self.auth_type == c.AUTH_OID:<EOL><INDENT>self.useroidmodelview.datamodel = user_datamodel<EOL><DEDENT>elif self.auth_type == c.AUTH_OAUTH:<EOL><INDENT>self.useroauthmodelview.datamodel = user_datamodel<EOL><DEDENT>elif self.auth_type == c.AUTH_REMOTE_USER:<EOL><INDENT>self.userremoteusermodelview.datamodel = user_datamodel<EOL><DEDENT>self.userstatschartview.datamodel = MongoEngineInterface(self.user_model)<EOL>if self.auth_user_registration:<EOL><INDENT>self.registerusermodelview.datamodel = MongoEngineInterface(<EOL>self.registeruser_model<EOL>)<EOL><DEDENT>self.rolemodelview.datamodel = MongoEngineInterface(self.role_model)<EOL>self.permissionmodelview.datamodel = MongoEngineInterface(self.permission_model)<EOL>self.viewmenumodelview.datamodel = MongoEngineInterface(self.viewmenu_model)<EOL>self.permissionviewmodelview.datamodel = MongoEngineInterface(<EOL>self.permissionview_model<EOL>)<EOL>self.create_db()<EOL>
SecurityManager contructor
param appbuilder:
    F.A.B AppBuilder main object