Class GenDataProviderImpl
java.lang.Object
cz.metacentrum.perun.core.provisioning.GenDataProviderImpl
- All Implemented Interfaces:
GenDataProvider
- Author:
- Vojtech Sassmann invalid input: '<'vojtech.sassmann@gmail.com>
-
Constructor Summary
ConstructorsConstructorDescriptionGenDataProviderImpl(PerunSessionImpl sess, Service service, Facility facility) -
Method Summary
Modifier and TypeMethodDescriptionReturns map of all loaded attributes grouped by their hashes.Return all hashes for facility attributes.getGroupAttributesHashes(Resource resource, Group group) Returns all hashes relevant for given group.getMemberAttributesHashes(Resource resource, Member member) Return all hashes relevant for given member.getMemberAttributesHashes(Resource resource, Member member, Group group) Return all hashes relevant for given member.getResourceAttributesHashes(Resource resource, boolean addVoAttributes) Return all hashes for given resource attributes.voidLoads Facility attributes.voidloadGroupsAttributes(Resource resource, List<Group> groups) Loads Group and Group-Resource attributes.voidloadMemberGroupAttributes(Group group, List<Member> members) Loads Member-Group attributes.voidloadResourceAttributes(Resource resource, List<Member> members, boolean loadVoAttributes) Loads Resource and Member specific attributes.
-
Constructor Details
-
GenDataProviderImpl
-
-
Method Details
-
getAllFetchedAttributes
Description copied from interface:GenDataProviderReturns 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:
getAllFetchedAttributesin interfaceGenDataProvider- Returns:
- map of hashes attributes
-
getFacilityAttributesHashes
Description copied from interface:GenDataProviderReturn all hashes for facility attributes.- Specified by:
getFacilityAttributesHashesin interfaceGenDataProvider- Returns:
- list of hashes
-
getGroupAttributesHashes
Description copied from interface:GenDataProviderReturns all hashes relevant for given group. Group and Group-Resource attributes.- Specified by:
getGroupAttributesHashesin interfaceGenDataProvider- Parameters:
resource- resource used to get Group-Resource attributes.group- group- Returns:
- list of hashes
-
getMemberAttributesHashes
Description copied from interface:GenDataProviderReturn all hashes relevant for given member. Member, User, Member-Resource, User-Facility.- Specified by:
getMemberAttributesHashesin interfaceGenDataProvider- Parameters:
resource- resource used to get member-resource attributes hashmember- given member- Returns:
- list of hashes
-
getMemberAttributesHashes
Description copied from interface:GenDataProviderReturn all hashes relevant for given member. Member, User, Member-Resource, User-Facility and Member-Group.- Specified by:
getMemberAttributesHashesin interfaceGenDataProvider- Parameters:
resource- resource used to get member-resource attributes hashmember- given membergroup- group used to get member-group attributes- Returns:
- list of hashes
-
getResourceAttributesHashes
Description copied from interface:GenDataProviderReturn 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:
getResourceAttributesHashesin interfaceGenDataProvider- Parameters:
resource- resourceaddVoAttributes- if true, add also vo attributes hash, if not empty- Returns:
- list of hashes
-
loadFacilityAttributes
public void loadFacilityAttributes()Description copied from interface:GenDataProviderLoads Facility attributes.- Specified by:
loadFacilityAttributesin interfaceGenDataProvider
-
loadGroupsAttributes
Description copied from interface:GenDataProviderLoads Group and Group-Resource attributes. Group attributes are loaded only for groups that has not been already loaded.- Specified by:
loadGroupsAttributesin interfaceGenDataProvider- Parameters:
resource- resourcegroups- groups
-
loadMemberGroupAttributes
Description copied from interface:GenDataProviderLoads Member-Group attributes.- Specified by:
loadMemberGroupAttributesin interfaceGenDataProvider- Parameters:
group- groupsmembers- members
-
loadResourceAttributes
public void loadResourceAttributes(Resource resource, List<Member> members, boolean loadVoAttributes) Description copied from interface:GenDataProviderLoads Resource and Member specific attributes. Resouce, Member, User, User-Facility (if not already loaded). Resource-Member (always) Vo - if specified by loadVoAttributes- Specified by:
loadResourceAttributesin interfaceGenDataProvider- Parameters:
resource- resourcemembers- membersloadVoAttributes- specifies, if the voAttributesShould be loaded as well.
-