Package org.cyclos.security.access
Class UserIdentityProviderServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.access.UserIdentityProviderServiceSecurity
-
- All Implemented Interfaces:
UserIdentityProviderService,Service
@Security public class UserIdentityProviderServiceSecurity extends BaseServiceSecurity implements UserIdentityProviderService
Security layer forUserIdentityProviderService
-
-
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 UserIdentityProviderServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable(UserLocatorVO locator, IdentityProviderVO provider)Marks the given identity provider as disabled for the user.UserIdentityProviderListDatagetListData(UserLocatorVO locator)Returns data with the current identity provider links, as well as related permissions.protected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if nonevoidunlink(UserLocatorVO locator, IdentityProviderVO provider)Removes the link between the user and the given provider.-
Methods inherited from class org.cyclos.security.BaseServiceSecurity
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initialize
-
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
-
disable
public void disable(UserLocatorVO locator, IdentityProviderVO provider) throws FrameworkException
Description copied from interface:UserIdentityProviderServiceMarks the given identity provider as disabled for the user. This means the provider cannot be used again for this user until it is marked as unlinked or manually linked again.- Specified by:
disablein interfaceUserIdentityProviderService- Throws:
FrameworkException
-
getListData
public UserIdentityProviderListData getListData(UserLocatorVO locator) throws FrameworkException
Description copied from interface:UserIdentityProviderServiceReturns data with the current identity provider links, as well as related permissions.- Specified by:
getListDatain interfaceUserIdentityProviderService- Throws:
FrameworkException
-
unlink
public void unlink(UserLocatorVO locator, IdentityProviderVO provider) throws FrameworkException
Description copied from interface:UserIdentityProviderServiceRemoves the link between the user and the given provider. No-op if the relation doesn't exist.- Specified by:
unlinkin interfaceUserIdentityProviderService- Throws:
FrameworkException
-
resolveEntityCheck
protected EntityCheck<?> resolveEntityCheck()
Description copied from class:BaseServiceSecurityMust be implemented in order to return theEntityCheckmanaged by this security component, or null if none- Specified by:
resolveEntityCheckin classBaseServiceSecurity
-
-