RestOperations¶
-
public @interface
RestOperations
¶ The
RestOperations
annotation is used to specify which CRUD operations should be enabled for entity. RestOperations value is an array of one or more values specified inRestOperation
enum, that is: CREATE, READ, UPDATE, DELETE. There is also one special value - ALL. When provided, all CRUD operations are enabled for entity, regardless of presence of other values.This annotation is processed by
org.motechproject.mds.annotations.internal.RestOperationsProcessor
and can be applied only to class which is also annotated withorg.motechproject.mds.annotations.Entity
. It has no effect otherwise.See also:
RestOperation
,org.motechproject.mds.annotations.internal.RestOperationsProcessor