public interface PinService extends Service
| Modifier and Type | Method and Description |
|---|---|
UserPinsData |
getData(UserLocatorVO locator)
Returns data regarding pins for the given user (null resolves to the logged user).
|
PinData |
getEditData(PinLocatorVO locator)
Returns data for editing a pin.
|
PasswordInputDTO |
getPasswordInputForCreate()
Return the password input required to create a pin for the logged user.
|
java.util.List<PinVO> |
list(UserLocatorVO locator)
Returns the list of device pins for the given user (null resolves to the logged user).
|
PinDetailedVO |
locate(PinLocatorVO locator)
Locates a device pin, either by id or principal.
|
void |
remove(PinLocatorVO locator,
CurrentCredentialsForPinManage currentCredentials)
Removes the given pin.
|
void |
save(@NotNull PinDTO dto)
Updates a given device pin for the logged user.
|
CreatePinDTO |
set(@NotNull SetPinParams params)
Creates a new pin or modify an existing for the logged user and associates it to the current principal type and
password type.
|
ValidationResult |
validate(@NotNull java.lang.String value)
Validates a value to be used as a pin for the logged user and the current channel.
|
UserPinsData getData(UserLocatorVO locator) throws FrameworkException
FrameworkExceptionPinData getEditData(PinLocatorVO locator) throws FrameworkException
locator - Optional if authenticated with a pin. Otherwise it must not be null.FrameworkExceptionPasswordInputDTO getPasswordInputForCreate() throws FrameworkException
FrameworkExceptionjava.util.List<PinVO> list(UserLocatorVO locator) throws FrameworkException
Permission.USER_PINS_VIEW permission.FrameworkExceptionPinDetailedVO locate(PinLocatorVO locator)
Permission.USER_PINS_VIEW permission must be grantedlocator - Optional if authenticated with a pin. Otherwise it must not be null.void remove(PinLocatorVO locator, CurrentCredentialsForPinManage currentCredentials) throws FrameworkException
Permission.USER_PINS_MANAGE permission must be
granted. For the pin owner the action must be confirmed with the current login password for the current channel
or the current pin.
Only one of these is mandatory to be given.locator - Optional if authenticated with a pin. Otherwise it must not be null.FrameworkExceptionvoid save(@NotNull
@NotNull PinDTO dto)
throws FrameworkException
ValidationExceptionFrameworkExceptionCreatePinDTO set(@NotNull @NotNull SetPinParams params) throws FrameworkException
FrameworkExceptionValidationResult validate(@NotNull @NotNull java.lang.String value) throws FrameworkException
FrameworkException