Package fr.becpg.repo.entity.version
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 versionversionType- the version type of the where used entitiesdescription- the description of the new versionseffectiveDate- the effective date of the change, null for nonewUsedAssocs- 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 Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate final StringThe field for thedescriptionrecord component.private final DateThe field for theeffectiveDaterecord component.private final org.alfresco.service.cmr.repository.NodeRefThe field for theentityNodeRefrecord component.private final org.alfresco.service.cmr.version.VersionTypeThe field for theversionTyperecord component.The field for thewUsedAssocsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWUsedImpact(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.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. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.Returns the value of theeffectiveDaterecord component.org.alfresco.service.cmr.repository.NodeRefReturns the value of theentityNodeRefrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.parseWUsedAssocs(String wUsedAssocs) Reads the associations of a comma separated request parameter, ignoring the blanks.final StringtoString()Returns a string representation of this record class.org.alfresco.service.cmr.version.VersionTypeReturns the value of theversionTyperecord component.Returns the value of thewUsedAssocsrecord component.
-
Field Details
-
entityNodeRef
private final org.alfresco.service.cmr.repository.NodeRef entityNodeRefThe field for theentityNodeRefrecord component. -
versionType
private final org.alfresco.service.cmr.version.VersionType versionTypeThe field for theversionTyperecord component. -
description
The field for thedescriptionrecord component. -
effectiveDate
The field for theeffectiveDaterecord component. -
wUsedAssocs
The field for thewUsedAssocsrecord component. -
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 versionversionType- the version type of the where used entitiesdescription- the description of the new versionseffectiveDate- the effective date of the change, null for none
-
-
Method Details
-
parseWUsedAssocs
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
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
entityNodeRef
public org.alfresco.service.cmr.repository.NodeRef entityNodeRef()Returns the value of theentityNodeRefrecord component.- Returns:
- the value of the
entityNodeRefrecord component
-
versionType
public org.alfresco.service.cmr.version.VersionType versionType()Returns the value of theversionTyperecord component.- Returns:
- the value of the
versionTyperecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
effectiveDate
Returns the value of theeffectiveDaterecord component.- Returns:
- the value of the
effectiveDaterecord component
-
wUsedAssocs
Returns the value of thewUsedAssocsrecord component.- Returns:
- the value of the
wUsedAssocsrecord component
-