Class GenDataProviderImpl

java.lang.Object
cz.metacentrum.perun.core.provisioning.GenDataProviderImpl
All Implemented Interfaces:
GenDataProvider

public class GenDataProviderImpl extends Object implements GenDataProvider
Author:
Vojtech Sassmann <vojtech.sassmann@gmail.com>
  • Constructor Details

  • Method Details

    • getAllFetchedAttributes

      public Map<String,Map<String,Object>> getAllFetchedAttributes()
      Description copied from interface: GenDataProvider
      Returns map of all loaded attributes grouped by their hashes. Returns only non-empty lists, and only lists, for which their hashes has been returned, by some get.*attributesHashes method.
      Specified by:
      getAllFetchedAttributes in interface GenDataProvider
      Returns:
      map of hashes attributes
    • getFacilityAttributesHashes

      public List<String> getFacilityAttributesHashes()
      Description copied from interface: GenDataProvider
      Return all hashes for facility attributes.
      Specified by:
      getFacilityAttributesHashes in interface GenDataProvider
      Returns:
      list of hashes
    • getGroupAttributesHashes

      public List<String> getGroupAttributesHashes(Resource resource, Group group)
      Description copied from interface: GenDataProvider
      Returns all hashes relevant for given group. Group and Group-Resource attributes.
      Specified by:
      getGroupAttributesHashes in interface GenDataProvider
      Parameters:
      resource - resource used to get Group-Resource attributes.
      group - group
      Returns:
      list of hashes
    • getMemberAttributesHashes

      public List<String> getMemberAttributesHashes(Resource resource, Member member)
      Description copied from interface: GenDataProvider
      Return all hashes relevant for given member. Member, User, Member-Resource, User-Facility.
      Specified by:
      getMemberAttributesHashes in interface GenDataProvider
      Parameters:
      resource - resource used to get member-resource attributes hash
      member - given member
      Returns:
      list of hashes
    • getMemberAttributesHashes

      public List<String> getMemberAttributesHashes(Resource resource, Member member, Group group)
      Description copied from interface: GenDataProvider
      Return all hashes relevant for given member. Member, User, Member-Resource, User-Facility and Member-Group.
      Specified by:
      getMemberAttributesHashes in interface GenDataProvider
      Parameters:
      resource - resource used to get member-resource attributes hash
      member - given member
      group - group used to get member-group attributes
      Returns:
      list of hashes
    • getResourceAttributesHashes

      public List<String> getResourceAttributesHashes(Resource resource, boolean addVoAttributes)
      Description copied from interface: GenDataProvider
      Return all hashes for given resource attributes. If addVoAttributes is true, also adds a hash for resource's vo attributes, if they are not empty.
      Specified by:
      getResourceAttributesHashes in interface GenDataProvider
      Parameters:
      resource - resource
      addVoAttributes - if true, add also vo attributes hash, if not empty
      Returns:
      list of hashes
    • loadFacilityAttributes

      public void loadFacilityAttributes()
      Description copied from interface: GenDataProvider
      Loads Facility attributes.
      Specified by:
      loadFacilityAttributes in interface GenDataProvider
    • loadGroupsAttributes

      public void loadGroupsAttributes(Resource resource, List<Group> groups)
      Description copied from interface: GenDataProvider
      Loads Group and Group-Resource attributes. Group attributes are loaded only for groups that has not been already loaded.
      Specified by:
      loadGroupsAttributes in interface GenDataProvider
      Parameters:
      resource - resource
      groups - groups
    • loadMemberGroupAttributes

      public void loadMemberGroupAttributes(Group group, List<Member> members)
      Description copied from interface: GenDataProvider
      Loads Member-Group attributes.
      Specified by:
      loadMemberGroupAttributes in interface GenDataProvider
      Parameters:
      group - groups
      members - members
    • loadResourceAttributes

      public void loadResourceAttributes(Resource resource, List<Member> members, boolean loadVoAttributes)
      Description copied from interface: GenDataProvider
      Loads Resource and Member specific attributes. Resouce, Member, User, User-Facility (if not already loaded). Resource-Member (always) Vo - if specified by loadVoAttributes
      Specified by:
      loadResourceAttributes in interface GenDataProvider
      Parameters:
      resource - resource
      members - members
      loadVoAttributes - specifies, if the voAttributesShould be loaded as well.