- All Implemented Interfaces:
Serializable,Comparable<Permission>
The platform-supported set of permissions for MySQL servers.
- Author:
- AO Industries, Inc.
- See Also:
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGets the display name of this permission.The column name used in the MySQL grant tables.The privilege type used in MySQL GRANT and REVOKE.booleanisDatabaseUserGranted(DatabaseUser databaseUser) Is this permission granted to the givenDatabaseUser?booleanDoes this permission have a representation inDatabaseUser?booleanisSupportedOn(Server.Version version) Is this permission supported on the given MySQL version?booleanisUserGranted(User user) Is this permission granted to the givenUser?booleanDoes this permission have a representation inUser?toString()static PermissionReturns the enum constant of this type with the specified name.static Permission[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SELECT
-
INSERT
-
UPDATE
-
DELETE
-
CREATE
-
DROP
-
RELOAD
-
SHUTDOWN
-
PROCESS
-
FILE
-
GRANT
-
REFERENCES
-
INDEX
-
ALTER
-
SHOW_DB
-
SUPER
-
CREATE_TMP_TABLE
-
LOCK_TABLES
-
EXECUTE
-
REPL_SLAVE
-
REPL_CLIENT
-
CREATE_VIEW
-
SHOW_VIEW
-
CREATE_ROUTINE
-
ALTER_ROUTINE
-
CREATE_USER
-
EVENT
-
TRIGGER
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<Permission>- See Also:
-
getDisplayName
Gets the display name of this permission. -
getMysqlColumn
The column name used in the MySQL grant tables. -
getMysqlPrivilegeType
The privilege type used in MySQL GRANT and REVOKE. -
isSupportedOn
Is this permission supported on the given MySQL version?- See Also:
-
isUserPermission
public boolean isUserPermission()Does this permission have a representation inUser?- See Also:
-
isUserGranted
Is this permission granted to the givenUser?- Throws:
IllegalStateException- when notisUserPermission().- See Also:
-
isDatabaseUserPermission
public boolean isDatabaseUserPermission()Does this permission have a representation inDatabaseUser?- See Also:
-
isDatabaseUserGranted
Is this permission granted to the givenDatabaseUser?- Throws:
IllegalStateException- when notisDatabaseUserPermission().- See Also:
-
