Package org.cyclos.impl.users
Class UserGroupServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.users.UserGroupServiceImpl
-
- All Implemented Interfaces:
UserGroupServiceLocal,Service,UserGroupService
@Service public class UserGroupServiceImpl extends BaseServiceImpl implements UserGroupServiceLocal
implementation forUserGroupService
-
-
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 UserGroupServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongchangeGroup(ChangeGroupDTO dto)Changes the group of a user, returning the identifier of the group change logUserGroupLogcreateInitialGroupHistoryLog(User user)Creates the initial group history log for the given userbooleanexistsInGroupHistoryLog(Long groupId)Checks if the group exists in the group history logChangeGroupDatagetChangeGroupData(UserLocatorVO locator)Gets the data needed to change the group of a user.protected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the network-
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
-
changeGroup
public Long changeGroup(ChangeGroupDTO dto)
Description copied from interface:UserGroupServiceChanges the group of a user, returning the identifier of the group change log- Specified by:
changeGroupin interfaceUserGroupService
-
createInitialGroupHistoryLog
public UserGroupLog createInitialGroupHistoryLog(User user)
Description copied from interface:UserGroupServiceLocalCreates the initial group history log for the given user- Specified by:
createInitialGroupHistoryLogin interfaceUserGroupServiceLocal
-
existsInGroupHistoryLog
public boolean existsInGroupHistoryLog(Long groupId)
Description copied from interface:UserGroupServiceLocalChecks if the group exists in the group history log- Specified by:
existsInGroupHistoryLogin interfaceUserGroupServiceLocal
-
getChangeGroupData
public ChangeGroupData getChangeGroupData(UserLocatorVO locator)
Description copied from interface:UserGroupServiceGets the data needed to change the group of a user.- Specified by:
getChangeGroupDatain interfaceUserGroupService
-
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
-
-