Class AbstractPermanentUnlockTriggerLockCommandBuilder<TCmd extends net.tpky.mc.tlcp.model.AbstractPermanentUnlockTriggerLockCommand,​T extends AbstractPermanentUnlockTriggerLockCommandBuilder<TCmd,​T>>

    • Constructor Detail

      • AbstractPermanentUnlockTriggerLockCommandBuilder

        public AbstractPermanentUnlockTriggerLockCommandBuilder()
    • 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.