Class MemberResourceAttributesModuleAbstract
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.MemberResourceAttributesModuleAbstract
- All Implemented Interfaces:
AttributesModuleImplApi
,MemberResourceAttributesModuleImplApi
- Direct Known Subclasses:
MemberResourceVirtualAttributesModuleAbstract
,urn_perun_member_resource_attribute_def_def_bucketQuota
,urn_perun_member_resource_attribute_def_def_bucketQuotaOverride
,urn_perun_member_resource_attribute_def_def_dataQuotas
,urn_perun_member_resource_attribute_def_def_dataQuotasOverride
,urn_perun_member_resource_attribute_def_def_fileQuotas
,urn_perun_member_resource_attribute_def_def_fileQuotasOverride
public abstract class MemberResourceAttributesModuleAbstract
extends AttributesModuleAbstract
implements MemberResourceAttributesModuleImplApi
Abstract class for Resource Member Attributes modules.
----------------------------------------------------------------------------- Implements methods for modules to
perform default function. In the function that the method in the module does nothing, it is not necessary to
implement it, simply extend this abstract class.
- Author:
- Michal Stava invalid input: '<'stavamichal@gmail.com>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
changedAttributeHook
(PerunSessionImpl session, Member member, Resource resource, Attribute attribute) If you need to do some further work with other modules, this method do thatvoid
checkAttributeSemantics
(PerunSessionImpl perunSession, Member member, Resource resource, Attribute attribute) This method checks semantics of Member's attribute value at a specified resource.void
checkAttributeSyntax
(PerunSessionImpl perunSession, Member member, Resource resource, Attribute attribute) This method checks syntax of Member's attribute value at a specified resource.fillAttribute
(PerunSessionImpl session, Member member, Resource resource, AttributeDefinition attribute) This method MAY fill Member's attributes at a specified resource.Methods inherited from class cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
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
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
-
Constructor Details
-
MemberResourceAttributesModuleAbstract
public MemberResourceAttributesModuleAbstract()
-
-
Method Details
-
changedAttributeHook
public void changedAttributeHook(PerunSessionImpl session, Member member, Resource resource, Attribute attribute) throws WrongReferenceAttributeValueException Description copied from interface:MemberResourceAttributesModuleImplApi
If you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHook
in interfaceMemberResourceAttributesModuleImplApi
- Parameters:
session
- sessionmember
- the memberresource
- the resourceattribute
- the attribute- Throws:
WrongReferenceAttributeValueException
- if there is problem to process the change hook because of the value of referenced attribute
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSessionImpl perunSession, Member member, Resource resource, Attribute attribute) throws WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:MemberResourceAttributesModuleImplApi
This method checks semantics of Member's attribute value at a specified resource.- Specified by:
checkAttributeSemantics
in interfaceMemberResourceAttributesModuleImplApi
- Parameters:
perunSession
- Perun sessionmember
- Memberresource
- Resourceattribute
- Attribute to be checked.- Throws:
WrongReferenceAttributeValueException
- if an referenced attribute against the parameter is to be compared is not availableWrongAttributeAssignmentException
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSessionImpl perunSession, Member member, Resource resource, Attribute attribute) throws WrongAttributeValueException Description copied from interface:MemberResourceAttributesModuleImplApi
This method checks syntax of Member's attribute value at a specified resource.- Specified by:
checkAttributeSyntax
in interfaceMemberResourceAttributesModuleImplApi
- Parameters:
perunSession
- Perun sessionmember
- Memberresource
- Resourceattribute
- Attribute to be checked.- Throws:
WrongAttributeValueException
- if the attribute value has wrong/illegal syntax
-
fillAttribute
public Attribute fillAttribute(PerunSessionImpl session, Member member, Resource resource, AttributeDefinition attribute) Description copied from interface:MemberResourceAttributesModuleImplApi
This method MAY fill Member's attributes at a specified resource.- Specified by:
fillAttribute
in interfaceMemberResourceAttributesModuleImplApi
- Parameters:
session
- Perun sessionmember
- Memberresource
- Resourceattribute
- Attribute to be filled in- Returns:
- Attribute which MAY be filled in.
-