public class GDPRPolicy
extends java.lang.Object
This class encapsulates the GDPR-related settings and rules associated with a specific entity. It parses and stores information from the <gdpr> subnode within entity declarations in the schema XML, including:
Constructor and Description |
---|
GDPRPolicy(EntityI entity,
electric.xml.Element element)
Constructs a GDPRPolicy for the given entity.
|
Modifier and Type | Method and Description |
---|---|
void |
checkValidPaths()
Checks if all defined paths represent valid attribute paths.
|
java.util.Set<java.lang.String> |
getAffectedPersonPaths()
Returns the set of paths to affected person information.
|
DataCategory |
getDataCategory()
Returns the data category associated with this GDPR policy.
|
java.lang.String |
getRetentionStartDatePath()
Returns the path to the retention start date.
|
java.util.Set<java.lang.String> |
getRetentionVetoPaths()
Returns the set of paths to objects within the entity that are eligible to utter a retention veto.
|
void |
parseXML()
Parses the GDPR policy configuration from the given XML element.
|
public GDPRPolicy(EntityI entity, electric.xml.Element element)
entity
- The entity to which this policy applies.element
- The XML element representing the <gdpr> node.public void parseXML()
EntityDefinitionException
- If the XML structure or content is invalid.public void checkValidPaths()
EntityDefinitionException
- If one of the defined paths does not represent a valid attribute path.public DataCategory getDataCategory()
public java.util.Set<java.lang.String> getAffectedPersonPaths()
public java.util.Set<java.lang.String> getRetentionVetoPaths()
public java.lang.String getRetentionStartDatePath()
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.