public class CatalogServiceClient extends Object implements CatalogService
A Client that appears to be a CatalogService, but communicates with a CatalogService Server
Modifier and Type | Field and Description |
---|---|
protected int |
autoPagerSize |
protected CommunicationChannelClient |
communicationChannelClient |
CATALOG_ID_MET_KEY, CATALOG_IDS_MET_KEY, CATALOG_SERVICE_TRANSACTION_ID_MET_KEY, CATALOG_TRANSACTION_ID_MET_KEY, ENABLE_UPDATE_MET_KEY
Constructor and Description |
---|
CatalogServiceClient(CommunicationChannelClient communicationChannelClient,
int autoPagerSize) |
protected CommunicationChannelClient communicationChannelClient
protected int autoPagerSize
public CatalogServiceClient(CommunicationChannelClient communicationChannelClient, int autoPagerSize)
public void shutdown() throws CatalogServiceException
shutdown
in interface CatalogService
CatalogServiceException
protected List<PluginURL> transferToServerSide(List<PluginURL> clientSideUrls) throws CatalogServiceException
CatalogServiceException
public void addCatalog(Catalog catalog) throws CatalogServiceException
addCatalog
in interface CatalogService
CatalogServiceException
public void replaceCatalog(Catalog catalog) throws CatalogServiceException
replaceCatalog
in interface CatalogService
CatalogServiceException
public void addCatalog(String catalogId, Index index) throws CatalogServiceException
addCatalog
in interface CatalogService
CatalogServiceException
public void addCatalog(String catalogId, Index index, List<Dictionary> dictionaries) throws CatalogServiceException
addCatalog
in interface CatalogService
CatalogServiceException
public void addCatalog(String catalogId, Index index, List<Dictionary> dictionaries, boolean restrictQueryPermission, boolean restrictIngestPermission) throws CatalogServiceException
addCatalog
in interface CatalogService
CatalogServiceException
public void addDictionary(String catalogId, Dictionary dictionary) throws CatalogServiceException
addDictionary
in interface CatalogService
CatalogServiceException
public void replaceDictionaries(String catalogId, List<Dictionary> dictionaries) throws CatalogServiceException
replaceDictionaries
in interface CatalogService
CatalogServiceException
public void modifyIngestPermission(String catalogId, boolean restrictIngestPermission) throws CatalogServiceException
modifyIngestPermission
in interface CatalogService
CatalogServiceException
public void modifyQueryPermission(String catalogId, boolean restrictQueryPermission) throws CatalogServiceException
modifyQueryPermission
in interface CatalogService
CatalogServiceException
public void replaceIndex(String catalogId, Index index) throws CatalogServiceException
replaceIndex
in interface CatalogService
CatalogServiceException
public void removeCatalog(String catalogId) throws CatalogServiceException
removeCatalog
in interface CatalogService
CatalogServiceException
public URL getPluginStorageDir() throws CatalogServiceException
getPluginStorageDir
in interface CatalogService
CatalogServiceException
public List<PluginURL> getPluginUrls() throws CatalogServiceException
getPluginUrls
in interface CatalogService
CatalogServiceException
public void addPluginUrls(List<PluginURL> urls) throws CatalogServiceException
addPluginUrls
in interface CatalogService
CatalogServiceException
public void delete(Metadata metadata) throws CatalogServiceException
delete
in interface CatalogService
CatalogServiceException
public List<TransactionalMetadata> getAllPages(QueryPager queryPager) throws CatalogServiceException
getAllPages
in interface CatalogService
CatalogServiceException
public Properties getCalalogProperties() throws CatalogServiceException
getCalalogProperties
in interface CatalogService
CatalogServiceException
public Properties getCalalogProperties(String catalogUrn) throws CatalogServiceException
getCalalogProperties
in interface CatalogService
CatalogServiceException
public TransactionId<?> getCatalogServiceTransactionId(TransactionId<?> catalogTransactionId, String catalogUrn) throws CatalogServiceException
getCatalogServiceTransactionId
in interface CatalogService
CatalogServiceException
public TransactionId<?> getCatalogServiceTransactionId(CatalogReceipt catalogReceipt, boolean generateNew) throws CatalogServiceException
getCatalogServiceTransactionId
in interface CatalogService
CatalogServiceException
public List<TransactionId<?>> getCatalogServiceTransactionIds(List<TransactionId<?>> catalogTransactionIds, String catalogUrn) throws CatalogServiceException
getCatalogServiceTransactionIds
in interface CatalogService
CatalogServiceException
public Set<String> getCurrentCatalogIds() throws CatalogServiceException
getCurrentCatalogIds
in interface CatalogService
CatalogServiceException
public List<TransactionalMetadata> getMetadataFromTransactionIdStrings(List<String> catalogServiceTransactionIdStrings) throws CatalogServiceException
getMetadataFromTransactionIdStrings
in interface CatalogService
CatalogServiceException
public List<TransactionalMetadata> getMetadataFromTransactionIds(List<TransactionId<?>> catalogServiceTransactionIds) throws CatalogServiceException
getMetadataFromTransactionIds
in interface CatalogService
CatalogServiceException
public List<TransactionalMetadata> getNextPage(QueryPager queryPager) throws CatalogServiceException
getNextPage
in interface CatalogService
CatalogServiceException
public List<String> getProperty(String key) throws CatalogServiceException
getProperty
in interface CatalogService
CatalogServiceException
public List<TransactionId<?>> getTransactionIdsForAllPages(QueryPager queryPager) throws CatalogServiceException
CatalogServiceException
public TransactionReceipt ingest(Metadata metadata) throws CatalogServiceException
ingest
in interface CatalogService
CatalogServiceException
public boolean isRestrictIngestPermissions() throws CatalogServiceException
isRestrictIngestPermissions
in interface CatalogService
CatalogServiceException
public boolean isRestrictQueryPermissions() throws CatalogServiceException
isRestrictQueryPermissions
in interface CatalogService
CatalogServiceException
public Page getNextPage(Page page) throws CatalogServiceException
getNextPage
in interface CatalogService
CatalogServiceException
public Page getPage(PageInfo pageInfo, QueryExpression queryExpression) throws CatalogServiceException
getPage
in interface CatalogService
CatalogServiceException
public Page getPage(PageInfo pageInfo, QueryExpression queryExpression, Set<String> catalogIds) throws CatalogServiceException
getPage
in interface CatalogService
CatalogServiceException
public List<TransactionalMetadata> getMetadata(Page page) throws CatalogServiceException
getMetadata
in interface CatalogService
CatalogServiceException
public QueryPager query(QueryExpression queryExpression) throws CatalogServiceException
query
in interface CatalogService
CatalogServiceException
public QueryPager query(QueryExpression queryExpression, Set<String> catalogIds) throws CatalogServiceException
query
in interface CatalogService
CatalogServiceException
Copyright © 1999-2014 Apache OODT. All Rights Reserved.