public class ProductPrivilegeUnit extends AbstractModel
Constructor and Description |
---|
ProductPrivilegeUnit() |
ProductPrivilegeUnit(ProductPrivilegeUnit source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getColumnName()
Get This value takes effect only when `PrivilegeName` is `ColumnPrivileges`, and the following parameters are required in this case:
Database: explicitly indicate the database instance.
|
String |
getDatabase()
Get This value takes effect only when `PrivilegeName` is `DatabasePrivileges`.
|
String |
getPrivilegeName()
Get Permission name.
|
String[] |
getPrivileges()
Get Permission list.
|
String |
getTableName()
Get This value takes effect only when `PrivilegeName` is `TablePrivileges`, and the `Database` parameter is required in this case to explicitly indicate the database instance.
|
void |
setColumnName(String ColumnName)
Set This value takes effect only when `PrivilegeName` is `ColumnPrivileges`, and the following parameters are required in this case:
Database: explicitly indicate the database instance.
|
void |
setDatabase(String Database)
Set This value takes effect only when `PrivilegeName` is `DatabasePrivileges`.
|
void |
setPrivilegeName(String PrivilegeName)
Set Permission name.
|
void |
setPrivileges(String[] Privileges)
Set Permission list.
|
void |
setTableName(String TableName)
Set This value takes effect only when `PrivilegeName` is `TablePrivileges`, and the `Database` parameter is required in this case to explicitly indicate the database instance.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public ProductPrivilegeUnit()
public ProductPrivilegeUnit(ProductPrivilegeUnit source)
public String getPrivilegeName()
public void setPrivilegeName(String PrivilegeName)
PrivilegeName
- Permission name. Valid values:
GlobalPrivileges
DatabasePrivileges
TablePrivileges
ColumnPrivileges
When the permission is `DatabasePrivileges`, the database name must be specified by the `Database` parameter;
When the permission is `TablePrivileges`, the database name and the table name in the database must be specified by the `Database` and `TableName` parameters;
When the permission is `ColumnPrivileges`, the database name, table name in the database, and column name in the table must be specified by the `Database`, `TableName`, and `ColumnName` parameters.public String[] getPrivileges()
public void setPrivileges(String[] Privileges)
Privileges
- Permission list.
For the `Mysql` service, optional permission values are:
1. Valid values of `GlobalPrivileges`: "SELECT","INSERT","UPDATE","DELETE","CREATE", "PROCESS", "DROP","REFERENCES","INDEX","ALTER","SHOW DATABASES","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER".
Note: if this parameter is not passed in, it means to clear the permission.
2. Valid values of `DatabasePrivileges`: "SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER".
Note: if this parameter is not passed in, it means to clear the permission.
3. Valid values of `TablePrivileges`: "SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE VIEW","SHOW VIEW", "TRIGGER".
Note: if this parameter is not passed in, it means to clear the permission.
4. Valid values of `ColumnPrivileges`: "SELECT","INSERT","UPDATE","REFERENCES".
Note: if this parameter is not passed in, it means to clear the permission.public String getDatabase()
public void setDatabase(String Database)
Database
- This value takes effect only when `PrivilegeName` is `DatabasePrivileges`.public String getTableName()
public void setTableName(String TableName)
TableName
- This value takes effect only when `PrivilegeName` is `TablePrivileges`, and the `Database` parameter is required in this case to explicitly indicate the database instance.public String getColumnName()
public void setColumnName(String ColumnName)
ColumnName
- This value takes effect only when `PrivilegeName` is `ColumnPrivileges`, and the following parameters are required in this case:
Database: explicitly indicate the database instance.
TableName: explicitly indicate the tableCopyright © 2023. All rights reserved.