Package org.cyclos.impl.users
Class PrivacySettingsServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.users.PrivacySettingsServiceImpl
-
- All Implemented Interfaces:
PrivacySettingsServiceLocal,Service,PrivacySettingsService
@Service public class PrivacySettingsServiceImpl extends BaseServiceImpl implements PrivacySettingsServiceLocal
Implementation forPrivacySettingsService
-
-
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 PrivacySettingsServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<PrivacyControl>getControls(User user)Returns the enabled privacy controls for the given user.PrivacySettingsDatagetData(UserLocatorVO locator)Returns data for the given user's privacy settings.protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkvoidsave(PrivacySettingsDTO dto)Saves the given privacy settings-
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, toDate, toDateTime, validate
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
getControls
public Set<PrivacyControl> getControls(User user)
Description copied from interface:PrivacySettingsServiceLocalReturns the enabled privacy controls for the given user. Returns null when privacy control is disabled for this user.- Specified by:
getControlsin interfacePrivacySettingsServiceLocal
-
getData
public PrivacySettingsData getData(UserLocatorVO locator) throws FrameworkException
Description copied from interface:PrivacySettingsServiceReturns data for the given user's privacy settings. If the given user is null, assumes the logged user.- Specified by:
getDatain interfacePrivacySettingsService- Throws:
FrameworkException
-
save
public void save(PrivacySettingsDTO dto) throws FrameworkException
Description copied from interface:PrivacySettingsServiceSaves the given privacy settings- Specified by:
savein interfacePrivacySettingsService- 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
-
-