Class MongoAuthSchemeDao
java.lang.Object
dev.getelements.elements.dao.mongo.auth.MongoAuthSchemeDao
- All Implemented Interfaces:
AuthSchemeDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAuthScheme
(AuthScheme authScheme) Creates anAuthScheme
void
deleteAuthScheme
(String authSchemeId) Deletes theAuthScheme
with the supplied auth scheme ID.findAuthScheme
(String authSchemeId) Finds anAuthScheme
, returning anOptional<AuthScheme>
.getAuthSchemes
(int offset, int count, List<String> tags) Lists allAuthScheme
instancesgetAuthSchemesByAudience
(List<String> audience) Gets allAuthScheme
instances with the supplied audiences.dev.morphia.Datastore
void
setBeanMapper
(MapperRegistry beanMapperRegistry) void
setDatastore
(dev.morphia.Datastore datastore) void
setMongoDBUtils
(MongoDBUtils mongoDBUtils) void
setValidationHelper
(ValidationHelper validationHelper) updateAuthScheme
(AuthScheme authScheme) Updates the suppliedAuthScheme
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.getelements.elements.sdk.dao.AuthSchemeDao
getAuthScheme
-
Constructor Details
-
MongoAuthSchemeDao
public MongoAuthSchemeDao()
-
-
Method Details
-
getAuthSchemes
Description copied from interface:AuthSchemeDao
Lists allAuthScheme
instances- Specified by:
getAuthSchemes
in interfaceAuthSchemeDao
- Parameters:
offset
-count
-tags
-- Returns:
- a
Pagination
ofAuthScheme
instances
-
findAuthScheme
Description copied from interface:AuthSchemeDao
Finds anAuthScheme
, returning anOptional<AuthScheme>
.- Specified by:
findAuthScheme
in interfaceAuthSchemeDao
- Parameters:
authSchemeId
- the auth scheme id- Returns:
- an
Optional<AuthScheme>
-
getAuthSchemesByAudience
Description copied from interface:AuthSchemeDao
Gets allAuthScheme
instances with the supplied audiences.- Specified by:
getAuthSchemesByAudience
in interfaceAuthSchemeDao
- Parameters:
audience
- the audience
-
createAuthScheme
Description copied from interface:AuthSchemeDao
Creates anAuthScheme
- Specified by:
createAuthScheme
in interfaceAuthSchemeDao
- Parameters:
authScheme
- theCreateAuthSchemeRequest
with the information to create the authScheme- Returns:
- a
CreateAuthSchemeResponse
as it was created
-
updateAuthScheme
Description copied from interface:AuthSchemeDao
Updates the suppliedAuthScheme
- Specified by:
updateAuthScheme
in interfaceAuthSchemeDao
- Parameters:
authScheme
- theUpdateAuthSchemeRequest
with the information to update the authScheme- Returns:
- a
UpdateAuthSchemeResponse
as it was created
-
deleteAuthScheme
Description copied from interface:AuthSchemeDao
Deletes theAuthScheme
with the supplied auth scheme ID.- Specified by:
deleteAuthScheme
in 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)
-