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 AuthorizationTrackerpublic 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 AuthorizationManagerpublic void update(UserInformation userInformation, String configurationId, Map<String,String> parameters) throws Exception
ConfigurationFactoryupdate in interface ConfigurationFactoryuserInformation - the principal that performed the change, may be nullconfigurationId - 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
ConfigurationFactorydelete in interface ConfigurationFactoryuserInformation - the principal that performed the change, may be nullconfigurationId - 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.