Interface MemberGroupVirtualAttributesModuleImplApi
- All Superinterfaces:
AttributesModuleImplApi
,MemberGroupAttributesModuleImplApi
,VirtualAttributesModuleImplApi
- All Known Implementing Classes:
MemberGroupVirtualAttributesModuleAbstract
,urn_perun_member_group_attribute_def_virt_groupStatus
,urn_perun_member_group_attribute_def_virt_groupStatusIndirect
,urn_perun_member_group_attribute_def_virt_isGroupAdmin
,urn_perun_member_group_attribute_def_virt_o365SendAs
,urn_perun_member_group_attribute_def_virt_o365SendOnBehalf
public interface MemberGroupVirtualAttributesModuleImplApi
extends MemberGroupAttributesModuleImplApi, VirtualAttributesModuleImplApi
This interface serves as a template for checking and filling in virtual attribute for a member in a specified group.
author: Oliver Mrazik version: 2015-04-16
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeValue
(PerunSessionImpl sess, Member member, Group group, AttributeDefinition attribute) This method will return computed value.boolean
removeAttributeValue
(PerunSessionImpl sess, Member member, Group group, AttributeDefinition attribute) Method remove attributes' value which are dependent on this virtual attribute.boolean
setAttributeValue
(PerunSessionImpl sess, Member member, Group group, Attribute attribute) Method sets attributes' values which are dependent on this virtual attribute.Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleImplApi
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.MemberGroupAttributesModuleImplApi
changedAttributeHook, checkAttributeSemantics, checkAttributeSyntax, fillAttribute
Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.VirtualAttributesModuleImplApi
getStrongDependencies
-
Method Details
-
getAttributeValue
Attribute getAttributeValue(PerunSessionImpl sess, Member member, Group group, AttributeDefinition attribute) This method will return computed value.- Parameters:
sess
- perun sessionmember
- member which is needed for computing the valuegroup
- group which is needed for computing the valueattribute
- attribute to operate on- Returns:
- attribute value
- Throws:
InternalErrorException
- if an exception is raised in particular implementation, the exception is wrapped in InternalErrorException
-
removeAttributeValue
boolean removeAttributeValue(PerunSessionImpl sess, Member member, Group group, AttributeDefinition attribute) Method remove attributes' value which are dependent on this virtual attribute.- Parameters:
sess
- perun sessionmember
- member which is needed for computing the valuegroup
- group which is needed for computing the valueattribute
- attribute to operate on- Returns:
true
if attribute was changed (deleted) orfalse
if attribute was not present in a first place
-
setAttributeValue
Method sets attributes' values which are dependent on this virtual attribute.- Parameters:
sess
- perun sessionmember
- member which is needed for computing the valuegroup
- group which is needed for computing the valueattribute
- attribute to operate on- Returns:
- true if attribute was really changed
-