public abstract class SourceAdapter<Skey extends Key>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected GenericMultiThreadedConnector<Skey> |
connector |
Constructor and Description |
---|
SourceAdapter() |
Modifier and Type | Method and Description |
---|---|
MetaContainer |
getAllMetaContainer(Skey key)
Get all metas associated to the key (non security meta + security meta)
|
GenericMultiThreadedConnector<Skey> |
getConnector() |
abstract MetaContainer |
getNonSecurityMetaContainer(Skey key)
This method is used to retrieve all meta data of a document
|
abstract PartContainer |
getPartContainer(Skey key)
This method is used to retrieve document part
|
abstract MetaContainer |
getSecurityMetaContainer(Skey key)
This method is used to retrieve security tokens of a document.
|
java.lang.String |
getSecurityMetaHash(MetaContainer metas)
Get a hash corresponding to 'meta' security metadata.
|
java.lang.String |
getSecurityMetaHash(Skey key)
Get a hash corresponding to the key's security metadata.
|
abstract java.lang.String |
getStamp(Skey key)
This method is used to determine if a document has changed (if stamps are equals,
the document is considered unchanged)
|
void |
setConnector(GenericMultiThreadedConnector<Skey> connector) |
protected GenericMultiThreadedConnector<Skey extends Key> connector
public void setConnector(GenericMultiThreadedConnector<Skey> connector)
public GenericMultiThreadedConnector<Skey> getConnector()
public abstract PartContainer getPartContainer(Skey key) throws java.lang.Exception
key
- ID of the documentjava.lang.Exception
public abstract java.lang.String getStamp(Skey key) throws java.io.IOException
key
- ID of the documentjava.io.IOException
public abstract MetaContainer getNonSecurityMetaContainer(Skey key) throws java.io.IOException
key
- ID of documentjava.io.IOException
public abstract MetaContainer getSecurityMetaContainer(Skey key) throws java.io.IOException
key
- of the documentjava.io.IOException
public MetaContainer getAllMetaContainer(Skey key) throws java.io.IOException
key
- ID of documentjava.io.IOException
public java.lang.String getSecurityMetaHash(Skey key) throws java.io.IOException
java.io.IOException
public java.lang.String getSecurityMetaHash(MetaContainer metas)
Copyright © 2013 Dassault Systèmes, All Rights Reserved.