Class urn_perun_resource_attribute_def_virt_assignedGroups
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.ResourceAttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.ResourceVirtualAttributesModuleAbstract
cz.metacentrum.perun.core.impl.modules.attributes.urn_perun_resource_attribute_def_virt_assignedGroups
- All Implemented Interfaces:
AttributesModuleImplApi
,ResourceAttributesModuleImplApi
,ResourceVirtualAttributesModuleImplApi
,VirtualAttributesModuleImplApi
public class urn_perun_resource_attribute_def_virt_assignedGroups
extends ResourceVirtualAttributesModuleAbstract
implements ResourceVirtualAttributesModuleImplApi
Compute value of all groups assigned to the Resource and return list of their names. Name of group in the list is
like '[VO_SHORT_NAME]:[PARENT_GROUP_NAME]:[GROUP_NAME]'
If there is attribute 'resource:def:isAssignedWithSubgroups' set to true on the Resource, it will add all subgroups of assigned groups too.
- Author:
- Michal Stava <stavamichal@gmail.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn attributes definition which is represented by the modulegetAttributeValue
(PerunSessionImpl sess, Resource resource, AttributeDefinition attributeDefinition) This method will return computed value.Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.ResourceVirtualAttributesModuleAbstract
getStrongDependencies, removeAttributeValue, resolveVirtualAttributeValueChange, setAttributeValue
Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.ResourceAttributesModuleAbstract
changedAttributeHook, checkAttributeSemantics, checkAttributeSyntax, fillAttribute
Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
getAuthorizedRoles, getDependencies
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleImplApi
getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.ResourceAttributesModuleImplApi
changedAttributeHook, checkAttributeSemantics, checkAttributeSyntax, fillAttribute
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.ResourceVirtualAttributesModuleImplApi
removeAttributeValue, setAttributeValue
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.VirtualAttributesModuleImplApi
getStrongDependencies
-
Constructor Details
-
urn_perun_resource_attribute_def_virt_assignedGroups
public urn_perun_resource_attribute_def_virt_assignedGroups()
-
-
Method Details
-
getAttributeDefinition
Description copied from interface:AttributesModuleImplApi
Return attributes definition which is represented by the module- Specified by:
getAttributeDefinition
in interfaceAttributesModuleImplApi
- Overrides:
getAttributeDefinition
in classAttributesModuleAbstract
- Returns:
- attribute definition
-
getAttributeValue
public Attribute getAttributeValue(PerunSessionImpl sess, Resource resource, AttributeDefinition attributeDefinition) Description copied from interface:ResourceVirtualAttributesModuleImplApi
This method will return computed value.- Specified by:
getAttributeValue
in interfaceResourceVirtualAttributesModuleImplApi
- Overrides:
getAttributeValue
in classResourceVirtualAttributesModuleAbstract
- Parameters:
sess
- PerunSessionresource
- resource which is needed for computing the valueattributeDefinition
- attribute to operate on- Returns:
-