public class

EntityTypeBuilder

extends Object
java.lang.Object
   ↳ org.mule.modules.jive.api.EntityTypeBuilder

Class Overview

Builder for the EntityType

Summary

Fields
private TypeOperation countOp
private PayloadOperation createOp
private ReferenceOperation deleteOp
private final EntityTypeName entityTypeName
private ReferenceOperation getOp
private PayloadOperation putOp
private String serviceNameException
Public Constructors
EntityTypeBuilder(EntityTypeName entityTypeName)
Base constructor.
Public Methods
EntityType build()
Builds the EntityType with all the associated methods.
static EntityTypeBuilder from(EntityTypeName entityTypeName)
EntityTypeBuilder withCount(CustomOp op)
EntityTypeBuilder withCount(TypeOperation countOperation)
Sets the count operation for the EntityType to be build
EntityTypeBuilder withCreate(CustomOp customOp)
EntityTypeBuilder withDelete(CustomOp customOp)
EntityTypeBuilder withGet(CustomOp getOp)
EntityTypeBuilder withPut(CustomOp custom)
EntityTypeBuilder withServiceUri(String serviceUri)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private TypeOperation countOp

private PayloadOperation createOp

private ReferenceOperation deleteOp

private final EntityTypeName entityTypeName

private ReferenceOperation getOp

private PayloadOperation putOp

private String serviceNameException

Public Constructors

public EntityTypeBuilder (EntityTypeName entityTypeName)

Base constructor.

Parameters
entityTypeName

Public Methods

public EntityType build ()

Builds the EntityType with all the associated methods.

public static EntityTypeBuilder from (EntityTypeName entityTypeName)

Parameters
entityTypeName The EntityTypeName for the EntityType to be build
Returns

public EntityTypeBuilder withCount (CustomOp op)

Parameters
op The custom count operation for the EntityType to be build
Returns

public EntityTypeBuilder withCount (TypeOperation countOperation)

Sets the count operation for the EntityType to be build

Parameters
countOperation

public EntityTypeBuilder withCreate (CustomOp customOp)

Parameters
customOp
Returns

public EntityTypeBuilder withDelete (CustomOp customOp)

Parameters
customOp The custom delete operation to set this entity with
Returns

public EntityTypeBuilder withGet (CustomOp getOp)

Parameters
getOp The get operation fot the EntityType
Returns

public EntityTypeBuilder withPut (CustomOp custom)

Parameters
custom The custom update operation for the EntityType
Returns

public EntityTypeBuilder withServiceUri (String serviceUri)

Parameters
serviceUri The service uri for the EntityType to be build
Returns