Class MongoOAuth2AuthSchemeDao
java.lang.Object
dev.getelements.elements.dao.mongo.auth.MongoOAuth2AuthSchemeDao
- All Implemented Interfaces:
OAuth2AuthSchemeDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAuthScheme(OAuth2AuthScheme authScheme) Creates anAuthSchemevoiddeleteAuthScheme(String authSchemeId) Deletes theAuthSchemewith the supplied auth scheme ID.findAuthScheme(String authSchemeNameOrId) Finds anAuthScheme, returning anOptional.getAuthSchemes(int offset, int count, List<String> tags) Lists allAuthSchemeinstancesdev.morphia.DatastorevoidsetBeanMapper(MapperRegistry beanMapperRegistry) voidsetDatastore(dev.morphia.Datastore datastore) voidsetMongoDBUtils(MongoDBUtils mongoDBUtils) voidsetValidationHelper(ValidationHelper validationHelper) updateAuthScheme(OAuth2AuthScheme 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.OAuth2AuthSchemeDao
getAuthScheme
-
Constructor Details
-
MongoOAuth2AuthSchemeDao
public MongoOAuth2AuthSchemeDao()
-
-
Method Details
-
getAuthSchemes
Description copied from interface:OAuth2AuthSchemeDaoLists allAuthSchemeinstances- Specified by:
getAuthSchemesin interfaceOAuth2AuthSchemeDao- Parameters:
offset-count-tags-- Returns:
- a
PaginationofAuthSchemeinstances
-
findAuthScheme
Description copied from interface:OAuth2AuthSchemeDaoFinds anAuthScheme, returning anOptional.- Specified by:
findAuthSchemein interfaceOAuth2AuthSchemeDao- Parameters:
authSchemeNameOrId- the auth scheme id- Returns:
- an
Optional<AuthScheme>
-
createAuthScheme
Description copied from interface:OAuth2AuthSchemeDaoCreates anAuthScheme- Specified by:
createAuthSchemein interfaceOAuth2AuthSchemeDao- Parameters:
authScheme- theCreateAuthSchemeRequestwith the information to create the authScheme- Returns:
- a
CreateAuthSchemeResponseas it was created
-
updateAuthScheme
Description copied from interface:OAuth2AuthSchemeDaoUpdates the suppliedAuthScheme- Specified by:
updateAuthSchemein interfaceOAuth2AuthSchemeDao- Parameters:
authScheme- theUpdateAuthSchemeRequestwith the information to update the authScheme- Returns:
- a
UpdateAuthSchemeResponseas it was created
-
deleteAuthScheme
Description copied from interface:OAuth2AuthSchemeDaoDeletes theAuthSchemewith the supplied auth scheme ID.- Specified by:
deleteAuthSchemein interfaceOAuth2AuthSchemeDao- 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)
-