com.sapportals.wcm.service.indexmanagement.retrieval.classification

Interface ITaxonomyTransport


public interface ITaxonomyTransport

This interface is only for internal usage


Field Summary
static String EXPORT_EMPTY_SUB_QUERY_ERROR
           
static String EXPORT_FATAL_ERROR
           
static String EXPORT_INITIAL_STATE
           
static String EXPORT_MISSING_CLOSING_BRACKET_ERROR
           
static String EXPORT_MISSING_OPENING_BRACKET_ERROR
           
static String EXPORT_MISSING_OPERATOR_IN_COMPLEX_QUERY_ERROR
           
static String EXPORT_MISSING_SIMPLE_QUERY_ERROR
           
static String EXPORT_OK
           
static String EXPORT_UNMODELLED_ATTRIBUTE_ERROR
           
static String EXPORT_WRONG_OPERATOR_FOR_CONTENT_QUERY_ERROR
           
static String EXPORT_WRONG_OPERATOR_FOR_OTHER_QUERY_ERROR
           
static String EXPORT_WRONG_OPERATOR_FOR_TEXT_QUERY_ERROR
           
static String IMPORT_ATTRIBUTE_NOT_MODELLED_ERROR
           
static String IMPORT_ATTRIBUTE_TYPE_ERROR
           
static String IMPORT_DTD_ERROR
           
static String IMPORT_FATAL_ERROR
           
static String IMPORT_INITIAL_STATE
           
static String IMPORT_OK
           
static String IMPORT_PARSING_ERROR
           
static String IMPORT_QUERY_FOR_EB_TAX_ERROR
           
static String IMPORT_TAX_ALREADY_EXISTS_ERROR
           
static String IMPORT_TAXONOMY_CREATION_ERROR
           
 
Method Summary
 IResource exportDTD(ICollection exportColl)
           
 void exportTaxonomy(ICollection collection, String outputResource, IClassificationIndex index, String taxname)
          Exports a taxonomy to a resource.
 String getDuration()
          Returns the duration of the last import or export operation in the following format hh:mm:ss
 String getErrorMessage()
          Returns a more detailed message about what happend during ex- or import.
 int getNumberOfCategories()
          Returns the number of categories of the last import or export operation.
 String getState()
          After an ex- or import of a taxonomy, you could check the success or problems of this opertation by looking at the state.
 String getTaxonomyName()
           
 void importTaxonomy(IResource taxDocument, IClassificationIndex index)
          Imports a taxonomy.
 

Field Detail

IMPORT_INITIAL_STATE

public static final String IMPORT_INITIAL_STATE
See Also:
Constant Field Values

IMPORT_PARSING_ERROR

public static final String IMPORT_PARSING_ERROR
See Also:
Constant Field Values

IMPORT_TAX_ALREADY_EXISTS_ERROR

public static final String IMPORT_TAX_ALREADY_EXISTS_ERROR
See Also:
Constant Field Values

IMPORT_FATAL_ERROR

public static final String IMPORT_FATAL_ERROR
See Also:
Constant Field Values

IMPORT_TAXONOMY_CREATION_ERROR

public static final String IMPORT_TAXONOMY_CREATION_ERROR
See Also:
Constant Field Values

IMPORT_ATTRIBUTE_NOT_MODELLED_ERROR

public static final String IMPORT_ATTRIBUTE_NOT_MODELLED_ERROR
See Also:
Constant Field Values

IMPORT_ATTRIBUTE_TYPE_ERROR

public static final String IMPORT_ATTRIBUTE_TYPE_ERROR
See Also:
Constant Field Values

IMPORT_QUERY_FOR_EB_TAX_ERROR

public static final String IMPORT_QUERY_FOR_EB_TAX_ERROR
See Also:
Constant Field Values

IMPORT_DTD_ERROR

public static final String IMPORT_DTD_ERROR
See Also:
Constant Field Values

