public class AvalonConfigurationService
extends java.lang.Object
| Constructor and Description |
|---|
AvalonConfigurationService(java.lang.String[] args) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Properties |
getCommandLineParametersAsProperties()
Returns all command line parameters as Propties
|
int |
getDebugLevel()
Get the debug level.
|
boolean |
isAccessToAvalonControlFunctionDefined(java.lang.String functionName)
Checks if any access rights definition for the passed functions exits
|
boolean |
isAccessToAvalonControlVariableDefined(java.lang.String variableName)
Checks if any access rights definition for the passed variable exits
|
boolean |
isConfigurationValid()
Returns true, when the configuration file was read successfully
|
boolean |
isGroupExecuteAccessToAvalonControlFunctionAllowed(java.lang.String functionName,
java.lang.String groupName)
Checks if the given group has access to the control function
|
boolean |
isGroupReadAccessToAvalonControlVariableAllowed(java.lang.String variableName,
java.lang.String groupName)
Checks if the given group has read access to the control variable
|
boolean |
isGroupWriteAccessToAvalonControlVariableAllowed(java.lang.String variableName,
java.lang.String groupName)
Checks if the given group has write access to the control variable
|
boolean |
isUserExecuteAccessToAvalonControlFunctionAllowed(java.lang.String functionName,
java.lang.String userName)
Checks if the given user has access to the control function
|
boolean |
isUserReadAccessToAvalonControlVariableAllowed(java.lang.String variableName,
java.lang.String userName)
Checks if the given user has read access to the control variable
|
boolean |
isUserWriteAccessToAvalonControlVariableAllowed(java.lang.String variableName,
java.lang.String userName)
Checks if the given user has write access to the control variable
|
void |
printCommandlineParameters()
Prints the commandline arguments to sysout
|
void |
readAvalonConfigurationFile()
Reads the avalon configuration file
|
public AvalonConfigurationService(java.lang.String[] args)
public void readAvalonConfigurationFile()
public java.util.Properties getCommandLineParametersAsProperties()
public boolean isConfigurationValid()
public boolean isAccessToAvalonControlFunctionDefined(java.lang.String functionName)
functionName - Name of the Control functionpublic boolean isAccessToAvalonControlVariableDefined(java.lang.String variableName)
variableName - Name of the variablepublic boolean isUserExecuteAccessToAvalonControlFunctionAllowed(java.lang.String functionName,
java.lang.String userName)
functionName - Name of the Control function which access should be checkeduserName - Name of the user which should be checkedpublic boolean isGroupExecuteAccessToAvalonControlFunctionAllowed(java.lang.String functionName,
java.lang.String groupName)
functionName - Name of the Control function which access should be checkedgroupName - Name of the group, which access right should be checkedpublic boolean isUserReadAccessToAvalonControlVariableAllowed(java.lang.String variableName,
java.lang.String userName)
variablenName - Name of the Control variable access should be checkeduserName - Name of the user which should be checkedpublic boolean isUserWriteAccessToAvalonControlVariableAllowed(java.lang.String variableName,
java.lang.String userName)
variablenName - Name of the Control variable access should be checkeduserName - Name of the user which should be checkedpublic boolean isGroupReadAccessToAvalonControlVariableAllowed(java.lang.String variableName,
java.lang.String groupName)
variablenName - Name of the Control variable access should be checkedgroupName - Name of the user which should be checkedpublic boolean isGroupWriteAccessToAvalonControlVariableAllowed(java.lang.String variableName,
java.lang.String groupName)
variablenName - Name of the Control variable access should be checkedgroupName - Name of the user which should be checkedpublic int getDebugLevel()
public void printCommandlineParameters()