public class AuthorizationManagerImpl extends Object implements AuthorizationManager, ConfigurationFactory, AuthorizationTracker
AuthorizationTracker.Listener, AuthorizationTracker.Monitor
Constructor and Description |
---|
AuthorizationManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
activate(org.osgi.framework.BundleContext context) |
NotifyFuture<AuthorizationReply> |
authorize(AuthorizationContext context,
AuthorizationResult defaultResult)
Single shot authorization
|
AuthorizationTracker.Monitor |
createMonitor(AuthorizationTracker.Listener listener,
AuthorizationRequest request) |
void |
deactivate() |
void |
delete(UserInformation userInformation,
String configurationId)
receive configuration delete request
|
void |
disposeMonitor(MonitorImpl monitor) |
AuthorizationService |
findService(String serviceType) |
protected Iterable<ConfigurationEntry> |
getCurrentRules() |
void |
list() |
protected void |
performRevalidate(MonitorImpl monitor) |
void |
revalidateAll() |
void |
update(UserInformation userInformation,
String configurationId,
Map<String,String> parameters)
receive configuration update
|
public void activate(org.osgi.framework.BundleContext context)
public void deactivate()
public AuthorizationTracker.Monitor createMonitor(AuthorizationTracker.Listener listener, AuthorizationRequest request)
createMonitor
in interface AuthorizationTracker
public void disposeMonitor(MonitorImpl monitor)
public void revalidateAll()
protected void performRevalidate(MonitorImpl monitor)
protected Iterable<ConfigurationEntry> getCurrentRules()
public NotifyFuture<AuthorizationReply> authorize(AuthorizationContext context, AuthorizationResult defaultResult)
authorize
in interface AuthorizationManager
public void update(UserInformation userInformation, String configurationId, Map<String,String> parameters) throws Exception
ConfigurationFactory
update
in interface ConfigurationFactory
userInformation
- the principal that performed the change, may be null
configurationId
- the configuration object to changeparameters
- the new propertiesException
- can be thrown if anything goes wrong changing the configurationpublic void delete(UserInformation userInformation, String configurationId) throws Exception
ConfigurationFactory
delete
in interface ConfigurationFactory
userInformation
- the principal that performed the change, may be null
configurationId
- the configuration object to changeException
- can be thrown if anything goes wrong changing the configurationpublic AuthorizationService findService(String serviceType)
public void list()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.