org.jboss.dna.common.jdbc.model.api
Interface Privilege

All Superinterfaces:
CoreMetaData, Serializable
All Known Implementing Classes:
PrivilegeBean

public interface Privilege
extends CoreMetaData

Provides all database privilege specific metadata.

Author:
Sergiy Litsenko

Method Summary
 String getGrantee()
          Return grantee of access (may be null)
 String getGrantor()
          Return grantor of access (may be null)
 String getName()
          Return name of access allowed (SELECT, INSERT, UPDATE, REFRENCES, ...)
 PrivilegeType getPrivilegeType()
          Returns privilege type
 Boolean isGrantable()
          Return true if grantee is permitted to grant to others, false otherwise (even if unknown).
 Boolean isUnknownGrantable()
          Return true if it is unknown: grantee is permitted to grant to others or not
 void setGrantable(Boolean grantable)
          Sets true if grantee is permitted to grant to others, false otherwise (even if unknown).
 void setGrantee(String grantee)
          Sets grantee of access (may be null)
 void setGrantor(String grantor)
          Sets grantor of access (may be null)
 void setName(String name)
          Sets name of access allowed (SELECT, INSERT, UPDATE, REFRENCES, ...)
 void setPrivilegeType(PrivilegeType privilegeType)
          Sets privilege type
 void setUnknownGrantable(Boolean unknownGrantable)
          sets true if it is unknown: grantee is permitted to grant to others or not
 

Method Detail

getPrivilegeType

PrivilegeType getPrivilegeType()
Returns privilege type

Returns:
privilege type

setPrivilegeType

void setPrivilegeType(PrivilegeType privilegeType)
Sets privilege type

Parameters:
privilegeType - the privilege type

getGrantor

String getGrantor()
Return grantor of access (may be null)

Returns:
grantor of access (may be null)

setGrantor

void setGrantor(String grantor)
Sets grantor of access (may be null)

Parameters:
grantor - the grantor of access (may be null)

getGrantee

String getGrantee()
Return grantee of access (may be null)

Returns:
grantee of access (may be null)

setGrantee

void setGrantee(String grantee)
Sets grantee of access (may be null)

Parameters:
grantee - the grantee of access (may be null)

getName

String getName()
Return name of access allowed (SELECT, INSERT, UPDATE, REFRENCES, ...)

Returns:
name of access allowed (SELECT, INSERT, UPDATE, REFRENCES, ...)

setName

void setName(String name)
Sets name of access allowed (SELECT, INSERT, UPDATE, REFRENCES, ...)

Parameters:
name - the name of access allowed (SELECT, INSERT, UPDATE, REFRENCES, ...)

isGrantable

Boolean isGrantable()
Return true if grantee is permitted to grant to others, false otherwise (even if unknown).

Returns:
true if grantee is permitted to grant to others, false otherwise (even if unknown).

setGrantable

void setGrantable(Boolean grantable)
Sets true if grantee is permitted to grant to others, false otherwise (even if unknown).

Parameters:
grantable - true if grantee is permitted to grant to others, false otherwise (even if unknown).

isUnknownGrantable

Boolean isUnknownGrantable()
Return true if it is unknown: grantee is permitted to grant to others or not

Returns:
true if it is unknown: grantee is permitted to grant to others or not

setUnknownGrantable

void setUnknownGrantable(Boolean unknownGrantable)
sets true if it is unknown: grantee is permitted to grant to others or not

Parameters:
unknownGrantable - true if it is unknown: grantee is permitted to grant to others or not


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.