Package org.ametys.cms.data
Class ReferencedContents
java.lang.Object
org.ametys.cms.data.ReferencedContents
Collection of
Content
referenced by an invert relation path-
Constructor Summary
ConstructorDescriptionReferencedContents
(ContentAttributeDefinition definition, Map<ContentValue, List<String>> addedContents, Map<ContentValue, List<String>> removedContents, Map<ContentValue, ContentValue> thirdPartyContents) Creates an instance ofReferencedContents
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve the content where to add the invert relationRetrieve the content where to add the invert relation, along with associated data pathsReturns the attribute definition.Retrieve the content where to remove the invert relationRetrieve the content where to remove the invert relation, along with associated data pathsReturns the contents which values will change due the current write operation.
They are typically contents involved in an single-valued invert relation.toString()
-
Constructor Details
-
ReferencedContents
public ReferencedContents(ContentAttributeDefinition definition, Map<ContentValue, List<String>> addedContents, Map<ContentValue, List<String>> removedContents, Map<ContentValue, ContentValue> thirdPartyContents) Creates an instance ofReferencedContents
- Parameters:
definition
- the definition of the attribute holding content referencesaddedContents
- the content where to add the invert relationremovedContents
- the content where to remove the invert relationthirdPartyContents
- other contents involded indirectly due to the write operation
-
-
Method Details
-
getDefinition
Returns the attribute definition.- Returns:
- the attribute definition.
-
getAddedContents
Retrieve the content where to add the invert relation- Returns:
- the content where to add the invert relation
-
getAddedContentsWithPaths
Retrieve the content where to add the invert relation, along with associated data paths- Returns:
- the content where to add the invert relation
-
getRemovedContents
Retrieve the content where to remove the invert relation- Returns:
- the content where to remove the invert relation
-
getRemovedContentsWithPaths
Retrieve the content where to remove the invert relation, along with associated data paths- Returns:
- the content where to remove the invert relation
-
getThirdPartyContents
Returns the contents which values will change due the current write operation.
They are typically contents involved in an single-valued invert relation. The key is the source content, the value is the referenced Content.- Returns:
- the involved contents
-
toString
-