Class DefaultVirAttrHandler

    • Method Detail

      • setValues

        public void setValues​(Any<?> any,
                              ConnectorObject connObj)
        Description copied from interface: VirAttrHandler
        Updates cache with values from external resource.
        Specified by:
        setValues in interface VirAttrHandler
        Parameters:
        any - any object
        connObj - connector object from external resource
      • getValues

        public List<String> getValues​(Any<?> any,
                                      VirSchema schema)
        Description copied from interface: VirAttrHandler
        Query external resource (or cache, if configured) associated to the given any for values associated to the given virtual schema, not related to any membership.
        Specified by:
        getValues in interface VirAttrHandler
        Parameters:
        any - any object
        schema - virtual schema
        Returns:
        virtual attribute values, either for local cache or external resource, if resource is owned by the given any and associated to the given virtual schema; empty list otherwise.
      • getValues

        public List<String> getValues​(Any<?> any,
                                      Membership<?> membership,
                                      VirSchema schema)
        Description copied from interface: VirAttrHandler
        Query external resource (or cache, if configured) associated to the given any for values associated to the given virtual schema, for the given membership.
        Specified by:
        getValues in interface VirAttrHandler
        Parameters:
        any - any object
        membership - membership
        schema - virtual schema
        Returns:
        virtual attribute values, either for local cache or external resource, if resource is owned by the given any and associated to the given virtual schema; empty list otherwise.
      • getValues

        public Map<VirSchema,​List<String>> getValues​(Any<?> any)
        Description copied from interface: VirAttrHandler
        Query external resources (or cache, if configured) associated to the given any for values associated to all VirSchema instances in the AnyTypeClass associated to the given any, with no membership.
        Specified by:
        getValues in interface VirAttrHandler
        Parameters:
        any - any object
        Returns:
        virtual attribute values, either for local cache or external resources
      • getValues

        public Map<VirSchema,​List<String>> getValues​(Any<?> any,
                                                           Membership<?> membership)
        Description copied from interface: VirAttrHandler
        Query external resources (or cache, if configured) associated to the given any for values associated to all VirSchema instances in the AnyTypeClass associated to the given any, for the given membership.
        Specified by:
        getValues in interface VirAttrHandler
        Parameters:
        any - any object
        membership - membership
        Returns:
        virtual attribute values, either for local cache or external resources