Package org.cyclos.impl.users
Class UserStatusServiceImpl
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.impl.BaseServiceImpl
-
- org.cyclos.impl.users.UserStatusServiceImpl
-
- All Implemented Interfaces:
UserStatusServiceLocal,Service,UserStatusService
@Service public class UserStatusServiceImpl extends BaseServiceImpl implements UserStatusServiceLocal
Implementation forUserStatusService
-
-
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 UserStatusServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeStatus(ChangeUserStatusParams params)Changes the status of a groupvoidcreateStatusLog(BasicUser user)Creates the initial status log for the userChangeUserStatusDatagetData(UserLocatorVO locator)Returns data displayed when changing / viewing a user statusList<UserStatus>getManagedStatuses()Returns the user statuses that the logged user can manageList<UserStatus>getPossibleNewStatuses(BasicUser basicUser)Returns the possible statuses a user can be set by the currently logged userList<UserStatus>getStatusesForUserSearch(boolean brokered)Return the visible statuses of the logged user by his permissionsprotected voidregisterNetworkMappings(NetworkPathRegistry networkPathRegistry)Needs to be overridden by subclasses to register the path up to the networkvoidsetInitialStatus(BasicUser basicUser)Sets the initial status, according to the user's group-
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
-
changeStatus
public void changeStatus(ChangeUserStatusParams params) throws FrameworkException
Description copied from interface:UserStatusServiceChanges the status of a group- Specified by:
changeStatusin interfaceUserStatusService- Throws:
IllegalActionException- If the given user is currentlyUserStatus.PENDINGorUserStatus.PURGEDFrameworkException
-
createStatusLog
public void createStatusLog(BasicUser user)
Description copied from interface:UserStatusServiceLocalCreates the initial status log for the user- Specified by:
createStatusLogin interfaceUserStatusServiceLocal
-
getData
public ChangeUserStatusData getData(UserLocatorVO locator) throws FrameworkException
Description copied from interface:UserStatusServiceReturns data displayed when changing / viewing a user status- Specified by:
getDatain interfaceUserStatusService- Throws:
FrameworkException
-
getManagedStatuses
public List<UserStatus> getManagedStatuses()
Description copied from interface:UserStatusServiceLocalReturns the user statuses that the logged user can manage- Specified by:
getManagedStatusesin interfaceUserStatusServiceLocal
-
getPossibleNewStatuses
public List<UserStatus> getPossibleNewStatuses(BasicUser basicUser)
Description copied from interface:UserStatusServiceLocalReturns the possible statuses a user can be set by the currently logged user- Specified by:
getPossibleNewStatusesin interfaceUserStatusServiceLocal
-
getStatusesForUserSearch
public List<UserStatus> getStatusesForUserSearch(boolean brokered)
Description copied from interface:UserStatusServiceLocalReturn the visible statuses of the logged user by his permissions- Specified by:
getStatusesForUserSearchin interfaceUserStatusServiceLocal
-
setInitialStatus
public void setInitialStatus(BasicUser basicUser)
Description copied from interface:UserStatusServiceLocalSets the initial status, according to the user's group- Specified by:
setInitialStatusin interfaceUserStatusServiceLocal
-
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
-
-