|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.app.xmlforms.ResourceUtils
public class ResourceUtils
| Method Summary | |
|---|---|
IResource |
createOrUpdateResource(IResourceContext resContext,
ICollection c,
String name,
IContent content,
IPropertyMap props)
Create a resource, or update its content and properties, if it exists |
IResource |
createOrUpdateResource(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid,
IContent content,
IPropertyMap props)
Create a resource, or update its content and properties, if it exists |
IResource |
createOrUpdateResource(IResourceContext resContext,
String uri,
IContent content,
IPropertyMap props)
Create a resource, or update its content and properties, if it exists |
IResource |
createOrUpdateResourceWithPropertyErrors(IResourceContext resContext,
ICollection c,
String name,
IContent content,
IPropertyMap props)
Create a resource, or update its content and properties, if it exists. |
IResource |
createOrUpdateResourceWithPropertyErrors(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid,
IContent content,
IPropertyMap props)
Create a resource, or update its content and properties, if it exists. |
IResource |
createOrUpdateResourceWithPropertyErrors(IResourceContext resContext,
String uri,
IContent content,
IPropertyMap props)
Create a resource, or update its content and properties, if it exists. |
IResource |
createResource(ICollection c,
String name,
IContent content,
IPropertyMap props,
IResourceContext resContext)
Create a resource |
IResource |
createResource(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid,
IContent content,
IPropertyMap props)
Create a resource |
IResource |
createResource(IResourceContext resContext,
String uri,
IContent content,
IPropertyMap props)
Create a resource |
boolean |
existsResource(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid)
Checks if a resource exists |
boolean |
existsResource(IResourceContext resContext,
String uri)
Checks if a resource exists |
ICollection |
getCollection(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid)
Get a collection by its RID. |
static ResourceUtils |
getInstance()
|
IResource |
getResource(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid)
Get a resource by its RID |
IResource |
getResource(IResourceContext resContext,
String uri)
Get a resource by its URI |
IResource |
getResource(com.sapportals.wcm.util.uri.RID rid)
Get a resource by its RID with the service context |
IResource |
getResource(String uri)
Get a resource by its URI with the service context |
IResourceFactory |
getResourceFactory()
Get a shared resource factory instance |
IResource |
getResourceNoException(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid)
Get a resource by its RID, but do not throw an exception in error case |
IResource |
getResourceNoException(IResourceContext resContext,
String uri)
Get a resource by its URI, but do not throw an exception in error case |
IResource |
getResourceNoException(com.sapportals.wcm.util.uri.RID rid)
Get a resource by its RID with the service context, but do not throw an exception in error case |
IResource |
getResourceNoException(String uri)
Get a resource by its URI with the service context, but do not throw an exception in error case |
IResourceContext |
getServiceContext()
|
InputStream |
getUnfilteredContentStream(IResource res)
Get stream to resource content |
IResource |
updateResource(IResource resource,
IContent content,
IPropertyMap props)
Update content and properties of an existing resource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ResourceUtils getInstance()
throws XFException
XFExceptionpublic IResourceFactory getResourceFactory()
public IResource getResource(String uri)
throws XFException
uri - the resource URI
IResource, or null, if the resource does not exist
XFException
public IResource getResource(com.sapportals.wcm.util.uri.RID rid)
throws XFException
rid - the resource RID
IResource, or null, if the resource does not exist
XFException
public IResource getResource(IResourceContext resContext,
String uri)
throws XFException
resContext - the context to useuri - the resource URI
IResource, or null, if the resource does not exist
XFException
public IResource getResource(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid)
throws XFException
resContext - the context to useRID - the resource RID
IResource, or null, if the resource does not exist
XFException
public ICollection getCollection(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid)
throws XFException
resContext - the context to userid - the collection RID
ICollection representing the collectoin
XFException
public boolean existsResource(IResourceContext resContext,
String uri)
throws XFException
resContext - the context to useuri - the resource URI
true, if the resource exists, false otherwise
XFException
public boolean existsResource(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid)
throws XFException
resContext - the context to userid - the resource RID
true, if the resource exists, false otherwise
XFException
public IResource getResourceNoException(IResourceContext resContext,
String uri)
resContext - the context to useuri - the resource URI
IResource, or null, if the resource does not exist,
or if an error occurred
public IResource getResourceNoException(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid)
resContext - the context to userid - the resource RID
IResource, or null, if the resource does not exist,
or if an error occurredpublic IResource getResourceNoException(String uri)
uri - the resource URI
IResource, or null, if the resource does not exist,
or if an error occurredpublic IResource getResourceNoException(com.sapportals.wcm.util.uri.RID rid)
rid - the resource RID
IResource, or null, if the resource does not exist,
or if an error occurred
public IResource createResource(ICollection c,
String name,
IContent content,
IPropertyMap props,
IResourceContext resContext)
throws XFException
c - the parent collectionname - the name of the new resourcecontent - the content of the new resourceprops - the resource properties
XFException
public IResource createResource(IResourceContext resContext,
String uri,
IContent content,
IPropertyMap props)
throws XFException
resContext - the context to useuri - the URI of the new resourcecontent - the content of the new resourceprops - the resource properties
XFException
public IResource createResource(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid,
IContent content,
IPropertyMap props)
throws XFException
resContext - the context to userid - the RID of the new resourcecontent - the content of the new resourceprops - the resource properties
XFException
public IResource createOrUpdateResource(IResourceContext resContext,
ICollection c,
String name,
IContent content,
IPropertyMap props)
throws XFException
resContext - the context to usec - the parent collectionname - the new or existing resource namecontent - the new resource contentprops - the new resource properties
XFException
public IResource createOrUpdateResource(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid,
IContent content,
IPropertyMap props)
throws XFException
resContext - the context to userid - the RID of the new or existing resourcecontent - the new resource contentprops - the new resource properties
XFException
public IResource createOrUpdateResource(IResourceContext resContext,
String uri,
IContent content,
IPropertyMap props)
throws XFException
resContext - the context to useuri - the URI of the new or existing resourcecontent - the new resource contentprops - the new resource properties
XFException
public IResource updateResource(IResource resource,
IContent content,
IPropertyMap props)
throws XFException
resource - the resource to updatecontent - the new resource contentprops - the new resource properties.
XFException
public InputStream getUnfilteredContentStream(IResource res)
throws XFException
res - handle to the resource
InputStream to unfiltered resource content
XFException
public IResourceContext getServiceContext()
throws XFException
XFException
public IResource createOrUpdateResourceWithPropertyErrors(IResourceContext resContext,
ICollection c,
String name,
IContent content,
IPropertyMap props)
throws XFException,
AbstractPropertyException,
SetPropertiesException
resContext - the context to usec - the parent collectionname - the new or existing resource namecontent - the new resource contentprops - the new resource properties
XFException
AbstractPropertyException
SetPropertiesException
public IResource createOrUpdateResourceWithPropertyErrors(IResourceContext resContext,
com.sapportals.wcm.util.uri.RID rid,
IContent content,
IPropertyMap props)
throws XFException,
AbstractPropertyException,
SetPropertiesException
resContext - the context to userid - the RID of the new or existing resourcecontent - the new resource contentprops - the new resource properties
XFException
AbstractPropertyException
SetPropertiesException
public IResource createOrUpdateResourceWithPropertyErrors(IResourceContext resContext,
String uri,
IContent content,
IPropertyMap props)
throws XFException,
AbstractPropertyException,
SetPropertiesException
resContext - the context to useuri - the URI of the new or existing resourcecontent - the new resource contentprops - the new resource properties
XFException
AbstractPropertyException
SetPropertiesException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
|
SAP NetWeaver 7.30 SP01 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||