com.sapportals.wcm.service.xmlforms

Interface IXFService

All Superinterfaces:
IService

public interface IXFService
extends IService

Copyright 2004 SAP AG


Method Summary
 IXFProject getDefaultXFProject()
          Gets an IXFProject, which represents the default transformations, e.g. as a fallback for rendering
 IXFProject getXFProject(String id)
          Gets the xml transformation project by ID
 IXFProject getXFProject(String id, String homeDir)
          Get a new IXFProject instance with a custom home directory
 IXFProject getXFProjectForRersource(IResource item)
          Gets the projct for this item type
 String getXFProjectIDForResource(IResource item)
          Gets project id from resource type
 Map getXFProjects()
          Gets all projects from the XML Forms framework.
 Map getXFProjects(ICollection collection)
          Gets all projects from the XML Forms framework, which are allowed in a specific collection.
 Map getXFProjects(String collection)
          Gets all projects from the XML Forms framework, which are allowed in a specific collection.
 RID getXMLFormsRoot()
          Gets the RID of the XML Forms root collection
 void invalidateProjects()
          Discards all XML Forms projects, they are reloaded as needed
 void invalidateProjects(String projectId)
          Discards a given XML Forms project, it is reloaded as needed.
 
Methods inherited from interface com.sapportals.wcm.service.IService
getDescription, getDescription, getID
 

Method Detail

getXMLFormsRoot

public RID getXMLFormsRoot()
Gets the RID of the XML Forms root collection

Returns:
the RID of the XML Forms root collection, or null, if it is not available

getXFProject

public IXFProject getXFProject(String id)
Gets the xml transformation project by ID

Parameters:
id - the ID of the project to be returned
Returns:
the IXFProject object for the given ID or null if it does not exist

getXFProject

public IXFProject getXFProject(String id,
                               String homeDir)
Get a new IXFProject instance with a custom home directory

Parameters:
id - the project ID
homeDir - the project home directory. If it is a relative path (does not start with a slash), the path is relative to <XML Forms Home>/<Project ID>
Returns:
a new IXFProject instance, or null if the requested project is not available or contains errors

getDefaultXFProject

public IXFProject getDefaultXFProject()
Gets an IXFProject, which represents the default transformations, e.g. as a fallback for rendering

Returns:
the default project

getXFProjectForRersource

public IXFProject getXFProjectForRersource(IResource item)
Gets the projct for this item type

Parameters:
item - the item to get the project for
Returns:
the IXFProject object for the given item or null if it is not an XML Forms item

getXFProjectIDForResource

public String getXFProjectIDForResource(IResource item)
Gets project id from resource type

Parameters:
item - the item to get the project ID for
Returns:
the ID of the concerned xml project or null if not applicable

getXFProjects

public Map getXFProjects()
Gets all projects from the XML Forms framework. The caller should use the IXFProject.isHidden() and IXFProject.isDeprecated() methods to select the visible projects.

Returns:
a read only map with project IDs as keys. The values are Strings representing the project home directories.

getXFProjects

public Map getXFProjects(ICollection collection)
                  throws XFException
Gets all projects from the XML Forms framework, which are allowed in a specific collection. The caller should use the IXFProject.isHidden() andIXFProject.isDeprecated() methods to select the visible projects.

Parameters:
collection - collection to check, which XML Forms projects are available
Returns:
read only map with project IDs as keys. The values are Strings representing the project home directories. In error case, it returns null
Throws:
XFException

getXFProjects

public Map getXFProjects(String collection)
Gets all projects from the XML Forms framework, which are allowed in a specific collection. The caller should use the IXFProject.isHidden() and IXFProject.isDeprecated() methods to select the visible projects.

Returns:
read only map with project IDs as keys. The values are Strings representing the project home directories.

invalidateProjects

public void invalidateProjects()
                        throws XFException
Discards all XML Forms projects, they are reloaded as needed

Throws:
XFException

invalidateProjects

public void invalidateProjects(String projectId)
                        throws XFException
Discards a given XML Forms project, it is reloaded as needed. It should be called every time, a project changed.

Parameters:
projectId - the ID of the project, which was changed, deleted or created
Throws:
XFException


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.