Search in sources :

Example 1 with DBAPrivilegeOwner

use of org.jkiss.dbeaver.model.access.DBAPrivilegeOwner in project dbeaver by serge-rider.

the class ACLCommandChangePrivilege method getPersistActions.

@Override
public DBEPersistAction[] getPersistActions(DBRProgressMonitor monitor, DBCExecutionContext executionContext, Map<String, Object> options) {
    DBAPrivilegeOwner object = getObject();
    String grantScript = aclManager.generatePermissionChangeScript(monitor, object, grant, privilege, privilegeTypes, options);
    return new DBEPersistAction[] { new SQLDatabasePersistAction(ACLMessages.edit_command_grant_privilege_action_grant_privilege, grantScript) };
}
Also used : DBAPrivilegeOwner(org.jkiss.dbeaver.model.access.DBAPrivilegeOwner) DBEPersistAction(org.jkiss.dbeaver.model.edit.DBEPersistAction) SQLDatabasePersistAction(org.jkiss.dbeaver.model.impl.edit.SQLDatabasePersistAction)

Example 2 with DBAPrivilegeOwner

use of org.jkiss.dbeaver.model.access.DBAPrivilegeOwner in project dbeaver by dbeaver.

the class ACLCommandChangePrivilege method getPersistActions.

@Override
public DBEPersistAction[] getPersistActions(DBRProgressMonitor monitor, DBCExecutionContext executionContext, Map<String, Object> options) {
    DBAPrivilegeOwner object = getObject();
    String grantScript = aclManager.generatePermissionChangeScript(monitor, object, grant, privilege, privilegeTypes, options);
    return new DBEPersistAction[] { new SQLDatabasePersistAction(ACLMessages.edit_command_grant_privilege_action_grant_privilege, grantScript) };
}
Also used : DBAPrivilegeOwner(org.jkiss.dbeaver.model.access.DBAPrivilegeOwner) DBEPersistAction(org.jkiss.dbeaver.model.edit.DBEPersistAction) SQLDatabasePersistAction(org.jkiss.dbeaver.model.impl.edit.SQLDatabasePersistAction)

Aggregations

DBAPrivilegeOwner (org.jkiss.dbeaver.model.access.DBAPrivilegeOwner)2 DBEPersistAction (org.jkiss.dbeaver.model.edit.DBEPersistAction)2 SQLDatabasePersistAction (org.jkiss.dbeaver.model.impl.edit.SQLDatabasePersistAction)2