Package org.cyclos.impl.access
Class OidcAuthorizationServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.access.OidcAuthorizationServiceImpl
-
- All Implemented Interfaces:
OidcAuthorizationServiceLocal,OidcAuthorizationService,Service
@Service public class OidcAuthorizationServiceImpl extends BaseServiceImpl implements OidcAuthorizationServiceLocal
Implementation forOidcAuthorizationService
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
authHandler, conversionHandler, customFieldValueHandler, entityManagerHandler, groupsHandler, productsHandler, restBeanPropertyMapping, userLocatorHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description OidcAuthorizationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OidcAuthorizationSearchDatagetSearchData(UserLocatorVO locator)Returns data for searching authorizations.OidcAuthorizationDetailedVOload(@NotNull Long id)Returns details of a specific authorizationprotected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkvoidrevoke(Long id)Revokes an authorization by idPage<OidcAuthorizationVO>search(OidcAuthorizationQuery params)Searches for active authorizations according to the given filtersScopeVOtoScopeVO(Scope scope, OidcAuthorization auth)Returns aScopeVOwith display name for the given authorization.-
Methods inherited from class org.cyclos.impl.BaseServiceImpl
initializeNetworkMappings
-
Methods inherited from class org.cyclos.impl.AbstractNetworkedServerComponent
canManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, setAlreadyValidated, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, dataTranslationProxy, delete, detach, doDataTranslationProxy, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
getSearchData
public OidcAuthorizationSearchData getSearchData(UserLocatorVO locator) throws FrameworkException
Description copied from interface:OidcAuthorizationServiceReturns data for searching authorizations. If the given user is null, is an overview serach- Specified by:
getSearchDatain interfaceOidcAuthorizationService- Throws:
FrameworkException
-
load
public OidcAuthorizationDetailedVO load(@NotNull @NotNull Long id) throws FrameworkException
Description copied from interface:OidcAuthorizationServiceReturns details of a specific authorization- Specified by:
loadin interfaceOidcAuthorizationService- Throws:
FrameworkException
-
revoke
public void revoke(Long id) throws FrameworkException
Description copied from interface:OidcAuthorizationServiceRevokes an authorization by id- Specified by:
revokein interfaceOidcAuthorizationService- Throws:
FrameworkException
-
search
public Page<OidcAuthorizationVO> search(OidcAuthorizationQuery params) throws FrameworkException
Description copied from interface:OidcAuthorizationServiceSearches for active authorizations according to the given filters- Specified by:
searchin interfaceOidcAuthorizationService- Throws:
FrameworkException
-
toScopeVO
public ScopeVO toScopeVO(Scope scope, OidcAuthorization auth)
Description copied from interface:OidcAuthorizationServiceLocalReturns aScopeVOwith display name for the given authorization. Some scopes don't have a display name, and shouldn't be ever shown to users.- Specified by:
toScopeVOin interfaceOidcAuthorizationServiceLocal
-
registerNetworkMappings
protected void registerNetworkMappings(NetworkPathRegistry networkPathRegistry)
Description copied from class:BaseServiceImplNeeds to be overridden by subclasses to register the path up to the network- Specified by:
registerNetworkMappingsin classBaseServiceImpl
-
-