Package io.continual.iam.impl
Class BasicIamServiceWrapper<I extends Identity,G extends Group>
- java.lang.Object
-
- io.continual.services.SimpleService
-
- io.continual.iam.impl.BasicIamServiceWrapper<I,G>
-
- Type Parameters:
I- an identity classG- a group class
- All Implemented Interfaces:
IamService<I,G>,IamServiceManager<I,G>,MetricsSupplier,Service
public class BasicIamServiceWrapper<I extends Identity,G extends Group> extends SimpleService implements IamServiceManager<I,G>, Service, MetricsSupplier
Creates a service object to wrap an IAM manager implementation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.continual.services.Service
Service.FailedToStart
-
-
Constructor Summary
Constructors Constructor Description BasicIamServiceWrapper(ServiceContainer sc, org.json.JSONObject config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessDb<G>getAccessDb()Get the access databaseAccessManager<G>getAccessManager()Get the access managerIdentityDb<I>getIdentityDb()Get the identity databaseIdentityManager<I>getIdentityManager()Get the identity managerTagManagergetTagManager()Get the tag managerprotected voidonStartRequested()protected voidonStopRequested()voidpopulateMetrics(MetricsCatalog metrics)-
Methods inherited from class io.continual.services.SimpleService
isRunning, requestFinish, requestFinishAndWait, start
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.continual.services.Service
isRunning, requestFinish, start
-
-
-
-
Constructor Detail
-
BasicIamServiceWrapper
public BasicIamServiceWrapper(ServiceContainer sc, org.json.JSONObject config) throws IamSvcException, Builder.BuildFailure
- Throws:
IamSvcExceptionBuilder.BuildFailure
-
-
Method Detail
-
onStartRequested
protected void onStartRequested() throws Service.FailedToStart- Overrides:
onStartRequestedin classSimpleService- Throws:
Service.FailedToStart
-
onStopRequested
protected void onStopRequested()
- Overrides:
onStopRequestedin classSimpleService
-
populateMetrics
public void populateMetrics(MetricsCatalog metrics)
- Specified by:
populateMetricsin interfaceMetricsSupplier
-
getIdentityDb
public IdentityDb<I> getIdentityDb() throws IamSvcException
Description copied from interface:IamServiceGet the identity database- Specified by:
getIdentityDbin interfaceIamService<I extends Identity,G extends Group>- Returns:
- the identity database
- Throws:
IamSvcException- if there's a problem in the IAM service
-
getAccessDb
public AccessDb<G> getAccessDb() throws IamSvcException
Description copied from interface:IamServiceGet the access database- Specified by:
getAccessDbin interfaceIamService<I extends Identity,G extends Group>- Returns:
- the access database
- Throws:
IamSvcException- if there's a problem in the IAM service
-
getIdentityManager
public IdentityManager<I> getIdentityManager() throws IamSvcException
Description copied from interface:IamServiceManagerGet the identity manager- Specified by:
getIdentityManagerin interfaceIamServiceManager<I extends Identity,G extends Group>- Returns:
- the identity manager
- Throws:
IamSvcException- if there's a problem in the IAM service
-
getAccessManager
public AccessManager<G> getAccessManager() throws IamSvcException
Description copied from interface:IamServiceManagerGet the access manager- Specified by:
getAccessManagerin interfaceIamServiceManager<I extends Identity,G extends Group>- Returns:
- the access manager
- Throws:
IamSvcException- if there's a problem in the IAM service
-
getTagManager
public TagManager getTagManager() throws IamSvcException
Description copied from interface:IamServiceManagerGet the tag manager- Specified by:
getTagManagerin interfaceIamServiceManager<I extends Identity,G extends Group>- Returns:
- the tag manager
- Throws:
IamSvcException- if there's a problem in the IAM service
-
-