Class AttributesModuleAbstract
java.lang.Object
cz.metacentrum.perun.core.implApi.modules.attributes.AttributesModuleAbstract
- All Implemented Interfaces:
AttributesModuleImplApi
- Direct Known Subclasses:
AbstractApplicationAutoRejectMessagesModule
,AbstractApplicationExpirationRulesModule
,AbstractMembershipExpirationRulesModule
,EntitylessAttributesModuleAbstract
,FacilityAttributesModuleAbstract
,GroupAttributesModuleAbstract
,GroupResourceAttributesModuleAbstract
,MemberAttributesModuleAbstract
,MemberGroupAttributesModuleAbstract
,MemberResourceAttributesModuleAbstract
,ResourceAttributesModuleAbstract
,UserAttributesModuleAbstract
,UserExtSourceAttributesModuleAbstract
,UserFacilityAttributesModuleAbstract
,VoAttributesModuleAbstract
Abstract class for all attributes modules
- Author:
- Michal Stava <stavamichal@gmail.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn attributes definition which is represented by the moduleReturn list of roles, which are authorized to work with this moduleGet list of attributes whose value are used in checking of validity of this attribute.resolveVirtualAttributeValueChange
(PerunSessionImpl perunSession, AuditEvent message) Gets message from auditer and resolves if it is needed to add another messages to DB about virtualAttribute changes.
-
Constructor Details
-
AttributesModuleAbstract
public AttributesModuleAbstract()
-
-
Method Details
-
getAttributeDefinition
Description copied from interface:AttributesModuleImplApi
Return attributes definition which is represented by the module- Specified by:
getAttributeDefinition
in interfaceAttributesModuleImplApi
- Returns:
- attribute definition
-
getAuthorizedRoles
Description copied from interface:AttributesModuleImplApi
Return list of roles, which are authorized to work with this module- Specified by:
getAuthorizedRoles
in interfaceAttributesModuleImplApi
- Returns:
- list of roles
-
getDependencies
Description copied from interface:AttributesModuleImplApi
Get list of attributes whose value are used in checking of validity of this attribute. In other words any change of these attributes' values can cause that value of this attribute is no longer valid.An attribute should depend on all attributes which values are used in method "checkAttributeSemantics" defined in attribute module.
- Specified by:
getDependencies
in interfaceAttributesModuleImplApi
- Returns:
- list of attributes this attribute depends on
- See Also:
-
resolveVirtualAttributeValueChange
public List<AuditEvent> resolveVirtualAttributeValueChange(PerunSessionImpl perunSession, AuditEvent message) throws WrongReferenceAttributeValueException, AttributeNotExistsException, WrongAttributeAssignmentException Description copied from interface:AttributesModuleImplApi
Gets message from auditer and resolves if it is needed to add another messages to DB about virtualAttribute changes.- Specified by:
resolveVirtualAttributeValueChange
in interfaceAttributesModuleImplApi
- Returns:
- list of additional messages for auditer to log it
- Throws:
WrongReferenceAttributeValueException
AttributeNotExistsException
WrongAttributeAssignmentException
-