Package org.cyclos.security.users
Class InternalBasicUserServiceSecurity
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractNetworkedServerComponent
-
- org.cyclos.security.BaseServiceSecurity
-
- org.cyclos.security.users.InternalBasicUserServiceSecurity
-
- All Implemented Interfaces:
Service,InternalBasicUserService
@Security public class InternalBasicUserServiceSecurity extends BaseServiceSecurity implements InternalBasicUserService
Security layer forInternalBasicUserService.
-
-
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 InternalBasicUserServiceSecurity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchangeGroup(ChangeGroupDTO params)Changes the group of either a user or operatorBasicChangeGroupDatagetChangeGroupData(UserLocatorVO locator)Returns data to change the group of either a user or operatorBasicUserEditProfileData<?>getEditData(UserLocatorVO locator)Returns data to edit the profile fields of a given basic userSaveFullProfileDatagetEditFullProfileData(UserLocatorVO locator)Returns data for editing the full profile of either a regular user or operatorRolegetMainRole(UserLocatorVO locator)Returns the main role of the logged userAbstractViewProfileDatagetViewProfileData(@NotNull UserLocatorVO locator)Returns data for viewing profile of either a regular user or operator.voidremove(UserLocatorVO locator)Physically removes a pending user / operatorprotected EntityCheck<?>resolveEntityCheck()Must be implemented in order to return theEntityCheckmanaged by this security component, or null if nonevoidsave(UserLocatorVO locator, BasicUserDTO dto, String confirmationPassword)Saves the profile of a user or operatorSaveFullProfileResultsaveFullProfile(SaveFullProfileParams params)Saves the full profile of a user, returning the generated ids for created data.-
Methods inherited from class org.cyclos.security.BaseServiceSecurity
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initialize
-
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 void changeGroup(ChangeGroupDTO params)
Description copied from interface:InternalBasicUserServiceChanges the group of either a user or operator- Specified by:
changeGroupin interfaceInternalBasicUserService
-
getChangeGroupData
public BasicChangeGroupData getChangeGroupData(UserLocatorVO locator) throws FrameworkException
Description copied from interface:InternalBasicUserServiceReturns data to change the group of either a user or operator- Specified by:
getChangeGroupDatain interfaceInternalBasicUserService- Throws:
FrameworkException
-
getEditData
public BasicUserEditProfileData<?> getEditData(UserLocatorVO locator)
Description copied from interface:InternalBasicUserServiceReturns data to edit the profile fields of a given basic user- Specified by:
getEditDatain interfaceInternalBasicUserService
-
getEditFullProfileData
public SaveFullProfileData getEditFullProfileData(UserLocatorVO locator) throws FrameworkException
Description copied from interface:InternalBasicUserServiceReturns data for editing the full profile of either a regular user or operator- Specified by:
getEditFullProfileDatain interfaceInternalBasicUserService- Throws:
FrameworkException
-
getMainRole
public Role getMainRole(UserLocatorVO locator) throws FrameworkException
Description copied from interface:InternalBasicUserServiceReturns the main role of the logged user- Specified by:
getMainRolein interfaceInternalBasicUserService- Throws:
FrameworkException
-
getViewProfileData
public AbstractViewProfileData getViewProfileData(@NotNull @NotNull UserLocatorVO locator) throws FrameworkException
Description copied from interface:InternalBasicUserServiceReturns data for viewing profile of either a regular user or operator.- Specified by:
getViewProfileDatain interfaceInternalBasicUserService- Throws:
FrameworkException
-
remove
public void remove(UserLocatorVO locator)
Description copied from interface:InternalBasicUserServicePhysically removes a pending user / operator- Specified by:
removein interfaceInternalBasicUserService
-
save
public void save(UserLocatorVO locator, BasicUserDTO dto, String confirmationPassword)
Description copied from interface:InternalBasicUserServiceSaves the profile of a user or operator- Specified by:
savein interfaceInternalBasicUserService
-
saveFullProfile
public SaveFullProfileResult saveFullProfile(SaveFullProfileParams params) throws FrameworkException
Description copied from interface:InternalBasicUserServiceSaves the full profile of a user, returning the generated ids for created data.- Specified by:
saveFullProfilein interfaceInternalBasicUserService- Throws:
FrameworkException
-
resolveEntityCheck
protected EntityCheck<?> resolveEntityCheck()
Description copied from class:BaseServiceSecurityMust be implemented in order to return theEntityCheckmanaged by this security component, or null if none- Specified by:
resolveEntityCheckin classBaseServiceSecurity
-
-