org.jboss.dna.common.jdbc.model.spi
Class PrivilegeBean

java.lang.Object
  extended by org.jboss.dna.common.jdbc.model.spi.CoreMetaDataBean
      extended by org.jboss.dna.common.jdbc.model.spi.PrivilegeBean
All Implemented Interfaces:
Serializable, CoreMetaData, Privilege

public class PrivilegeBean
extends CoreMetaDataBean
implements Privilege

Provides all database privilege specific metadata.

Author:
Sergiy Litsenko
See Also:
Serialized Form

Constructor Summary
PrivilegeBean()
          Default constructor
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrivilegeBean

public PrivilegeBean()
Default constructor

Method Detail

getPrivilegeType

public PrivilegeType getPrivilegeType()
Returns privilege type

Specified by:
getPrivilegeType in interface Privilege
Returns:
privilege type

setPrivilegeType

public void setPrivilegeType(PrivilegeType privilegeType)
Sets privilege type

Specified by:
setPrivilegeType in interface Privilege
Parameters:
privilegeType - the privilege type

getGrantor

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

Specified by:
getGrantor in interface Privilege
Returns:
grantor of access (may be null)

setGrantor

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

Specified by:
setGrantor in interface Privilege
Parameters:
grantor - the grantor of access (may be null)

getGrantee

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

Specified by:
getGrantee in interface Privilege
Returns:
grantee of access (may be null)

setGrantee

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

Specified by:
setGrantee in interface Privilege
Parameters:
grantee - the grantee of access (may be null)

getName

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

Specified by:
getName in interface Privilege
Returns:
name of access allowed (SELECT, INSERT, UPDATE, REFRENCES, ...)

setName

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

Specified by:
setName in interface Privilege
Parameters:
name - the name of access allowed (SELECT, INSERT, UPDATE, REFRENCES, ...)

isGrantable

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

Specified by:
isGrantable in interface Privilege
Returns:
true if grantee is permitted to grant to others, false otherwise (even if unknown).

setGrantable

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

Specified by:
setGrantable in interface Privilege
Parameters:
grantable - true if grantee is permitted to grant to others, false otherwise (even if unknown).

isUnknownGrantable

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

Specified by:
isUnknownGrantable in interface Privilege
Returns:
true if it is unknown: grantee is permitted to grant to others or not

setUnknownGrantable

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

Specified by:
setUnknownGrantable in interface Privilege
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.