IMPORT_OK

public static final String IMPORT_OK
See Also:
Constant Field Values

EXPORT_INITIAL_STATE

public static final String EXPORT_INITIAL_STATE
See Also:
Constant Field Values

EXPORT_FATAL_ERROR

public static final String EXPORT_FATAL_ERROR
See Also:
Constant Field Values

EXPORT_MISSING_OPENING_BRACKET_ERROR

public static final String EXPORT_MISSING_OPENING_BRACKET_ERROR
See Also:
Constant Field Values

EXPORT_MISSING_CLOSING_BRACKET_ERROR

public static final String EXPORT_MISSING_CLOSING_BRACKET_ERROR
See Also:
Constant Field Values

EXPORT_MISSING_SIMPLE_QUERY_ERROR

public static final String EXPORT_MISSING_SIMPLE_QUERY_ERROR
See Also:
Constant Field Values

EXPORT_UNMODELLED_ATTRIBUTE_ERROR

public static final String EXPORT_UNMODELLED_ATTRIBUTE_ERROR
See Also:
Constant Field Values

EXPORT_WRONG_OPERATOR_FOR_TEXT_QUERY_ERROR

public static final String EXPORT_WRONG_OPERATOR_FOR_TEXT_QUERY_ERROR
See Also:
Constant Field Values

EXPORT_WRONG_OPERATOR_FOR_CONTENT_QUERY_ERROR

public static final String EXPORT_WRONG_OPERATOR_FOR_CONTENT_QUERY_ERROR
See Also:
Constant Field Values

EXPORT_WRONG_OPERATOR_FOR_OTHER_QUERY_ERROR

public static final String EXPORT_WRONG_OPERATOR_FOR_OTHER_QUERY_ERROR
See Also:
Constant Field Values

EXPORT_EMPTY_SUB_QUERY_ERROR

public static final String EXPORT_EMPTY_SUB_QUERY_ERROR
See Also:
Constant Field Values

EXPORT_MISSING_OPERATOR_IN_COMPLEX_QUERY_ERROR

public static final String EXPORT_MISSING_OPERATOR_IN_COMPLEX_QUERY_ERROR
See Also:
Constant Field Values

EXPORT_OK

public static final String EXPORT_OK
See Also:
Constant Field Values
Method Detail

importTaxonomy

public void importTaxonomy(IResource taxDocument,
                           IClassificationIndex index)
                    throws Exception
Imports a taxonomy. A taxonomy decribed in a XML resource is build up as a new taxonomy for the specified index.

Parameters:
taxDocument - XML resource describing the taxonomy to import
index - index to which the new taxonomy is attached
Throws:
Exception

exportTaxonomy

public void exportTaxonomy(ICollection collection,
                           String outputResource,
                           IClassificationIndex index,
                           String taxname)
                    throws Exception
Exports a taxonomy to a resource. The taxonomy is described in XML.

Parameters:
collection - Collection where the resource with the exported taxonomjy is stored.
outputResource - Resource where the exported taxonomy is stored
index -
taxname - Name of the taxonomy to export
Throws:
Exception

getState

public String getState()
After an ex- or import of a taxonomy, you could check the success or problems of this opertation by looking at the state. The possible states are described in this interface.

Returns:

getErrorMessage

public String getErrorMessage()
Returns a more detailed message about what happend during ex- or import.

Returns:

exportDTD

public IResource exportDTD(ICollection exportColl)
                    throws NotSupportedException,
                           AccessDeniedException,
                           ResourceException
Parameters:
exportColl -
Throws:
NotSupportedException
AccessDeniedException
ResourceException

getDuration

public String getDuration()
Returns the duration of the last import or export operation in the following format hh:mm:ss

Returns:

getNumberOfCategories

public int getNumberOfCategories()
Returns the number of categories of the last import or export operation.

Returns:

getTaxonomyName

public String getTaxonomyName()


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.