Interface GroupResourceAttributesModuleImplApi
- All Superinterfaces:
AttributesModuleImplApi
- All Known Subinterfaces:
GroupResourceVirtualAttributesModuleImplApi
- All Known Implementing Classes:
GroupResourceAttributesModuleAbstract
,GroupResourceVirtualAttributesModuleAbstract
,urn_perun_group_resource_attribute_def_def_adName
,urn_perun_group_resource_attribute_def_def_drupalGroupType
,urn_perun_group_resource_attribute_def_def_isSystemUnixGroup
,urn_perun_group_resource_attribute_def_def_o365EmailAddresses_mu
,urn_perun_group_resource_attribute_def_def_projectDataLimit
,urn_perun_group_resource_attribute_def_def_projectDataQuota
,urn_perun_group_resource_attribute_def_def_projectDirPermissions
,urn_perun_group_resource_attribute_def_def_projectName
,urn_perun_group_resource_attribute_def_def_projectOwnerLogin
,urn_perun_group_resource_attribute_def_def_systemUnixGID
,urn_perun_group_resource_attribute_def_def_systemUnixGroupName
,urn_perun_group_resource_attribute_def_def_vomsGroupName
,urn_perun_group_resource_attribute_def_def_vomsRoles
,urn_perun_group_resource_attribute_def_virt_googleGroupName
,urn_perun_group_resource_attribute_def_virt_unixGID
,urn_perun_group_resource_attribute_def_virt_unixGroupName
This interface serves as a template for checking facilities attributes.
- Author:
- Milan Halenar invalid input: '<'mhalenar@gmail.com>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changedAttributeHook
(PerunSessionImpl session, Group group, Resource resource, Attribute attribute) If you need to do some further work with other modules, this method do thatvoid
checkAttributeSemantics
(PerunSessionImpl perunSession, Group group, Resource resource, Attribute attribute) Checks if value of this group-resource attribute has valid semantics.void
checkAttributeSyntax
(PerunSessionImpl perunSession, Group group, Resource resource, Attribute attribute) Checks if value of this group-resource attribute has valid syntax.fillAttribute
(PerunSessionImpl perunSession, Group group, Resource resource, AttributeDefinition attribute) This method MAY fill an attribute at the 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, Group group, Resource resource, Attribute attribute) If you need to do some further work with other modules, this method do that- Parameters:
session
- sessiongroup
- the groupresource
- the resourceattribute
- the attribute
-
checkAttributeSemantics
void checkAttributeSemantics(PerunSessionImpl perunSession, Group group, Resource resource, Attribute attribute) throws WrongAttributeAssignmentException, WrongReferenceAttributeValueException Checks if value of this group-resource attribute has valid semantics.- Parameters:
perunSession
- perun sessiongroup
- groupresource
- resource for which you want to check validity of attributeattribute
- attribute to check- Throws:
InternalErrorException
- if an exception is raised in particular implementation, the exception is wrapped in InternalErrorExceptionWrongAttributeAssignmentException
WrongReferenceAttributeValueException
-
checkAttributeSyntax
void checkAttributeSyntax(PerunSessionImpl perunSession, Group group, Resource resource, Attribute attribute) throws WrongAttributeValueException Checks if value of this group-resource attribute has valid syntax.- Parameters:
perunSession
- perun sessiongroup
- groupresource
- resource for which you want to check validity of attributeattribute
- attribute to check- 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, Group group, Resource resource, AttributeDefinition attribute) throws WrongAttributeAssignmentException This method MAY fill an attribute at the specified resource.- Parameters:
perunSession
- perun sessiongroup
- groupresource
- resource for which you want to check validity of attributeattribute
- attribute to fill in- Returns:
- Throws:
InternalErrorException
- if an exception is raised in particular implementation, the exception is wrapped in InternalErrorExceptionWrongAttributeAssignmentException
-