Class GroupResourceAttributesModuleAbstract
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
cz.metacentrum.perun.core.implApi.modules.attributes.GroupResourceAttributesModuleAbstract
- All Implemented Interfaces:
AttributesModuleImplApi
,GroupResourceAttributesModuleImplApi
- Direct Known Subclasses:
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
public abstract class GroupResourceAttributesModuleAbstract
extends AttributesModuleAbstract
implements GroupResourceAttributesModuleImplApi
Abstract class for Resource Group 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, 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 session, Group group, Resource resource, AttributeDefinition attribute) This method MAY fill an attribute at the 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
-
GroupResourceAttributesModuleAbstract
public GroupResourceAttributesModuleAbstract()
-
-
Method Details
-
changedAttributeHook
public void changedAttributeHook(PerunSessionImpl session, Group group, Resource resource, Attribute attribute) Description copied from interface:GroupResourceAttributesModuleImplApi
If you need to do some further work with other modules, this method do that- Specified by:
changedAttributeHook
in interfaceGroupResourceAttributesModuleImplApi
- Parameters:
session
- sessiongroup
- the groupresource
- the resourceattribute
- the attribute
-
checkAttributeSemantics
public void checkAttributeSemantics(PerunSessionImpl perunSession, Group group, Resource resource, Attribute attribute) throws WrongReferenceAttributeValueException, WrongAttributeAssignmentException Description copied from interface:GroupResourceAttributesModuleImplApi
Checks if value of this group-resource attribute has valid semantics.- Specified by:
checkAttributeSemantics
in interfaceGroupResourceAttributesModuleImplApi
- Parameters:
perunSession
- perun sessiongroup
- groupresource
- resource for which you want to check validity of attributeattribute
- attribute to check- Throws:
WrongAttributeAssignmentException
WrongReferenceAttributeValueException
-
checkAttributeSyntax
public void checkAttributeSyntax(PerunSessionImpl perunSession, Group group, Resource resource, Attribute attribute) throws WrongAttributeValueException Description copied from interface:GroupResourceAttributesModuleImplApi
Checks if value of this group-resource attribute has valid syntax.- Specified by:
checkAttributeSyntax
in interfaceGroupResourceAttributesModuleImplApi
- Parameters:
perunSession
- perun sessiongroup
- groupresource
- resource for which you want to check validity of attributeattribute
- attribute to check- Throws:
WrongAttributeValueException
- if the attribute value has wrong/illegal syntax
-
fillAttribute
public Attribute fillAttribute(PerunSessionImpl session, Group group, Resource resource, AttributeDefinition attribute) throws WrongAttributeAssignmentException Description copied from interface:GroupResourceAttributesModuleImplApi
This method MAY fill an attribute at the specified resource.- Specified by:
fillAttribute
in interfaceGroupResourceAttributesModuleImplApi
- Parameters:
session
- perun sessiongroup
- groupresource
- resource for which you want to check validity of attributeattribute
- attribute to fill in- Returns:
- Throws:
WrongAttributeAssignmentException
-