|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.content.ContentHelper
public class ContentHelper
Used by clients to access the ContentService and defines some client
side helper methods to manipulate content, status objects, and initiate
uploads and downloads.
Usage is ...
ContentHelper.service.contentServiceMethod( args );
Also defines some client side helper methods
Supported API: true
Extendable: false
| Field Summary | |
|---|---|
static ContentService |
service
Supported API: true |
| Method Summary | |
|---|---|
static Vector |
getAggregateMembers(wt.content.Aggregate agg)
Get the list of ContentItem's for the passed Aggregate. |
static Vector |
getApplicationData(ContentHolder holder)
Get the list of ApplicationData objects out of the passed ContentHolder This should be done after a call to ContentHelper.service.getContents( ContentHolder ) This will NOT return the primary for a FormatContentHolder Supported API: true |
static Vector |
getApplicationDataExcludeRoles(ContentHolder holder,
String excludeRoles)
Get the list of ApplicationData objects out of the passed ContentHolder This should be done after a call to ContentHelper.service.getContents( ContentHolder ) This will NOT return the primary for a FormatContentHolder. |
static Vector |
getContentList(ContentHolder holder)
Get the list of ContentItem out of the passed ContentHolder This should be done after a call to ContentHelper.service.getContents( ContentHolder ) Note this will NOT return the primary content for a FormatContentHolder. |
static Vector |
getContentListAll(ContentHolder holder)
Get the list of ContentItem out of the passed ContentHolder This should be done after a call to ContentHelper.service.getContents( ContentHolder ) Note this will return the primary content for a FormatContentHolder, as well as any other attached content. |
static Vector |
getContentListExcludeRoles(ContentHolder holder,
String excludeRoles)
Get the list of ContentItem out of the passed ContentHolder This should be done after a call to ContentHelper.service.getContents( ContentHolder ) Note this will NOT return the primary content for a FormatContentHolder. |
static URL |
getDownloadURL(ContentHolder holder,
ApplicationData appData)
Generates a URL that can be used in download from the server. |
static URL |
getDownloadURL(ContentHolder holder,
ApplicationData appData,
boolean replicatedContent)
Generates a URL that can be used in download from the server. |
static URL |
getDownloadURL(ContentHolder holder,
ApplicationData appData,
boolean replicatedContent,
String fileName)
Generates a URL that can be used in download from the server. |
static URL |
getDownloadURL(ContentHolder holder,
ApplicationData appData,
boolean replicatedContent,
String fileName,
boolean forceDownload)
Generates a URL that can be used in download from the server. |
static ContentItem |
getPrimary(FormatContentHolder holder)
Returns the primary ContentItem for a FormatContentHolder, if it exists. |
static URL |
getUploadURL(ContentHolder holder)
Generates a URL that can be used in an upload post. |
static Vector |
getURLData(ContentHolder holder)
Get the list of URLData objects out of the passed ContentHolder This should be done after a call to ContentHelper.service.getContents( ContentHolder ) This will NOT return the Primary for a FormatConentHolder. |
static boolean |
needToGetContent(ContentHolder holder)
This will return true if the passed ContentHolder has already been passed to the server to get it's content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ContentService service
| Method Detail |
|---|
public static Vector getContentList(ContentHolder holder)
throws WTException
holder -
WTException
public static Vector getURLData(ContentHolder holder)
throws WTException
holder -
WTException
public static Vector getApplicationData(ContentHolder holder)
throws WTException
holder -
WTExceptionpublic static boolean needToGetContent(ContentHolder holder)
holder -
public static ContentItem getPrimary(FormatContentHolder holder)
holder -
public static URL getUploadURL(ContentHolder holder)
throws WTException
holder -
WTException
public static URL getDownloadURL(ContentHolder holder,
ApplicationData appData)
throws WTException
holder - appData -
WTException
public static Vector getAggregateMembers(wt.content.Aggregate agg)
throws WTException
agg -
WTException
public static Vector getContentListAll(ContentHolder holder)
throws WTException
holder -
WTException
public static Vector getApplicationDataExcludeRoles(ContentHolder holder,
String excludeRoles)
throws WTException
holder - excludeRoles - The list of roles that this method should exclude. The roles are in the external format like SECONDARY, THUMBNAIL, and THUMBNAIL3D. The roles should be in a comma delimited string. This method will convert them to the ContentRoleType objects. If a string in the list isn't converted because of an exception, that role type will not be excluded.
WTException
public static Vector getContentListExcludeRoles(ContentHolder holder,
String excludeRoles)
throws WTException
holder - excludeRoles - The list of roles that this method should exclude. The roles are in the external format like SECONDARY, THUMBNAIL, and THUMBNAIL3D. The roles should be in a comma delimited string. This method will convert them to the ContentRoleType objects. If a string in the list isn't converted because of an exception, that role type will not be excluded.
WTException
public static URL getDownloadURL(ContentHolder holder,
ApplicationData appData,
boolean replicatedContent)
throws WTException
holder - appData - replicatedContent -
WTException
public static URL getDownloadURL(ContentHolder holder,
ApplicationData appData,
boolean replicatedContent,
String fileName)
throws WTException
holder - appData - replicatedContent - fileName -
WTException
public static URL getDownloadURL(ContentHolder holder,
ApplicationData appData,
boolean replicatedContent,
String fileName,
boolean forceDownload)
throws WTException
holder - appData - replicatedContent - fileName - forceDownload -
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||