LLookupVerbBuilder class
Local lookup verb builder generates a command to lookup value of atKey
stored in the secondary server.
e.g llookup key shared with alice
-
Lookup phone number available only to alice
-
When sharedWith is populated, throws InvalidAtKeyException if isPublic or isLocal is set to true
var builder = LLookupVerbBuilder()..sharedWith = '@alice'..key=’phone’..atSign=’bob’;
e.g llookup public key
-
Lookup email value that is available to everyone
-
When isPublic is set to true, throws InvalidAtKeyException if isLocal is set to true or sharedWith is populated
var builder = LLookupVerbBuilder()..key=’email’..atSign=’bob’..isPublic = true;
e.g llookup private key
- Lookup a credit card number that is accessible only by Bob
var builder = LLookupVerbBuilder()..sharedWith = '@bob'..key=’credit_card’..atSign=’bob’;
e.g. llookup a local key
-
Lookup a local key that is accessible only by bob
-
When isLocal is set to true, throws InvalidAtKeyException if isPublic or isCached is set true or sharedWith is populated
var builder = LLookupVerbBuilder()..key = 'password'..sharedBy = '@bob'..isLocal = true;
e.g. llookup a cached key
-
Lookup a cached key that shared by alice to bob
-
When isCached is set to true, throws InvalidAtKeyException if isLocal is set to true
var builder = LLookupVerbBuilder()
..isCached = true
..sharedWith = '@bob'
..key = 'phone'
..sharedBy = '@alice'
e.g. llookup a cached public key
- Lookup a cached key that is public key of alice
var builder = LLookupVerbBuilder()
..isCached = true
..isPublic = true
..key = 'aboutMe'
..sharedBy = '@alice'
- Implemented types
Constructors
Properties
Methods
-
buildCommand(
) → String -
Build the @ command to be sent to remote secondary for execution.
override
-
buildKey(
) → String -
checkParams(
) → bool -
Checks whether all params required by the verb builder are set. Returns false if
required params are not set.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validateKey(
) → void -
Validates the AtKey
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited