public class ResourceUtilities extends Object
Copyright 2004 SAP AG
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceUtilities.ContentDataSource |
| Constructor and Description |
|---|
ResourceUtilities() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final ICollection getCollection(String folderUri, IResourceContext resourceContext, boolean create) throws ResourceException
folderUri - URI od the folder to get ICollection forresourceContext - resourceContextcreate - createResourceException - ResourceExceptionpublic static final IResource dereferenceTarget(IResource resource) throws ResourceException
resource - any resource to ensureResourceException - ResourceExceptionpublic 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 resourceResourceException - ResourceExceptionpublic 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 - mimemessagefrom - 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 - attachLinksWcmException - WcmExceptionpublic 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 - mimemessagefrom - 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 - attachLinksdetailsLabel - detailsLabelWcmException - WcmExceptionpublic 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
WcmExceptionpublic static String createInlineLinks(IResourceList resourceList, String detailsLabel) throws WcmException
WcmExceptionpublic 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
|
Copyright 2017 SAP AG Complete Copyright Notice