public class ResourceView
extends java.lang.Object
| Constructor and Description |
|---|
ResourceView(com.bea.wli.config.impl.ConfigServiceImpl configService, java.lang.String session, boolean outsideTransactionView)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
ChangeDescriptor |
getChangeDescriptor(ResourceView target, DiffEntry diff)
Returns a change descriptors that describes the necessary change to go from this resource view to the target view.
|
java.util.List<ChangeDescriptor> |
getChangeDescriptors(ResourceView target)
Returns a list of change descriptors that describe the changes from this source to the target one.
|
com.bea.wli.config.component.impl.ReferenceMap |
getCombinedDependencyGraphCopy() |
java.util.List<DiffEntry> |
getDiffs(ResourceView target, boolean resourcesOnly)
REturns a list of DiffEntry objects that describe the changes that would have to be applied to this resource view in order to arrive at the target view
|
Snapshot<Digest> |
getDigestSnapshot() |
Metadata |
getMetadata(Ref ref)
Returns the metadata for a resource
|
com.bea.wli.config.component.impl.ReferenceMap |
getParentChildMapCopy() |
com.bea.wli.config.component.impl.ReferenceMap |
getReferenceMapCopy() |
SnapshotDelta<CanonicalResource,CanonicalDelta> |
getSnapshotDelta(Snapshot<Digest> source)
Returns the snapshot delta
|
java.lang.Object |
getValue(Ref ref, boolean copy)
Returns the value of a resource
|
public ResourceView(com.bea.wli.config.impl.ConfigServiceImpl configService,
java.lang.String session,
boolean outsideTransactionView)
configService - the config service associated with this viewsession - name of the session whose view will be constructedoutsideTransactionView - whether to return the view as seen outside the transaction.public com.bea.wli.config.component.impl.ReferenceMap getReferenceMapCopy()
public com.bea.wli.config.component.impl.ReferenceMap getParentChildMapCopy()
public com.bea.wli.config.component.impl.ReferenceMap getCombinedDependencyGraphCopy()
public java.lang.Object getValue(Ref ref, boolean copy) throws NotFoundException
ref - reference to the resourcecopy - whether to return the copyNotFoundException - if resource is not foundpublic Metadata getMetadata(Ref ref) throws NotFoundException
ref - reference to the resourceNotFoundException - if resource is not foundpublic Snapshot<Digest> getDigestSnapshot() throws java.lang.Exception
java.lang.Exceptionpublic SnapshotDelta<CanonicalResource,CanonicalDelta> getSnapshotDelta(Snapshot<Digest> source) throws java.lang.Exception
source -java.lang.Exceptionpublic java.util.List<ChangeDescriptor> getChangeDescriptors(ResourceView target) throws java.lang.Exception
target - the target resource viewjava.lang.Exception - if error occurs getting change descriptorspublic ChangeDescriptor getChangeDescriptor(ResourceView target, DiffEntry diff) throws java.lang.Exception
target - the target resource viewdiff - the diff entryjava.lang.Exception - if error occurs getting change descriptorpublic java.util.List<DiffEntry> getDiffs(ResourceView target, boolean resourcesOnly) throws java.lang.Exception
target -resourcesOnly - whether to return only the changes related to resourcesjava.lang.Exception