Class SuperUserOAuth2AuthSchemeService
java.lang.Object
dev.getelements.elements.service.auth.SuperUserOAuth2AuthSchemeService
- All Implemented Interfaces:
OAuth2AuthSchemeService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAuthScheme
(CreateOrUpdateOAuth2AuthSchemeRequest authSchemeRequest) Creates anOAuth2AuthScheme
.void
deleteAuthScheme
(String authSchemeId) Deletes theOAuth2AuthScheme
with the supplied auth scheme ID.getAuthScheme
(String authSchemeId) Fetches a specificOAuth2AuthScheme
instance based on ID.getAuthSchemes
(int offset, int count, List<String> tags) Lists allOAuth2AuthScheme
instancesvoid
setAuthSchemeDao
(OAuth2AuthSchemeDao authSchemeDao) void
setValidationHelper
(ValidationHelper validationHelper) updateAuthScheme
(String authSchemeId, CreateOrUpdateOAuth2AuthSchemeRequest authSchemeRequest) Updates the suppliedOAuth2AuthScheme
-
Constructor Details
-
SuperUserOAuth2AuthSchemeService
public SuperUserOAuth2AuthSchemeService()
-
-
Method Details
-
getAuthSchemes
Description copied from interface:OAuth2AuthSchemeService
Lists allOAuth2AuthScheme
instances- Specified by:
getAuthSchemes
in interfaceOAuth2AuthSchemeService
- Parameters:
offset
-count
-tags
-- Returns:
- a
Pagination
ofOAuth2AuthScheme
instances
-
getAuthScheme
Description copied from interface:OAuth2AuthSchemeService
Fetches a specificOAuth2AuthScheme
instance based on ID. If not found, an exception is raised.- Specified by:
getAuthScheme
in interfaceOAuth2AuthSchemeService
- Parameters:
authSchemeId
- the auth scheme ID- Returns:
- the
OAuth2AuthScheme
, never null
-
createAuthScheme
public CreateOrUpdateOAuth2AuthSchemeResponse createAuthScheme(CreateOrUpdateOAuth2AuthSchemeRequest authSchemeRequest) Description copied from interface:OAuth2AuthSchemeService
Creates anOAuth2AuthScheme
. Returns error if scheme already exists.- Specified by:
createAuthScheme
in interfaceOAuth2AuthSchemeService
- Parameters:
authSchemeRequest
- theCreateOrUpdateOAuth2AuthSchemeRequest
with the information to create the auth scheme.- Returns:
- a
CreateOrUpdateOAuth2AuthSchemeResponse
as it was created
-
updateAuthScheme
public CreateOrUpdateOAuth2AuthSchemeResponse updateAuthScheme(String authSchemeId, CreateOrUpdateOAuth2AuthSchemeRequest authSchemeRequest) Description copied from interface:OAuth2AuthSchemeService
Updates the suppliedOAuth2AuthScheme
- Specified by:
updateAuthScheme
in interfaceOAuth2AuthSchemeService
- Parameters:
authSchemeId
-authSchemeRequest
- theCreateOrUpdateOAuth2AuthSchemeRequest
with the information to update the auth scheme. Returns error if the auth scheme does not exist.- Returns:
- a
CreateOrUpdateOAuth2AuthSchemeResponse
as it was updated.
-
deleteAuthScheme
Description copied from interface:OAuth2AuthSchemeService
Deletes theOAuth2AuthScheme
with the supplied auth scheme ID.- Specified by:
deleteAuthScheme
in interfaceOAuth2AuthSchemeService
- Parameters:
authSchemeId
- the auth scheme ID.
-
getAuthSchemeDao
-
setAuthSchemeDao
-
getValidationHelper
-
setValidationHelper
-