org.mycore.access.mcrimpl
Class MCRAccessCtrlCommands

java.lang.Object
  extended by org.mycore.frontend.cli.MCRAbstractCommands
      extended by org.mycore.access.mcrimpl.MCRAccessCtrlCommands
All Implemented Interfaces:
MCRExternalCommandInterface

public class MCRAccessCtrlCommands
extends MCRAbstractCommands

This class provides a set of commands for the org.mycore.access package which can be used by the command line interface. (creates sql tables, run queries

Author:
Arne Seifert

Field Summary
static Logger logger
           
 
Fields inherited from class org.mycore.frontend.cli.MCRAbstractCommands
command, CONFIG
 
Constructor Summary
MCRAccessCtrlCommands()
          constructor with commands.
 
Method Summary
static void createTables()
          method creates sql tables
static void validate(String objid, String permission)
          validates access for given object and given permission
 
Methods inherited from class org.mycore.frontend.cli.MCRAbstractCommands
getPossibleCommands
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static Logger logger
Constructor Detail

MCRAccessCtrlCommands

public MCRAccessCtrlCommands()
constructor with commands.

Method Detail

createTables

public static void createTables()
method creates sql tables


validate

public static void validate(String objid,
                            String permission)
validates access for given object and given permission

Parameters:
objid - internal database ruleid
permission - the access permission for the rule