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 SummaryConstructorsConstructorDescriptionGenDataProviderImpl(PerunSessionImpl sess, Service service, Facility facility) 
- 
Method SummaryModifier 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- 
getAllFetchedAttributesDescription 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 interface- GenDataProvider
- Returns:
- map of hashes attributes
 
- 
getFacilityAttributesHashesDescription copied from interface:GenDataProviderReturn all hashes for facility attributes.- Specified by:
- getFacilityAttributesHashesin interface- GenDataProvider
- Returns:
- list of hashes
 
- 
getGroupAttributesHashesDescription copied from interface:GenDataProviderReturns all hashes relevant for given group. Group and Group-Resource attributes.- Specified by:
- getGroupAttributesHashesin interface- GenDataProvider
- Parameters:
- resource- resource used to get Group-Resource attributes.
- group- group
- Returns:
- list of hashes
 
- 
getMemberAttributesHashesDescription copied from interface:GenDataProviderReturn all hashes relevant for given member. Member, User, Member-Resource, User-Facility.- Specified by:
- getMemberAttributesHashesin interface- GenDataProvider
- Parameters:
- resource- resource used to get member-resource attributes hash
- member- given member
- Returns:
- list of hashes
 
- 
getMemberAttributesHashesDescription copied from interface:GenDataProviderReturn all hashes relevant for given member. Member, User, Member-Resource, User-Facility and Member-Group.- Specified by:
- getMemberAttributesHashesin 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
 
- 
getResourceAttributesHashesDescription 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 interface- GenDataProvider
- Parameters:
- resource- resource
- addVoAttributes- if true, add also vo attributes hash, if not empty
- Returns:
- list of hashes
 
- 
loadFacilityAttributespublic void loadFacilityAttributes()Description copied from interface:GenDataProviderLoads Facility attributes.- Specified by:
- loadFacilityAttributesin interface- GenDataProvider
 
- 
loadGroupsAttributesDescription 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 interface- GenDataProvider
- Parameters:
- resource- resource
- groups- groups
 
- 
loadMemberGroupAttributesDescription copied from interface:GenDataProviderLoads Member-Group attributes.- Specified by:
- loadMemberGroupAttributesin interface- GenDataProvider
- Parameters:
- group- groups
- members- members
 
- 
loadResourceAttributespublic 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 interface- GenDataProvider
- Parameters:
- resource- resource
- members- members
- loadVoAttributes- specifies, if the voAttributesShould be loaded as well.
 
 
-