Package org.cyclos.services.users
Interface InternalBasicUserService
-
- All Superinterfaces:
Service
- All Known Subinterfaces:
InternalBasicUserServiceLocal
- All Known Implementing Classes:
InternalBasicUserServiceImpl,InternalBasicUserServiceSecurity
public interface InternalBasicUserService extends Service
Internal service which can handle both regular users and operators
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchangeGroup(@NotNull ChangeGroupDTO params)Changes the group of either a user or operatorBasicChangeGroupDatagetChangeGroupData(@NotNull UserLocatorVO locator)Returns data to change the group of either a user or operatorBasicUserEditProfileData<?>getEditData(@NotNull UserLocatorVO locator)Returns data to edit the profile fields of a given basic userSaveFullProfileDatagetEditFullProfileData(@NotNull 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(@NotNull UserLocatorVO locator)Physically removes a pending user / operatorvoidsave(@NotNull UserLocatorVO locator, BasicUserDTO dto, String confirmationPassword)Saves the profile of a user or operatorSaveFullProfileResultsaveFullProfile(@NotNull SaveFullProfileParams params)Saves the full profile of a user, returning the generated ids for created data.
-
-
-
Method Detail
-
changeGroup
void changeGroup(@NotNull @NotNull ChangeGroupDTO params) throws FrameworkExceptionChanges the group of either a user or operator- Throws:
FrameworkException
-
getChangeGroupData
BasicChangeGroupData getChangeGroupData(@NotNull @NotNull UserLocatorVO locator) throws FrameworkException
Returns data to change the group of either a user or operator- Throws:
FrameworkException
-
getEditData
BasicUserEditProfileData<?> getEditData(@NotNull @NotNull UserLocatorVO locator) throws FrameworkException
Returns data to edit the profile fields of a given basic user- Throws:
FrameworkException
-
getEditFullProfileData
SaveFullProfileData getEditFullProfileData(@NotNull @NotNull UserLocatorVO locator) throws FrameworkException
Returns data for editing the full profile of either a regular user or operator- Throws:
FrameworkException
-
getMainRole
Role getMainRole(UserLocatorVO locator) throws FrameworkException
Returns the main role of the logged user- Throws:
FrameworkException
-
getViewProfileData
AbstractViewProfileData getViewProfileData(@NotNull @NotNull UserLocatorVO locator) throws FrameworkException
Returns data for viewing profile of either a regular user or operator.- Throws:
FrameworkException
-
remove
void remove(@NotNull @NotNull UserLocatorVO locator)Physically removes a pending user / operator
-
save
void save(@NotNull @NotNull UserLocatorVO locator, BasicUserDTO dto, String confirmationPassword) throws FrameworkExceptionSaves the profile of a user or operator- Throws:
FrameworkException
-
saveFullProfile
SaveFullProfileResult saveFullProfile(@NotNull @NotNull SaveFullProfileParams params) throws FrameworkException
Saves the full profile of a user, returning the generated ids for created data.- Throws:
SaveFullProfileException- Any captured exception is thrown in an aggregated exception. All exceptions are returned in the exact same position as the input data. For example, when creating land-line phones, if the third created phone raises an exception, thecreateLandLinePhonesfield will contain 2 nulls and the exception as third element. All data is previously validated, hence, it is possible that lots ofValidationExceptions are returned. Any other exception will be when actually saving. In this case there will be only one wrapped exception, but in the correct position.FrameworkException
-
-