Class MongoAuthSchemeDao
java.lang.Object
dev.getelements.elements.dao.mongo.auth.MongoAuthSchemeDao
- All Implemented Interfaces:
AuthSchemeDao
-
Field Summary
Fields inherited from interface dev.getelements.elements.sdk.dao.AuthSchemeDao
AUTH_SCHEME_CREATED, AUTH_SCHEME_DELETED, AUTH_SCHEME_UPDATED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAuthScheme(AuthScheme authScheme) Creates anAuthSchemevoiddeleteAuthScheme(String authSchemeId) Deletes theAuthSchemewith the supplied auth scheme ID.findAuthScheme(String authSchemeId) Finds anAuthScheme, returning anOptional<AuthScheme>.getAuthSchemes(int offset, int count, List<String> tags) Lists allAuthSchemeinstancesgetAuthSchemesByAudience(List<String> audience) Gets allAuthSchemeinstances with the supplied audiences.dev.morphia.DatastorevoidsetBeanMapper(MapperRegistry beanMapperRegistry) voidsetDatastore(dev.morphia.Datastore datastore) voidsetEventPublisher(Consumer<Event> eventPublisher) voidsetMongoDBUtils(MongoDBUtils mongoDBUtils) voidsetValidationHelper(ValidationHelper validationHelper) updateAuthScheme(AuthScheme authScheme) Updates the suppliedAuthSchemeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.sdk.dao.AuthSchemeDao
getAuthScheme
-
Constructor Details
-
MongoAuthSchemeDao
public MongoAuthSchemeDao()
-
-
Method Details
-
getAuthSchemes
Description copied from interface:AuthSchemeDaoLists allAuthSchemeinstances- Specified by:
getAuthSchemesin interfaceAuthSchemeDao- Parameters:
offset-count-tags-- Returns:
- a
PaginationofAuthSchemeinstances
-
findAuthScheme
Description copied from interface:AuthSchemeDaoFinds anAuthScheme, returning anOptional<AuthScheme>.- Specified by:
findAuthSchemein interfaceAuthSchemeDao- Parameters:
authSchemeId- the auth scheme id- Returns:
- an
Optional<AuthScheme>
-
getAuthSchemesByAudience
Description copied from interface:AuthSchemeDaoGets allAuthSchemeinstances with the supplied audiences.- Specified by:
getAuthSchemesByAudiencein interfaceAuthSchemeDao- Parameters:
audience- the audience
-
createAuthScheme
Description copied from interface:AuthSchemeDaoCreates anAuthScheme- Specified by:
createAuthSchemein interfaceAuthSchemeDao- Parameters:
authScheme- theCreateAuthSchemeRequestwith the information to create the authScheme- Returns:
- a
CreateAuthSchemeResponseas it was created
-
updateAuthScheme
Description copied from interface:AuthSchemeDaoUpdates the suppliedAuthScheme- Specified by:
updateAuthSchemein interfaceAuthSchemeDao- Parameters:
authScheme- theUpdateAuthSchemeRequestwith the information to update the authScheme- Returns:
- a
UpdateAuthSchemeResponseas it was created
-
deleteAuthScheme
Description copied from interface:AuthSchemeDaoDeletes theAuthSchemewith the supplied auth scheme ID.- Specified by:
deleteAuthSchemein interfaceAuthSchemeDao- Parameters:
authSchemeId- the auth scheme ID.
-
getMongoDBUtils
-
getValidationHelper
-
setValidationHelper
-
setMongoDBUtils
-
getBeanMapper
-
setBeanMapper
-
getDatastore
public dev.morphia.Datastore getDatastore() -
setDatastore
@Inject public void setDatastore(dev.morphia.Datastore datastore) -
getEventPublisher
-
setEventPublisher
-