public class

MetadataBuilder

extends Object
java.lang.Object
   ↳ org.mule.modules.peoplesoft.metadata.MetadataBuilder

Class Overview

Searches for Component Interfaces and processes the expected input and output metadata for each available CI operation.

Summary

Fields
private Boolean editHistoryItems
private Boolean getHistoryItems
private Boolean interactiveMode
private static final Logger logger
private Map<String, CIPropertyInfoCollectionAccessor> metadataCache
private ISession session
Public Constructors
MetadataBuilder(Boolean interactiveMode, Boolean getHistoryItems, Boolean editHistoryItems)
Public Methods
CIPropertyInfoCollectionAccessor fetchInfoCollection(CIAccessor ciHelper, OperationDefinition operation)
Handles metadata cache information and obtains the INPUT collection of properties for a given operation.
List<ComposedMetaDataKey> fetchKeys(List<String> components)
Retrieves a list of metadata keys for every Component Interface defined.
CIAccessor findComponentInterface(String component)
Calls the API method getCompIntfc() to search for an existing Component Interface.
CIPropertyInfoCollectionAccessor getInfoCollectionForOutput(CIAccessor ciHelper, OperationDefinition operation)
Obtains the OUTPUT collection of properties for a given operation.
ISession getSession()
void updateSession(ISession session)
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private Boolean editHistoryItems

private Boolean getHistoryItems

private Boolean interactiveMode

private static final Logger logger

private Map<String, CIPropertyInfoCollectionAccessor> metadataCache

private ISession session

Public Constructors

public MetadataBuilder (Boolean interactiveMode, Boolean getHistoryItems, Boolean editHistoryItems)

Parameters
interactiveMode
getHistoryItems
editHistoryItems

Public Methods

public CIPropertyInfoCollectionAccessor fetchInfoCollection (CIAccessor ciHelper, OperationDefinition operation)

Handles metadata cache information and obtains the INPUT collection of properties for a given operation.

Parameters
ciHelper A helper object CIAccesor that wraps the CI entity.
operation The selected operation contained in a OperationDefinition object.

public List<ComposedMetaDataKey> fetchKeys (List<String> components)

Retrieves a list of metadata keys for every Component Interface defined.

Parameters
components The list of CI names (IDs)
Returns
  • A list of ComposedMetaDataKey objects containing the metadata keys for each CI.

public CIAccessor findComponentInterface (String component)

Calls the API method getCompIntfc() to search for an existing Component Interface.

Parameters
component The name (ID) of the Component Interface.
Returns
  • A CIAccessor object that wraps the Component Interface.

public CIPropertyInfoCollectionAccessor getInfoCollectionForOutput (CIAccessor ciHelper, OperationDefinition operation)

Obtains the OUTPUT collection of properties for a given operation.

Parameters
ciHelper A helper object CIAccesor that wraps the CI entity.
operation The selected operation contained in a OperationDefinition object.

public ISession getSession ()

public void updateSession (ISession session)

Parameters
session