Class OrphanedPartOfCleanupPrepareInterceptor

  • All Implemented Interfaces:
    Interceptor, PrepareInterceptor

    public class OrphanedPartOfCleanupPrepareInterceptor
    extends java.lang.Object
    implements PrepareInterceptor
    Registers orphaned partOf members for removal. Fixes a performance issue in the original interceptor. The original loads the value of every partof attribute even if the value has not been changed.
    • Constructor Detail

      • OrphanedPartOfCleanupPrepareInterceptor

        public OrphanedPartOfCleanupPrepareInterceptor()
    • Method Detail

      • getWritablePartOfAttributes

        protected java.util.Set<java.lang.String> getWritablePartOfAttributes​(InterceptorContext ctx,
                                                                              java.lang.String itemType)
      • registerForRemovalIfNecessary

        protected void registerForRemovalIfNecessary​(InterceptorContext ctx,
                                                     java.lang.Object currentValue,
                                                     java.lang.Object originalValue)
      • isModifiedItemUsingSLD

        protected boolean isModifiedItemUsingSLD​(java.lang.Object object,
                                                 InterceptorContext ctx)
      • registerForRemoval

        protected void registerForRemoval​(java.util.Collection items,
                                          InterceptorContext ctx)
      • collectItemsToRemove

        protected java.util.Collection collectItemsToRemove​(java.lang.Object originalValue,
                                                            java.lang.Object currentValue)
      • getOriginalValue

        protected java.lang.Object getOriginalValue​(AbstractItemModel model,
                                                    java.lang.String partOfQualifier)
      • getOriginalValue

        protected java.lang.Object getOriginalValue​(AbstractItemModel model,
                                                    java.lang.String partOfQualifier,
                                                    java.util.Locale loc)
      • setTypeService

        public void setTypeService​(TypeService typeService)