Package com.tapkey.mobile.tlcp.commands
Class AbstractPermanentUnlockTriggerLockCommandBuilder<TCmd extends net.tpky.mc.tlcp.model.AbstractPermanentUnlockTriggerLockCommand,T extends AbstractPermanentUnlockTriggerLockCommandBuilder<TCmd,T>>
- java.lang.Object
-
- com.tapkey.mobile.tlcp.commands.AbstractCommandBuilder<TCmd,T>
-
- com.tapkey.mobile.tlcp.commands.AbstractTriggerLockCommandBuilder<TCmd,T>
-
- com.tapkey.mobile.tlcp.commands.AbstractPermanentUnlockTriggerLockCommandBuilder<TCmd,T>
-
- Direct Known Subclasses:
PermanentToggleTriggerLockCommandBuilder
,PermanentUnlockTriggerLockCommandBuilder
public abstract class AbstractPermanentUnlockTriggerLockCommandBuilder<TCmd extends net.tpky.mc.tlcp.model.AbstractPermanentUnlockTriggerLockCommand,T extends AbstractPermanentUnlockTriggerLockCommandBuilder<TCmd,T>> extends AbstractTriggerLockCommandBuilder<TCmd,T>
-
-
Constructor Summary
Constructors Constructor Description AbstractPermanentUnlockTriggerLockCommandBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
getDurationSec()
Date
getUntilUtc()
protected net.tpky.mc.tlcp.model.TkDateTime
getUntilUtcTkDateTime()
boolean
isAllowDurationReduction()
T
setAllowDurationReduction(boolean allowDurationReduction)
Specifies, whether the locking device is allowed to reduce the requested unlock duration or until date if the specified value isn't in line with the permission granted to the user.T
setDurationSec(Integer durationSec)
Sets the duration in seconds for how long the locking device should stay unlocked.T
setUntilUtc(Date untilUtc)
Sets the time in UTC until when the locking device should stay open.-
Methods inherited from class com.tapkey.mobile.tlcp.commands.AbstractTriggerLockCommandBuilder
getCustomCommandData, setCustomCommandData
-
Methods inherited from class com.tapkey.mobile.tlcp.commands.AbstractCommandBuilder
build, getCallerData, getThis, setCallerData
-
-
-
-
Method Detail
-
getDurationSec
public Integer getDurationSec()
-
getUntilUtc
public Date getUntilUtc()
-
getUntilUtcTkDateTime
protected net.tpky.mc.tlcp.model.TkDateTime getUntilUtcTkDateTime()
-
isAllowDurationReduction
public boolean isAllowDurationReduction()
-
setDurationSec
public T setDurationSec(Integer durationSec)
Sets the duration in seconds for how long the locking device should stay unlocked. This property is mutually exclusive with the untilUtc property. If none of both properties are set, an indefinite unlock is requested.
-
setUntilUtc
public T setUntilUtc(Date untilUtc)
Sets the time in UTC until when the locking device should stay open. This property is mutually exclusive with the duration property. If none of both properties are set, an indefinite unlock is requested.
-
setAllowDurationReduction
public T setAllowDurationReduction(boolean allowDurationReduction)
Specifies, whether the locking device is allowed to reduce the requested unlock duration or until date if the specified value isn't in line with the permission granted to the user. If the locking device detects a violation and this value is set to true, it will reduce the requested duration to the maximum value that is in line with the user's permission. If set to false, the locking device would reject command execution. E.g. if the command request indefinite unlock but the key only allows an unlock duration of 1 hour, the unlock duration would automatically be adjusted by the locking device, if this property is set to true.
-
-