1 21 22 package org.apache.derby.impl.sql.execute; 23 24 import org.apache.derby.iapi.services.sanity.SanityManager; 25 import org.apache.derby.catalog.UUID; 26 import org.apache.derby.iapi.error.StandardException; 27 import org.apache.derby.iapi.sql.Activation; 28 29 import java.util.List ; 30 31 class GrantRevokeConstantAction extends GenericConstantAction 32 { 33 private boolean grant; 34 private PrivilegeInfo privileges; 35 private List grantees; 36 37 GrantRevokeConstantAction( boolean grant, 38 PrivilegeInfo privileges, 39 List grantees) 40 { 41 this.grant = grant; 42 this.privileges = privileges; 43 this.grantees = grantees; 44 } 45 46 public String toString() 47 { 48 return grant ? "GRANT" : "REVOKE"; 49 } 50 51 52 59 public void executeConstantAction( Activation activation ) 60 throws StandardException 61 { 62 privileges.executeGrantRevoke( activation, grant, grantees); 63 } 64 } 65 | Popular Tags |