Class NodesApiReadOnlyAspect

java.lang.Object
org.saidone.component.BaseComponent
org.saidone.aspects.NodesApiReadOnlyAspect
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component public class NodesApiReadOnlyAspect extends BaseComponent
Aspect that intercepts write operations executed through Alfresco's NodesApi.

When application.read-only is set to true any intercepted invocation originating from the org.saidone.processors package is skipped and a warning is logged.

  • Constructor Details

    • NodesApiReadOnlyAspect

      public NodesApiReadOnlyAspect()
  • Method Details

    • enforceReadOnly

      public Object enforceReadOnly(org.aspectj.lang.ProceedingJoinPoint pjp) throws Throwable
      Throws:
      Throwable