Package org.cyclos.impl.access
Class UserIdentityProviderServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.access.UserIdentityProviderServiceImpl
-
- All Implemented Interfaces:
UserIdentityProviderServiceLocal,UserIdentityProviderService,Service
@Service public class UserIdentityProviderServiceImpl extends BaseServiceImpl implements UserIdentityProviderServiceLocal
Implementation 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 UserIdentityProviderServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable(UserLocatorVO locator, IdentityProviderVO providerVO)Marks the given identity provider as disabled for the user.UserIdentityProviderget(IdentityProvider provider, String identifier)Returns the user / identity provider link for the given provider and identifierUserIdentityProviderget(BasicUser user, IdentityProvider provider)Returns the current link between the given user and identity provider, or null if no such link exists.UserIdentityProviderListDatagetListData(UserLocatorVO locator)Returns data with the current identity provider links, as well as related permissions.UserIdentityProviderlink(IdentityProvider provider, UserPrincipal principal, IdentityProviderProfile profile, boolean evenIfDisabled)Creates a link between the user and the identity provider.protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkvoidremoveAll(BasicUser basicUser)Removes any links to any providervoidunlink(UserLocatorVO locator, IdentityProviderVO providerVO)Removes the link between the user and the given provider.-
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
-
disable
public void disable(UserLocatorVO locator, IdentityProviderVO providerVO) 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
-
get
public UserIdentityProvider get(BasicUser user, IdentityProvider provider)
Description copied from interface:UserIdentityProviderServiceLocalReturns the current link between the given user and identity provider, or null if no such link exists.- Specified by:
getin interfaceUserIdentityProviderServiceLocal
-
get
public UserIdentityProvider get(IdentityProvider provider, String identifier)
Description copied from interface:UserIdentityProviderServiceLocalReturns the user / identity provider link for the given provider and identifier- Specified by:
getin interfaceUserIdentityProviderServiceLocal
-
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
-
link
public UserIdentityProvider link(IdentityProvider provider, UserPrincipal principal, IdentityProviderProfile profile, boolean evenIfDisabled)
Description copied from interface:UserIdentityProviderServiceLocalCreates a link between the user and the identity provider.- Specified by:
linkin interfaceUserIdentityProviderServiceLocal
-
removeAll
public void removeAll(BasicUser basicUser)
Description copied from interface:UserIdentityProviderServiceLocalRemoves any links to any provider- Specified by:
removeAllin interfaceUserIdentityProviderServiceLocal
-
unlink
public void unlink(UserLocatorVO locator, IdentityProviderVO providerVO) 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
-
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
-
-