public class SocialContextServiceImpl extends Object implements SocialContextService
Modifier and Type | Field and Description |
---|---|
static String |
AVATAR_LINK_ATTRIBUTE |
static String |
DISPLAY_NAME_ATTRIBUTE |
protected org.craftercms.commons.entitlements.validator.EntitlementValidator |
entitlementValidator |
static String |
FIRST_NAME_ATTRIBUTE |
static String |
LAST_NAME_ATTRIBUTE |
Constructor and Description |
---|
SocialContextServiceImpl() |
Modifier and Type | Method and Description |
---|---|
org.craftercms.profile.api.Profile |
addProfileToContext(String profileId,
String contextId,
String[] roles) |
SocialContext |
createNewContext(String contextName) |
Iterable<SocialContext> |
getAllContexts() |
org.craftercms.profile.api.Profile |
removeProfileFromContext(String contextId,
String profileId) |
void |
setContextPreferencesService(ContextPreferencesService contextPreferencesService) |
void |
setEntitlementValidator(org.craftercms.commons.entitlements.validator.EntitlementValidator entitlementValidator) |
void |
setProfileServiceRestClient(org.craftercms.profile.api.services.ProfileService profileService) |
void |
setSecurityActionsService(SecurityActionsService securityActionsService) |
void |
setSocialContextRepositoryImpl(SocialContextRepository socialContextRepository) |
public static final String FIRST_NAME_ATTRIBUTE
public static final String LAST_NAME_ATTRIBUTE
public static final String DISPLAY_NAME_ATTRIBUTE
public static final String AVATAR_LINK_ATTRIBUTE
protected org.craftercms.commons.entitlements.validator.EntitlementValidator entitlementValidator
public Iterable<SocialContext> getAllContexts() throws SocialException
getAllContexts
in interface SocialContextService
SocialException
public SocialContext createNewContext(String contextName) throws SocialException
createNewContext
in interface SocialContextService
SocialException
public org.craftercms.profile.api.Profile addProfileToContext(String profileId, String contextId, String[] roles) throws SocialException
addProfileToContext
in interface SocialContextService
SocialException
public org.craftercms.profile.api.Profile removeProfileFromContext(String contextId, String profileId) throws SocialException
removeProfileFromContext
in interface SocialContextService
SocialException
public void setSocialContextRepositoryImpl(SocialContextRepository socialContextRepository)
public void setSecurityActionsService(SecurityActionsService securityActionsService)
public void setProfileServiceRestClient(org.craftercms.profile.api.services.ProfileService profileService)
public void setContextPreferencesService(ContextPreferencesService contextPreferencesService)
public void setEntitlementValidator(org.craftercms.commons.entitlements.validator.EntitlementValidator entitlementValidator)
Copyright © 2023 CrafterCMS. All rights reserved.