Class PgJdbcPrivilege
java.lang.Object
org.pgcodekeeper.core.database.pg.jdbc.PgJdbcPrivilege
Parser for aclItem arrays
- Author:
- ryabinin_av
-
Method Summary
Modifier and TypeMethodDescriptiongetGrantString(String column) Returns a formatted grant string with column suffixes.Returns the list of granted privileges.booleanbooleanisGO()booleanReturns whether this privilege grants all permissions to PUBLIC.static List<PgJdbcPrivilege>Parses AclItem array string into a list of privilege objects.
-
Method Details
-
getGrantee
-
getGrantValues
Returns the list of granted privileges.- Returns:
- unmodifiable list of grant values
-
isGO
public boolean isGO() -
isDefault
public boolean isDefault() -
isGrantAllToPublic
public boolean isGrantAllToPublic()Returns whether this privilege grants all permissions to PUBLIC.- Returns:
- true if this grants ALL to PUBLIC
-
getGrantString
Returns a formatted grant string with column suffixes.- Parameters:
column- the column suffix to append to each grant- Returns:
- formatted grant string
-
parse
Parses AclItem array string into a list of privilege objects.- Parameters:
aclArrayAsString- string representation of AclItem arrayorder- target order for privileges inside the privilege stringowner- owner name (owner's privileges go first)- Returns:
- list of parsed privileges
-