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
ConstructorDescriptionGenDataProviderImpl
(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.void
Loads Facility attributes.void
loadGroupsAttributes
(Resource resource, List<Group> groups) Loads Group and Group-Resource attributes.void
loadMemberGroupAttributes
(Group group, List<Member> members) Loads Member-Group attributes.void
loadResourceAttributes
(Resource resource, List<Member> members, boolean loadVoAttributes) Loads Resource and Member specific attributes.
-
Constructor Details
-
GenDataProviderImpl
-
-
Method Details
-
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 interfaceGenDataProvider
- Returns:
- map of hashes attributes
-
getFacilityAttributesHashes
Description copied from interface:GenDataProvider
Return all hashes for facility attributes.- Specified by:
getFacilityAttributesHashes
in interfaceGenDataProvider
- Returns:
- list of hashes
-
getGroupAttributesHashes
Description copied from interface:GenDataProvider
Returns all hashes relevant for given group. Group and Group-Resource attributes.- Specified by:
getGroupAttributesHashes
in interfaceGenDataProvider
- Parameters:
resource
- resource used to get Group-Resource attributes.group
- group- Returns:
- list of hashes
-
getMemberAttributesHashes
Description copied from interface:GenDataProvider
Return all hashes relevant for given member. Member, User, Member-Resource, User-Facility.- Specified by:
getMemberAttributesHashes
in interfaceGenDataProvider
- Parameters:
resource
- resource used to get member-resource attributes hashmember
- given member- Returns:
- list of hashes
-
getMemberAttributesHashes
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 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: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 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:GenDataProvider
Loads Facility attributes.- Specified by:
loadFacilityAttributes
in interfaceGenDataProvider
-
loadGroupsAttributes
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 interfaceGenDataProvider
- Parameters:
resource
- resourcegroups
- groups
-
loadMemberGroupAttributes
Description copied from interface:GenDataProvider
Loads Member-Group attributes.- Specified by:
loadMemberGroupAttributes
in interfaceGenDataProvider
- Parameters:
group
- groupsmembers
- 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 interfaceGenDataProvider
- Parameters:
resource
- resourcemembers
- membersloadVoAttributes
- specifies, if the voAttributesShould be loaded as well.
-