Interface MemberResourceAttributesModuleImplApi
- All Superinterfaces:
AttributesModuleImplApi
- All Known Subinterfaces:
MemberResourceVirtualAttributesModuleImplApi
- All Known Implementing Classes:
MemberResourceAttributesModuleAbstract
,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
,urn_perun_member_resource_attribute_def_virt_bucketQuota
,urn_perun_member_resource_attribute_def_virt_dataQuotas
,urn_perun_member_resource_attribute_def_virt_fileQuotas
,urn_perun_member_resource_attribute_def_virt_groupStatus
,urn_perun_member_resource_attribute_def_virt_isBanned
This interface serves as a template for checking and fillind in attribute for a member at a specified Resource.
- Author:
- Lukáš Pravda invalid input: '<'luky.pravda@gmail.com>
-
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 perunSession, Member member, Resource resource, AttributeDefinition attribute) This method MAY fill Member's attributes at a specified resource.Methods inherited from interface cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleImplApi
getAttributeDefinition, getAuthorizedRoles, getDependencies, resolveVirtualAttributeValueChange
-
Method Details
-
changedAttributeHook
void changedAttributeHook(PerunSessionImpl session, Member member, Resource resource, Attribute attribute) throws WrongReferenceAttributeValueException If you need to do some further work with other modules, this method do that- Parameters:
session
- sessionmember
- the memberresource
- the resourceattribute
- the attribute- Throws:
InternalErrorException
- if there is any internal errorWrongReferenceAttributeValueException
- if there is problem to process the change hook because of the value of referenced attribute
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSessionImpl perunSession, Member member, Resource resource, Attribute attribute) throws WrongReferenceAttributeValueException, WrongAttributeAssignmentException This method checks semantics of Member's attribute value at a specified resource.- Parameters:
perunSession
- Perun sessionmember
- Memberresource
- Resourceattribute
- Attribute to be checked.- Throws:
InternalErrorException
- if an exception is raised in particular implementation, the exception is wrapped in InternalErrorExceptionWrongReferenceAttributeValueException
- if an referenced attribute against the parameter is to be compared is not availableWrongAttributeAssignmentException
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSessionImpl perunSession, Member member, Resource resource, Attribute attribute) throws WrongAttributeValueException This method checks syntax of Member's attribute value at a specified resource.- Parameters:
perunSession
- Perun sessionmember
- Memberresource
- Resourceattribute
- Attribute to be checked.- Throws:
InternalErrorException
- if an exception is raised in particular implementation, the exception is wrapped in InternalErrorExceptionWrongAttributeValueException
- if the attribute value has wrong/illegal syntax
-
fillAttribute
Attribute fillAttribute(PerunSessionImpl perunSession, Member member, Resource resource, AttributeDefinition attribute) This method MAY fill Member's attributes at a specified resource.- Parameters:
perunSession
- Perun sessionmember
- Memberresource
- Resourceattribute
- Attribute to be filled in- Returns:
- Attribute which MAY be filled in.
-