@Property(name="resourceService.target") @Property(name="propertyManager.target") @Service public class AuthenticationContextComponent extends Object implements org.everit.osgi.authentication.context.AuthenticationContext, org.everit.osgi.authentication.context.AuthenticationPropagator
AuthenticationContext and AuthenticationPropagator interfaces.| Constructor and Description |
|---|
AuthenticationContextComponent() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(org.osgi.framework.BundleContext context,
Map<String,Object> componentProperties)
The activate method if this OSGi component.
|
long |
getCurrentResourceId() |
long |
getDefaultResourceId() |
<T> T |
runAs(long authenticatedResourceId,
java.util.function.Supplier<T> authenticatedAction) |
void |
setPropertyManager(org.everit.osgi.props.PropertyManager propertyManager) |
void |
setResourceService(org.everit.osgi.resource.ResourceService resourceService) |
@Activate
public void activate(org.osgi.framework.BundleContext context,
Map<String,Object> componentProperties)
defaultResourceId.context - the bundle contextcomponentProperties - the properties of this componentpublic long getCurrentResourceId()
getCurrentResourceId in interface org.everit.osgi.authentication.context.AuthenticationContextpublic long getDefaultResourceId()
getDefaultResourceId in interface org.everit.osgi.authentication.context.AuthenticationContextpublic <T> T runAs(long authenticatedResourceId,
java.util.function.Supplier<T> authenticatedAction)
runAs in interface org.everit.osgi.authentication.context.AuthenticationPropagatorpublic void setPropertyManager(org.everit.osgi.props.PropertyManager propertyManager)
public void setResourceService(org.everit.osgi.resource.ResourceService resourceService)
Copyright © 2011–2014 Everit Kft.. All rights reserved.