com.silverpeas.web.aspect
Class ComponentExistenceAspect

java.lang.Object
  extended by com.silverpeas.web.aspect.ComponentExistenceAspect

@Component
public class ComponentExistenceAspect
extends Object

An aspect to insert component existence checking in the web services so that it is performed implicitly for each web resources managed by a given component instance. If a web resource doesn't belong to any component instance, then nothing is done.


Constructor Summary
ComponentExistenceAspect()
           
 
Method Summary
 void checkComponentInstanceExistence(RESTWebService service)
           
 void methodAnnotatedWithDELETE()
           
 void methodAnnotatedWithGET()
           
 void methodAnnotatedWithPOST()
           
 void methodAnnotatedWithPUT()
           
 void webServices()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentExistenceAspect

public ComponentExistenceAspect()
Method Detail

webServices

public void webServices()

methodAnnotatedWithGET

public void methodAnnotatedWithGET()

methodAnnotatedWithPOST

public void methodAnnotatedWithPOST()

methodAnnotatedWithDELETE

public void methodAnnotatedWithDELETE()

methodAnnotatedWithPUT

public void methodAnnotatedWithPUT()

checkComponentInstanceExistence

public void checkComponentInstanceExistence(RESTWebService service)
                                     throws Throwable
Throws:
Throwable


Copyright © 2016 Silverpeas. All Rights Reserved.