Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.automation.server
Interface AutomationServer

All Known Implementing Classes:
AutomationServerComponent

public interface AutomationServer

A registry of REST bindings. Provides methods for checking if a given operation is allowed to be invoked in a REST call.

The binding registry is synchronized.

Author:
Bogdan Stefanescu

Method Summary
 boolean accept(java.lang.String name, boolean isChain, javax.servlet.http.HttpServletRequest req)
          Checks if the given operation name is allowed in a REST call.
 void addBinding(RestBinding binding)
          Registers a new operation binding.
 RestBinding[] getBindings()
          Gets an array of registered bindings.
 RestBinding getChainBinding(java.lang.String name)
          Gets a binding given a chain name.
 RestBinding getOperationBinding(java.lang.String name)
          Gets a binding given an operation.
 RestBinding removeBinding(RestBinding binding)
          Removes a binding for the given operation name.
 

Method Detail

getOperationBinding

RestBinding getOperationBinding(java.lang.String name)
Gets a binding given an operation.

Parameters:
name - the operation name.

getChainBinding

RestBinding getChainBinding(java.lang.String name)
Gets a binding given a chain name.

Parameters:
name - the chain name

getBindings

RestBinding[] getBindings()
Gets an array of registered bindings.


addBinding

void addBinding(RestBinding binding)
Registers a new operation binding.

Parameters:
binding - the new binding to register

removeBinding

RestBinding removeBinding(RestBinding binding)
Removes a binding for the given operation name.

Parameters:
binding - the binding to remove
Returns:
the removed binding if any, otherwise null

accept

boolean accept(java.lang.String name,
               boolean isChain,
               javax.servlet.http.HttpServletRequest req)
Checks if the given operation name is allowed in a REST call.


Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.