Record Class WUsedImpact

java.lang.Object
java.lang.Record
fr.becpg.repo.entity.version.WUsedImpact
Record Components:
entityNodeRef - the entity whose where used entities get a new version
versionType - the version type of the where used entities
description - the description of the new versions
effectiveDate - the effective date of the change, null for none
wUsedAssocs - the prefixed names of the associations the where used is propagated through, on top of the default association of the entity, empty for none

public record WUsedImpact(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, org.alfresco.service.cmr.version.VersionType versionType, String description, Date effectiveDate, List<String> wUsedAssocs) extends Record
Describes the impact of a new version of an entity on the entities using it.
  • Field Details

    • entityNodeRef

      private final org.alfresco.service.cmr.repository.NodeRef entityNodeRef
      The field for the entityNodeRef record component.
    • versionType

      private final org.alfresco.service.cmr.version.VersionType versionType
      The field for the versionType record component.
    • description

      private final String description
      The field for the description record component.
    • effectiveDate

      private final Date effectiveDate
      The field for the effectiveDate record component.
    • wUsedAssocs

      private final List<String> wUsedAssocs
      The field for the wUsedAssocs record component.
    • ASSOCS_SEPARATOR

      private static final String ASSOCS_SEPARATOR
      See Also:
  • Constructor Details

    • WUsedImpact

      public WUsedImpact(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, org.alfresco.service.cmr.version.VersionType versionType, String description, Date effectiveDate, List<String> wUsedAssocs)
      Replaces missing associations by none.
    • WUsedImpact

      public WUsedImpact(org.alfresco.service.cmr.repository.NodeRef entityNodeRef, org.alfresco.service.cmr.version.VersionType versionType, String description, Date effectiveDate)
      Builds an impact propagated through the default association of the entity only.
      Parameters:
      entityNodeRef - the entity whose where used entities get a new version
      versionType - the version type of the where used entities
      description - the description of the new versions
      effectiveDate - the effective date of the change, null for none
  • Method Details

    • parseWUsedAssocs

      public static List<String> parseWUsedAssocs(String wUsedAssocs)
      Reads the associations of a comma separated request parameter, ignoring the blanks.
      Parameters:
      wUsedAssocs - the comma separated prefixed names of the associations, null or empty for none
      Returns:
      the prefixed names of the associations, empty for none
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • entityNodeRef

      public org.alfresco.service.cmr.repository.NodeRef entityNodeRef()
      Returns the value of the entityNodeRef record component.
      Returns:
      the value of the entityNodeRef record component
    • versionType

      public org.alfresco.service.cmr.version.VersionType versionType()
      Returns the value of the versionType record component.
      Returns:
      the value of the versionType record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • effectiveDate

      public Date effectiveDate()
      Returns the value of the effectiveDate record component.
      Returns:
      the value of the effectiveDate record component
    • wUsedAssocs

      public List<String> wUsedAssocs()
      Returns the value of the wUsedAssocs record component.
      Returns:
      the value of the wUsedAssocs record component