Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 2 (11.1.2.0.0)

E17480-01

oracle.adf.controller.metadata.provider
Interface MetadataResourceProvider


public interface MetadataResourceProvider

An interface to obtain mutable and unmutable ADFc metadata resources.


Method Summary
 boolean detectChanges(java.util.List<java.lang.String> resourceNames)
           
 java.util.List<MetadataResource> getBootstrapResources(java.lang.String resourceName)
          Get a list named metadata resource representing bootstrap configuration files.
 MetadataResource getMutableResource(java.lang.String resourceName, boolean useCustomizations, boolean skipIntegrityValidation)
          Gets an updatable metadata resource.
 java.util.List<MetadataResource> getResources(java.lang.String resouceName)
          Get a bounded task flow resource.
 void reinitialize()
          Clear any cached data and reinitialize to starting conditions.
 

Method Detail

getMutableResource

MetadataResource getMutableResource(java.lang.String resourceName,
                                    boolean useCustomizations,
                                    boolean skipIntegrityValidation)
Gets an updatable metadata resource. Metadata elements can be added, removed or changed. The changes to these elements will not take effect until they're commited, and until a new JSF request. In case of MDS, committing means calling MDSSession.flushChanges() method.

Parameters:
resourceName - the name of the XML file that this resource corresponds to.
useCustomizations - a boolean flag that inicates whether customizations should be loaded with the base document, and whether corresponding to the metadata resource should be saved as customizations.
skipIntegrityValidation - if true, the Controller will not attempt to validate whether modifications to this resource preseve its integrity. For example, if integratity validation is skipped, it is possible to add a control flow rule for which the source or target activities do not exists. All validations are peformed against the document model that existed at the beginning of the request. This flag should be used so that multiple artifacts can be added to ADFc model in a single request, such as a view activity and a corresponding control flow rule. This flag does not disable all of the validation logic, however, only the logic that depends on the current document context.
Returns:
the requested resource or null if the resource could not be located or the provider does not support update
See Also:
oracle.mds.core.MDSSession

getBootstrapResources

java.util.List<MetadataResource> getBootstrapResources(java.lang.String resourceName)
Get a list named metadata resource representing bootstrap configuration files. Bootstrap configuration files are loaded at application startup and their content is merged to create a memory model for unbounded task flow.

Parameters:
resourceName - the resource name.
Returns:
the list of requested bootstrap resources. The list can be empty.

getResources

java.util.List<MetadataResource> getResources(java.lang.String resouceName)
Get a bounded task flow resource. Bounded task flows are loaded on demand.

Parameters:
resouceName - the resource name
Returns:
the list of requested resources

detectChanges

boolean detectChanges(java.util.List<java.lang.String> resourceNames)

reinitialize

void reinitialize()
Clear any cached data and reinitialize to starting conditions. Useful for unit testing.


Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 2 (11.1.2.0.0)

E17480-01

Copyright © 1997, 2011, Oracle. All rights reserved.