Package org.ametys.cms.data
Class ReferencedContents
- java.lang.Object
-
- org.ametys.cms.data.ReferencedContents
-
public class ReferencedContents extends Object
Collection ofContent
referenced by an invert relation path
-
-
Constructor Summary
Constructors Constructor Description ReferencedContents(ContentAttributeDefinition definition, Map<ContentValue,List<String>> addedContents, Map<ContentValue,List<String>> removedContents, Map<ContentValue,ContentValue> thirdPartyContents)
Creates an instance ofReferencedContents
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ContentValue>
getAddedContents()
Retrieve the content where to add the invert relationMap<ContentValue,List<String>>
getAddedContentsWithPaths()
Retrieve the content where to add the invert relation, along with associated data pathsContentAttributeDefinition
getDefinition()
Returns the attribute definition.Set<ContentValue>
getRemovedContents()
Retrieve the content where to remove the invert relationMap<ContentValue,List<String>>
getRemovedContentsWithPaths()
Retrieve the content where to remove the invert relation, along with associated data pathsMap<ContentValue,ContentValue>
getThirdPartyContents()
Returns the contents which values will change due the current write operation.
They are typically contents involved in an single-valued invert relation.String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
getDefinition
public ContentAttributeDefinition getDefinition()
Returns the attribute definition.- Returns:
- the attribute definition.
-
getAddedContents
public Set<ContentValue> getAddedContents()
Retrieve the content where to add the invert relation- Returns:
- the content where to add the invert relation
-
getAddedContentsWithPaths
public Map<ContentValue,List<String>> 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
public Set<ContentValue> getRemovedContents()
Retrieve the content where to remove the invert relation- Returns:
- the content where to remove the invert relation
-
getRemovedContentsWithPaths
public Map<ContentValue,List<String>> 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
public Map<ContentValue,ContentValue> 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
-
-