public bool Grant(string shardName, Common.Security.Impl.ResourceId resourceId, Common.Security.Interfaces.IUser userInfo, Common.Security.Interfaces.IRole roleInfo) { try { if (_configurationSession != null) { return(_configurationSession.Grant(this.ClusterName, resourceId, userInfo.Username, roleInfo.RoleName)); } return(false); } catch (ChannelException) { return(false); } }
public bool Revoke(string shardName, Common.Security.Impl.ResourceId resourceId, Common.Security.Interfaces.IUser userInfo, Common.Security.Interfaces.IRole roleInfo) { return(true); }
public bool RevokeRole(string cluster, string shardName, Common.Security.Impl.ResourceId resourceId, Common.Security.Interfaces.IUser userInfo, Common.Security.Interfaces.IRole roleInfo) { ManagementCommand command = GetManagementCommand(ConfigurationCommandUtil.MethodName.Revoke); command.Parameters.AddParameter(cluster); command.Parameters.AddParameter(shardName); command.Parameters.AddParameter(resourceId); command.Parameters.AddParameter(userInfo); command.Parameters.AddParameter(roleInfo); return((bool)ExecuteCommandOnMgtServer(command, true)); }
public bool RevokeRole(string cluster, string shardName, Common.Security.Impl.ResourceId resourceId, Common.Security.Interfaces.IUser userInfo, Common.Security.Interfaces.IRole roleInfo) { try { return(dbMgtServer.RevokeRole(cluster, shardName, resourceId, userInfo, roleInfo)); } catch (System.Exception exc) { throw exc; } }
public void DropRole(Common.Security.Interfaces.IRole roleInfo) { throw new NotImplementedException(); }
public bool Revoke(string shardName, Common.Security.Impl.ResourceId resourceId, Common.Security.Interfaces.IUser user, Common.Security.Interfaces.IRole role) { if (ConfigurationServer != null) { return(ConfigurationServer.RevokeRoleOnDatabaseServer(shardName, resourceId, user, role)); } return(true); }
public bool Grant(string shardName, Common.Security.Impl.ResourceId resourceId, Common.Security.Interfaces.IUser user, Common.Security.Interfaces.IRole role) { if (ConfigurationServer != null) { return(ConfigurationServer.GrantRoleOnDatabaseServer(shardName, resourceId, user, role)); } return(true); //returns true as the call was meant to be sent to db server from config server for granting role and it is already on db server }