Class AssetContextAdapter
java.lang.Object
com.orchestranetworks.addon.dpra.function.AssetContextAdapter
Adapter for representing asset contexts in the add-on.
Provides static factory methods to create an adapter for dataspace, dataset, table, field, or workflow contexts.
Each context type is represented by an AssetType and associated EBX® objects:
onDataspace(AdaptationHome): For dataspace contextsonDataset(Adaptation): For dataset contextsonTable(AdaptationTable): For table contextsonField(AdaptationTable, SchemaNode): For field contextsonWorkflow(PublishedProcess): For workflow contexts
Provides getters for each context type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the asset type of this adapter.com.onwbp.adaptation.AdaptationGets the dataset represented by this adapter.com.onwbp.adaptation.AdaptationHomeGets the dataspace represented by this adapter.com.orchestranetworks.schema.SchemaNodegetField()Gets the field represented by this adapter.com.onwbp.adaptation.AdaptationTablegetTable()Gets the table represented by this adapter.com.orchestranetworks.workflow.PublishedProcessGets the workflow represented by this adapter.static AssetContextAdapteronDataset(com.onwbp.adaptation.Adaptation dataset) Creates an adapter for dataset contexts.static AssetContextAdapteronDataspace(com.onwbp.adaptation.AdaptationHome dataspace) Creates an adapter for dataspace contexts.static AssetContextAdapteronField(com.onwbp.adaptation.AdaptationTable table, com.orchestranetworks.schema.SchemaNode field) Creates an adapter for field contexts.static AssetContextAdapteronTable(com.onwbp.adaptation.AdaptationTable table) Creates an adapter for table contexts.static AssetContextAdapteronWorkflow(com.orchestranetworks.workflow.PublishedProcess workflow) Creates an adapter for workflow contexts.
-
Constructor Details
-
AssetContextAdapter
public AssetContextAdapter()
-
-
Method Details
-
onDataspace
Creates an adapter for dataspace contexts.- Parameters:
dataspace- the dataspace to represent- Returns:
- an
AssetContextAdapterfor a dataspace context
-
onDataset
Creates an adapter for dataset contexts.- Parameters:
dataset- the dataset to represent- Returns:
- an
AssetContextAdapterfor a dataset context
-
onTable
Creates an adapter for table contexts.- Parameters:
table- the table to represent- Returns:
- an
AssetContextAdapterfor a table context
-
onField
public static AssetContextAdapter onField(com.onwbp.adaptation.AdaptationTable table, com.orchestranetworks.schema.SchemaNode field) Creates an adapter for field contexts.- Parameters:
table- the table containing the fieldfield- the field to represent- Returns:
- an
AssetContextAdapterfor a field context
-
onWorkflow
public static AssetContextAdapter onWorkflow(com.orchestranetworks.workflow.PublishedProcess workflow) Creates an adapter for workflow contexts.- Parameters:
workflow- the workflow to represent- Returns:
- an
AssetContextAdapterfor a workflow context
-
getAssetType
Gets the asset type of this adapter.- Returns:
- the asset type
-
getDataspace
public com.onwbp.adaptation.AdaptationHome getDataspace()Gets the dataspace represented by this adapter.- Returns:
- the dataspace, or null if not applicable
-
getDataset
public com.onwbp.adaptation.Adaptation getDataset()Gets the dataset represented by this adapter.- Returns:
- the dataset, or null if not applicable
-
getTable
public com.onwbp.adaptation.AdaptationTable getTable()Gets the table represented by this adapter.- Returns:
- the table, or null if not applicable
-
getField
public com.orchestranetworks.schema.SchemaNode getField()Gets the field represented by this adapter.- Returns:
- the field, or null if not applicable
-
getWorkflow
public com.orchestranetworks.workflow.PublishedProcess getWorkflow()Gets the workflow represented by this adapter.- Returns:
- the workflow, or null if not applicable
-