@Retention(value=RUNTIME) @Target(value=METHOD) public @interface TeaOperation
The annotation for tea operation. The operation could have arguments of primitive types, string, DataSource
or java bean (only one argument
can be java bean) and return java bean, string or primitive type.
If the operation _is not_ on TOP_LEVEL type, it has to have one argument of type String with KeyParam
annotation, all other arguments have
to have TeaParam
annotations.
TeaOperation
:
TeaRequires
- define required permissions to run the operation. Note: if the operation does not have TeaReaquires annotation, it
is considered 'read-only' and only "Read" permission is required.
Customize
- define UI customization options
Example:
Modifier and Type | Required Element and Description |
---|---|
String |
description
Description of the method.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
developerNotes
Developer notes
|
com.tibco.tea.agent.internal.types.ClientType[] |
hideFromClients
Define which client cannot access this operation.
|
boolean |
internal
Deprecated.
|
MethodType |
methodType
Define semantics of the operation, see
MethodType . |
String |
name
Name of the operation, optional, use method name as default.
|
String |
objectType
Name of the type of the operation, optional, it use type defined on the class level as default.
|
public abstract String description
public abstract String developerNotes
public abstract String name
public abstract String objectType
@Deprecated public abstract boolean internal
public abstract MethodType methodType
MethodType
.public abstract com.tibco.tea.agent.internal.types.ClientType[] hideFromClients
Copyright © 2015 Cloud Software Group, Inc.. All Rights Reserved.