org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.commonui.privilege
Interface IPrivilegeStateLookup

All Known Implementing Classes:
ASAPrivilegeStateLookup, ASARoutinePrivilegeStateLookup

public interface IPrivilegeStateLookup

Lookup of privilege state.

Author:
Idull

Method Summary
 Privilege[] getInheritedPrivileges(java.util.List authids, AuthorizationIdentifier authid, SQLObject sqlObj, java.lang.String action)
          Returns the inherited privileges
 IPrivilegeState getPrivilegeState(java.util.List authids, AuthorizationIdentifier authid, SQLObject sqlObj, java.lang.String action)
          Returns the privileges state of the given authorization identifier (user, group or role) for the given SQL object with action type specified
 IPrivilegeState[] getReachableStates(IPrivilegeState initialState, AuthorizationIdentifier authId)
          Returns the reachable states of the given state
 boolean hasInheritedPrivilege(java.util.List authids, AuthorizationIdentifier authid, SQLObject sqlObj, java.lang.String action)
          Checks if the given authorization identifier (user, group or role) has inherited privilge for the given SQL object with action type specified
 

Method Detail

getReachableStates

IPrivilegeState[] getReachableStates(IPrivilegeState initialState,
                                     AuthorizationIdentifier authId)
Returns the reachable states of the given state

Parameters:
initialState -
Returns:

getPrivilegeState

IPrivilegeState getPrivilegeState(java.util.List authids,
                                  AuthorizationIdentifier authid,
                                  SQLObject sqlObj,
                                  java.lang.String action)
Returns the privileges state of the given authorization identifier (user, group or role) for the given SQL object with action type specified

Parameters:
authids - all the authorization identifiers
authid - the authorization identifier
sqlObj - SQL object
action - action type
Returns:

hasInheritedPrivilege

boolean hasInheritedPrivilege(java.util.List authids,
                              AuthorizationIdentifier authid,
                              SQLObject sqlObj,
                              java.lang.String action)
Checks if the given authorization identifier (user, group or role) has inherited privilge for the given SQL object with action type specified

Parameters:
authids -
authid -
sqlObj -
action -
Returns:

getInheritedPrivileges

Privilege[] getInheritedPrivileges(java.util.List authids,
                                   AuthorizationIdentifier authid,
                                   SQLObject sqlObj,
                                   java.lang.String action)
Returns the inherited privileges

Parameters:
authids -
authid -
sqlObj -
action -
Returns: