public class ControlAccess
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ControlAccess.CacheEntryType |
Constructor and Description |
---|
ControlAccess(AvalonConfigurationService avalonConfiguration,
java.lang.String userName,
java.util.List<java.lang.String> groupList,
boolean isSuperUser,
int debugLevel) |
Modifier and Type | Method and Description |
---|---|
void |
checkRightExecuteControlFunction(java.lang.String functionName)
Checks if the current user has execution right on the passed control function name
|
void |
checkRightReadControlVariable(java.lang.String variableName)
Checks if the current user has read right on the passed control variable
|
void |
checkRightWriteControlVariable(java.lang.String variableName)
Checks if the current user has write right on the passed control variable
|
public ControlAccess(AvalonConfigurationService avalonConfiguration, java.lang.String userName, java.util.List<java.lang.String> groupList, boolean isSuperUser, int debugLevel)
avalonConfiguration
- Instance of the AvalonConfigurationServiceuserName
- The username which opend the current sessongroupList
- The list of usergroups to which the current user belongsisSuperUser
- Flag, if the current user is a superuserdebugLevel
- The current debuglevelpublic void checkRightExecuteControlFunction(java.lang.String functionName) throws com.highqsoft.avalon.AvalonException
functionName
- com.highqsoft.avalon.AvalonException
public void checkRightReadControlVariable(java.lang.String variableName) throws com.highqsoft.avalon.AvalonException
variableName
- com.highqsoft.avalon.AvalonException
public void checkRightWriteControlVariable(java.lang.String variableName) throws com.highqsoft.avalon.AvalonException
variableName
- com.highqsoft.avalon.AvalonException