Package com.adobe.aem.dermis.model
Class Operation
- java.lang.Object
-
- com.adobe.aem.dermis.model.AbstractAsset
-
- com.adobe.aem.dermis.model.Operation
-
- All Implemented Interfaces:
IAsset,IOperation,java.io.Serializable
public class Operation extends AbstractAsset implements IOperation
Basic implementation of Operation.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.adobe.aem.dermis.model.IOperation
IOperation.MethodType
-
-
Constructor Summary
Constructors Constructor Description Operation()Operation(java.lang.String name, java.lang.String description, IOperation.MethodType method, IProperty targetSchema, IProperty schema)Operation(java.lang.String name, java.lang.String description, IOperation.MethodType method, IProperty targetSchema, IProperty schema, boolean genericOperation)Operation(java.lang.String name, java.lang.String description, IOperation.MethodType method, IProperty targetSchema, IProperty schema, boolean genericOperation, boolean isHidden)Operation(java.lang.String name, java.lang.String description, IOperation.MethodType method, IProperty targetSchema, IProperty schema, java.lang.String href)Operation(java.lang.String name, java.lang.String title, java.lang.String description, IOperation.MethodType method, IProperty targetSchema, IProperty schema, boolean genericOperation, boolean isHidden)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetHref()Gets the href of this OperationbooleangetIsHidden()Represent whether a operation is Hidden on UI or not.IOperation.MethodTypegetMethod()gets the method type of operationjava.lang.StringgetRel()Gets the rel of this OperationIPropertygetSchema()gets the lists of input argumentsjava.lang.StringgetSource()Gets the source of OperationIPropertygetTargetSchema()gets the type of the returned objectbooleanhasMultipleArguments()Utility method to check if operation have multiple argumentsbooleanisGenericOperation()Represent if operation is generic in nature, which means it allow FDM author to add/remove argument of operation.voidsetGenericOperation(boolean genericOperation)Sets true if this is generic operationvoidsetIsHidden(boolean isHidden)Set true if this operation should be Hidden on UIvoidsetRel(java.lang.String rel)voidsetSource(java.lang.String source)sets the source of Operation-
Methods inherited from class com.adobe.aem.dermis.model.AbstractAsset
getDescription, getId, getName, getTitle, setDescription, setId, setName, setTitle
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adobe.aem.dermis.model.IAsset
getDescription, getId, getName, getTitle
-
-
-
-
Constructor Detail
-
Operation
public Operation()
-
Operation
public Operation(java.lang.String name, java.lang.String description, IOperation.MethodType method, IProperty targetSchema, IProperty schema)
-
Operation
public Operation(java.lang.String name, java.lang.String description, IOperation.MethodType method, IProperty targetSchema, IProperty schema, boolean genericOperation)
-
Operation
public Operation(java.lang.String name, java.lang.String description, IOperation.MethodType method, IProperty targetSchema, IProperty schema, boolean genericOperation, boolean isHidden)
-
Operation
public Operation(java.lang.String name, java.lang.String title, java.lang.String description, IOperation.MethodType method, IProperty targetSchema, IProperty schema, boolean genericOperation, boolean isHidden)
-
Operation
public Operation(java.lang.String name, java.lang.String description, IOperation.MethodType method, IProperty targetSchema, IProperty schema, java.lang.String href)
-
-
Method Detail
-
getRel
public java.lang.String getRel()
Gets the rel of this Operation- Specified by:
getRelin interfaceIOperation- Returns:
- the rel of this Operation
-
setRel
public void setRel(java.lang.String rel)
-
getHref
public java.lang.String getHref()
Gets the href of this Operation- Specified by:
getHrefin interfaceIOperation- Returns:
- the href of this Operation
-
getMethod
public IOperation.MethodType getMethod()
gets the method type of operation- Specified by:
getMethodin interfaceIOperation- Returns:
IOperation.MethodType
-
getTargetSchema
public IProperty getTargetSchema()
gets the type of the returned object- Specified by:
getTargetSchemain interfaceIOperation- Returns:
- type of returned object
-
getSchema
public IProperty getSchema()
gets the lists of input arguments- Specified by:
getSchemain interfaceIOperation
-
hasMultipleArguments
public boolean hasMultipleArguments()
Utility method to check if operation have multiple arguments- Specified by:
hasMultipleArgumentsin interfaceIOperation- Returns:
- - Returns true if operation takes more than one argument.
-
getSource
public java.lang.String getSource()
Gets the source of Operation- Specified by:
getSourcein interfaceIOperation- Returns:
- the source
-
setSource
public void setSource(java.lang.String source)
Description copied from interface:IOperationsets the source of Operation- Specified by:
setSourcein interfaceIOperation
-
isGenericOperation
public boolean isGenericOperation()
Represent if operation is generic in nature, which means it allow FDM author to add/remove argument of operation.- Specified by:
isGenericOperationin interfaceIOperation- Returns:
- - Returns true if operation is generic.
-
setGenericOperation
public void setGenericOperation(boolean genericOperation)
Sets true if this is generic operation- Parameters:
genericOperation-
-
getIsHidden
public boolean getIsHidden()
Represent whether a operation is Hidden on UI or not.- Returns:
- Returns true if operation is Hidden.
-
setIsHidden
public void setIsHidden(boolean isHidden)
Set true if this operation should be Hidden on UI- Parameters:
isHidden-
-
-