'SecurityManager contructor
param appbuilder:
F.A.B AppBuilder main object'

def __init__(self, appbuilder):

    super(SecurityManager, self).__init__(appbuilder)
    user_datamodel = SQLAInterface(self.user_model)
    if (self.auth_type == c.AUTH_DB):
        self.userdbmodelview.datamodel = user_datamodel
    elif (self.auth_type == c.AUTH_LDAP):
        self.userldapmodelview.datamodel = user_datamodel
    elif (self.auth_type == c.AUTH_OID):
        self.useroidmodelview.datamodel = user_datamodel
    elif (self.auth_type == c.AUTH_OAUTH):
        self.useroauthmodelview.datamodel = user_datamodel
    elif (self.auth_type == c.AUTH_REMOTE_USER):
        self.userremoteusermodelview.datamodel = user_datamodel
    self.userstatschartview.datamodel = user_datamodel
    if self.auth_user_registration:
        self.registerusermodelview.datamodel = SQLAInterface(self.registeruser_model)
    self.rolemodelview.datamodel = SQLAInterface(self.role_model)
    self.permissionmodelview.datamodel = SQLAInterface(self.permission_model)
    self.viewmenumodelview.datamodel = SQLAInterface(self.viewmenu_model)
    self.permissionviewmodelview.datamodel = SQLAInterface(self.permissionview_model)
    self.create_db()
