|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.control.edit.ResourceUtilities
public class ResourceUtilities
resource utilities often used in controls
Copyright 2004 SAP AG
| Nested Class Summary | |
|---|---|
static class |
ResourceUtilities.ContentDataSource
|
| Constructor Summary | |
|---|---|
ResourceUtilities()
|
|
| Method Summary | |
|---|---|
static String |
createInlineLinks(IResourceList resourceList,
String detailsLabel)
|
static MimeMessage |
createMailsWithAttachment(MimeMessage mimemessage,
String from,
Address[] to,
Address[] cc,
Address[] bcc,
String subject,
Object message,
String type,
int priority,
IResourceList resourceList)
|
static MimeMessage |
createMailsWithLinks(MimeMessage mimemessage,
String from,
Address[] to,
Address[] cc,
Address[] bcc,
String subject,
Object message,
String type,
int priority,
IResourceList resourceList,
String detailsLabel)
|
static MimeMessage |
createResourceMessage(MimeMessage mimemessage,
String from,
Address[] to,
Address[] cc,
Address[] bcc,
String subject,
Object message,
String type,
int priority,
IResourceList resourceList,
boolean attachLinks,
String detailsLabel)
creates an email message with attachment, universal method to use for any message fixed charset iso-8859-1 is used to format subject - problem with internationalization !!! |
static MimeMessage |
createResourceMessage(MimeMessage mimemessage,
String from,
String to,
String cc,
String bcc,
String subject,
Object message,
String type,
int priority,
IResourceList resourceList,
boolean attachLinks)
creates an email message with attachment, universal method to use for any message fixed charset iso-8859-1 is used to format subject - problem with internationalization !!! |
static IResource |
dereferenceTarget(IResource resource)
dereferences to resource or external link, follows up the internal links to get to original resource or external link finally, prepare method to call getContent() |
static ICollection |
getCollection(String folderUri,
IResourceContext resourceContext,
boolean create)
gets ICollection object for a folder with given URI, shortcut method |
static IResource |
getTempResource(ICollection where,
String resourceName,
IContent content)
creates a temporary resource with content in collection specifed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceUtilities()
| Method Detail |
|---|
public static final ICollection getCollection(String folderUri,
IResourceContext resourceContext,
boolean create)
throws ResourceException
folderUri - URI od the folder to get ICollection for
ResourceExceptionICollection
public static final IResource dereferenceTarget(IResource resource)
throws ResourceException
resource - any resource to ensure
ResourceException
public static final IResource getTempResource(ICollection where,
String resourceName,
IContent content)
throws ResourceException
where - collection, where the temporarry resource schould be createdresourceName - name of the resource to createcontent - content of the resource
ResourceException
public static final MimeMessage createResourceMessage(MimeMessage mimemessage,
String from,
String to,
String cc,
String bcc,
String subject,
Object message,
String type,
int priority,
IResourceList resourceList,
boolean attachLinks)
throws WcmException
mimemessage - from - sender addressto - send-to addresscc - carbon copy addressbcc - blind carbon copy addresssubject - Email subject, iso-8859-1 characters onlymessage - main body content - some object, usualy String, iso-8859-1 characters onlytype - content-type, usualy text/plainpriority - MessagePriority.NORMAL or MessagePriority.HIGHresourceList - array of resources for attachmentsattachLinks -
WcmException
public static final MimeMessage createResourceMessage(MimeMessage mimemessage,
String from,
Address[] to,
Address[] cc,
Address[] bcc,
String subject,
Object message,
String type,
int priority,
IResourceList resourceList,
boolean attachLinks,
String detailsLabel)
throws WcmException
mimemessage - from - sender addressto - send-to addresscc - carbon copy addressbcc - blind carbon copy addresssubject - Email subject, iso-8859-1 characters onlymessage - main body content - some object, usualy String, iso-8859-1 characters onlytype - content-type, usualy text/plainpriority - MessagePriority.NORMAL or MessagePriority.HIGHresourceList - array of resources for attachmentsattachLinks - detailsLabel -
WcmException
public static MimeMessage createMailsWithLinks(MimeMessage mimemessage,
String from,
Address[] to,
Address[] cc,
Address[] bcc,
String subject,
Object message,
String type,
int priority,
IResourceList resourceList,
String detailsLabel)
throws WcmException
WcmException
public static String createInlineLinks(IResourceList resourceList,
String detailsLabel)
throws WcmException
WcmException
public static MimeMessage createMailsWithAttachment(MimeMessage mimemessage,
String from,
Address[] to,
Address[] cc,
Address[] bcc,
String subject,
Object message,
String type,
int priority,
IResourceList resourceList)
throws WcmException
WcmException| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com]
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||