|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
These methods are only able to be invoked from classes running in the
server. Most of these methods are only needed by the ContentHttp class.
They are also used by the loader and the indexing modules.
Supported API: true
Extendable: false
ContentServerHelper
Method Summary | |
void |
deleteContent(ContentHolder holder,
ContentItem item)
Deletes the passed ContentItem for the given ContentHolder. |
void |
deleteContent(WTSet contentItemSet)
Deletes the contents associated with the input content item set. |
void |
dispatchPostDownloadEvent(ContentHolder holder,
ApplicationData appData)
This method should only be called after the complete and successful download of a file. |
InputStream |
findContentStream(ApplicationData appData)
Return the stream based on a ContentHolder and an ApplicationData object. |
ApplicationData |
getApplicationData(ObjectIdentifier itemId)
Get a ContentItemInfo object based on an object identifier passed on the query string. |
ContentHolder |
getContentHolder(HttpContentOperation op)
Supported API: false |
ContentHolder |
getContentHolder(ObjectIdentifier itemId)
Get a ContentItemInfo object based on an object identifier passed on the query string. |
String |
getFormatName(ContentItem item)
Supported API: false |
Enumeration |
getHtmlFormatNames()
Returns the list of valid formats for ApplicationData objects in the system. |
HttpContentOperation |
getHttpContentOperation(ObjectIdentifier opID)
Deprecated. |
HttpOperationItem |
getHttpOperationItem(ObjectIdentifier itemId)
Deprecated. |
String |
getMimeType(ApplicationData item)
Return the mime type of an ApplicationData object for download. |
int |
getNumberForImport()
Get the configurable number to allow on a new import of content. |
boolean |
indexable(ApplicationData appData)
Returns true if the passed ContentItem is an Indexable class. |
HttpContentOperation |
initializeNewUploads(ContentHolder holder,
HttpContentOperation operation,
int numberToInit)
Used to initialize empty uploads from a import html page. |
void |
initTrx(Persistable obj)
Deprecated. |
void |
setFormatByMimeType(ApplicationData appData,
String mimeType)
Attempt to set the format of an ApplicationData based on the passed mime type. |
ApplicationData |
store3DThumbnail(ContentHolder contentHolder,
ApplicationData thumbnail,
InputStream is)
Store a thumbnail content item for the passed ContentHolder. |
ApplicationData |
storeThumbnail(ContentHolder contentHolder,
ApplicationData thumbnail,
InputStream is)
Store a thumbnail content item for the passed ContentHolder. |
Aggregate |
updateAggregateFile(ContentHolder holder,
Aggregate agg,
ApplicationData appData,
InputStream is)
Update an ApplicationData that is part of the passed Aggregate. |
Aggregate |
updateAggregateFile(ContentHolder holder,
Aggregate agg,
ApplicationData appData,
InputStream is,
boolean mustCreateNewFile)
Supported API: false |
Aggregate |
updateAggregateFile(ContentHolder holder,
Aggregate agg,
ApplicationData appData,
String fullPath)
Update an ApplicationData that is part of the passed Aggregate. |
Aggregate |
updateAggregateURL(ContentHolder holder,
Aggregate agg,
URLData urlData)
Update an URLData that is part of the passed Aggregate. |
Aggregate |
updateContent(ContentHolder holder,
Aggregate agg)
Update a ContentHolder with the given Aggreate. |
ApplicationData |
updateContent(ContentHolder holder,
ApplicationData appData,
CachedContentDescriptor cachedContDesc)
Update a ContentHolder with the given content passed in with a CachedContDesc. |
ApplicationData |
updateContent(ContentHolder holder,
ApplicationData appData,
CachedContentDescriptor cachedContDesc,
boolean mustCreateNewFile)
Supported API: true |
ApplicationData |
updateContent(ContentHolder holder,
ApplicationData appData,
InputStream is)
Update a ContentHolder based on a persised ContentHolder and ContentItemInfo object and a new ApplicationData object and the corresponding stream to the content. |
ApplicationData |
updateContent(ContentHolder holder,
ApplicationData appData,
InputStream is,
boolean mustCreateNewFile)
Supported API: true |
ApplicationData |
updateContent(ContentHolder holder,
ApplicationData appData,
String fullPath)
Update a ContentHolder with the given content passed in with a path. |
URLData |
updateContent(ContentHolder holder,
URLData urlData)
Update a ContentHolder with the given content passed in with a path. |
Object[] |
updateContent(Object[][] holderDataArray)
Update multiple ContentHolders with its corresponding ApplicationData passed in as part of the object[][2]. |
Object[] |
updateContent(Object[][] holderDataArray,
boolean mustCreateNewFile)
Update multiple ContentHolders with its corresponding ApplicationData passed in as part of the object[][2]. |
FormatContentHolder |
updateHolderFormat(FormatContentHolder holder)
This method will update the format for a FormatContentHolder based on the content in it at it's current state. |
WTSet |
updateHolderFormat(WTSet inHolderSet)
This method will update the format for a FormatContentHolder based on the content in it at it's current state. |
ApplicationData |
updatePrimary(FormatContentHolder holder,
ApplicationData appData,
InputStream is)
Update the primary for the passed FormatContentHolder with the passed ApplicationData and stream. |
ContentItem |
updatePrimary(FormatContentHolder holder,
ContentItem item)
Update the primary for the passed FormatContentHolder with the passed ContentItem. |
HttpContentOperation |
updateStatus(HttpContentOperation op,
HttpOperationItem itemStatus,
HttpOperationStatus stat)
Deprecated. |
HttpContentOperation |
updateStatus(HttpContentOperation op,
HttpOperationStatus stat)
Deprecated. |
HttpContentOperation |
updateStatusAsFailed(HttpContentOperation op)
Deprecated. |
void |
writeContentStream(ApplicationData appData,
String path)
Write out the content to a path based on a ContentHolder and an ApplicationData object. |
Method Detail |
public HttpContentOperation getHttpContentOperation(ObjectIdentifier opID) throws ContentException, WTException
opID
-
ContentException
WTException
public HttpOperationItem getHttpOperationItem(ObjectIdentifier itemId) throws WTException
itemId
-
WTException
public InputStream findContentStream(ApplicationData appData) throws WTException
appData
-
WTException
public void writeContentStream(ApplicationData appData, String path) throws WTException, IOException
appData
- path
-
WTException
IOException
public HttpContentOperation updateStatus(HttpContentOperation op, HttpOperationStatus stat) throws WTException, PropertyVetoException
op
- stat
-
WTException
PropertyVetoException
public HttpContentOperation updateStatus(HttpContentOperation op, HttpOperationItem itemStatus, HttpOperationStatus stat) throws WTException, PropertyVetoException
op
- itemStatus
- stat
-
WTException
PropertyVetoException
public HttpContentOperation updateStatusAsFailed(HttpContentOperation op) throws WTException, PropertyVetoException
op
-
WTException
PropertyVetoException
public Enumeration getHtmlFormatNames() throws WTException
WTException
public String getMimeType(ApplicationData item) throws WTException
item
-
WTException
public ApplicationData updateContent(ContentHolder holder, ApplicationData appData, String fullPath) throws WTException, PropertyVetoException, IOException, FileNotFoundException
holder
- appData
- fullPath
-
WTException
PropertyVetoException
IOException
FileNotFoundException
public ApplicationData updateContent(ContentHolder holder, ApplicationData appData, CachedContentDescriptor cachedContDesc) throws WTException, PropertyVetoException
holder
- appData
- cachedContDesc
-
WTException
PropertyVetoException
public URLData updateContent(ContentHolder holder, URLData urlData) throws WTException, PropertyVetoException
holder
- urlData
-
WTException
PropertyVetoException
public ApplicationData updateContent(ContentHolder holder, ApplicationData appData, InputStream is) throws WTException, PropertyVetoException, IOException, FileNotFoundException
holder
- appData
- is
-
WTException
PropertyVetoException
IOException
FileNotFoundException
public Aggregate updateContent(ContentHolder holder, Aggregate agg) throws WTException, PropertyVetoException
holder
- agg
-
WTException
PropertyVetoException
public int getNumberForImport()
public ApplicationData getApplicationData(ObjectIdentifier itemId) throws WTException
itemId
-
WTException
public ContentHolder getContentHolder(ObjectIdentifier itemId) throws WTException
itemId
-
WTException
public HttpContentOperation initializeNewUploads(ContentHolder holder, HttpContentOperation operation, int numberToInit) throws WTException, PropertyVetoException
holder
- operation
- numberToInit
-
WTException
PropertyVetoException
public boolean indexable(ApplicationData appData) throws WTException
appData
-
WTException
public FormatContentHolder updateHolderFormat(FormatContentHolder holder) throws WTException, PropertyVetoException
holder
-
WTException
PropertyVetoException
public String getFormatName(ContentItem item) throws WTException
item
-
WTException
public void initTrx(Persistable obj) throws WTException
obj
-
WTException
public ContentHolder getContentHolder(HttpContentOperation op) throws WTException
op
-
WTException
public void deleteContent(ContentHolder holder, ContentItem item) throws WTException, WTPropertyVetoException
holder
- item
-
WTException
WTPropertyVetoException
public void setFormatByMimeType(ApplicationData appData, String mimeType) throws WTPropertyVetoException, WTException
appData
- mimeType
-
WTPropertyVetoException
WTException
public ApplicationData updatePrimary(FormatContentHolder holder, ApplicationData appData, InputStream is) throws WTException, PropertyVetoException, FileNotFoundException, IOException
holder
- appData
- is
-
WTException
PropertyVetoException
FileNotFoundException
IOException
public ContentItem updatePrimary(FormatContentHolder holder, ContentItem item) throws WTException, PropertyVetoException
holder
- item
-
WTException
PropertyVetoException
public Aggregate updateAggregateFile(ContentHolder holder, Aggregate agg, ApplicationData appData, InputStream is) throws WTException, PropertyVetoException
holder
- agg
- appData
- is
-
WTException
PropertyVetoException
public Aggregate updateAggregateFile(ContentHolder holder, Aggregate agg, ApplicationData appData, String fullPath) throws WTException, PropertyVetoException, IOException, FileNotFoundException
holder
- agg
- appData
- fullPath
-
WTException
PropertyVetoException
IOException
FileNotFoundException
public Aggregate updateAggregateURL(ContentHolder holder, Aggregate agg, URLData urlData) throws WTException, PropertyVetoException
holder
- agg
- urlData
-
WTException
PropertyVetoException
public void dispatchPostDownloadEvent(ContentHolder holder, ApplicationData appData) throws WTException, WTPropertyVetoException
holder
- appData
-
WTException
WTPropertyVetoException
public ApplicationData storeThumbnail(ContentHolder contentHolder, ApplicationData thumbnail, InputStream is) throws WTException, PropertyVetoException, IOException, FileNotFoundException
contentHolder
- thumbnail
- is
-
WTException
PropertyVetoException
IOException
FileNotFoundException
public ApplicationData store3DThumbnail(ContentHolder contentHolder, ApplicationData thumbnail, InputStream is) throws WTException, PropertyVetoException, IOException, FileNotFoundException
contentHolder
- thumbnail
- is
-
WTException
PropertyVetoException
IOException
FileNotFoundException
public ApplicationData updateContent(ContentHolder holder, ApplicationData appData, CachedContentDescriptor cachedContDesc, boolean mustCreateNewFile) throws WTException, PropertyVetoException
holder
- appData
- cachedContDesc
- mustCreateNewFile
-
WTException
PropertyVetoException
public ApplicationData updateContent(ContentHolder holder, ApplicationData appData, InputStream is, boolean mustCreateNewFile) throws WTException, PropertyVetoException, IOException, FileNotFoundException
holder
- appData
- is
- mustCreateNewFile
-
WTException
PropertyVetoException
IOException
FileNotFoundException
public Aggregate updateAggregateFile(ContentHolder holder, Aggregate agg, ApplicationData appData, InputStream is, boolean mustCreateNewFile) throws WTException, PropertyVetoException
holder
- agg
- appData
- is
- mustCreateNewFile
-
WTException
PropertyVetoException
public Object[] updateContent(Object[][] holderDataArray, boolean mustCreateNewFile) throws WTException, PropertyVetoException
holderDataArray
- mustCreateNewFile
-
WTException
PropertyVetoException
public Object[] updateContent(Object[][] holderDataArray) throws WTException, PropertyVetoException
holderDataArray
-
WTException
PropertyVetoException
public void deleteContent(WTSet contentItemSet) throws WTException, WTPropertyVetoException
contentItemSet
-
WTException
WTPropertyVetoException
public WTSet updateHolderFormat(WTSet inHolderSet) throws WTException, PropertyVetoException
inHolderSet
-
WTException
PropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |