|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.content.StandardContentService
This is a Windchill standard manager for Content services.
Use the newStandardContentService
static factory method(s),
not the StandardContentService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Nested Class Summary | |
(package private) class |
StandardContentService.ContentEventListener
|
(package private) class |
StandardContentService.ContentEventMultiObjectListener
Event listener to handle multi objects events. |
(package private) static class |
StandardContentService.WaitNotifier
Each of the holder in the holders set will have a HashSet of AppDatas corresponds to it, the HashSet will also be used to store strings (file names) in addition to AppDatas object type. |
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.content.ContentService |
FILE_SET, NONE, UNKNOWN, URL |
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardContentService()
|
Method Summary | |
private void |
addItemToHolder(ContentHolder holder,
ContentItem item,
WTKeyedMap holders,
HashSet itemIds,
HashSet streamIds)
|
private static void |
cacheDataFormatInfo()
|
private boolean |
checkModifyAccess(ContentHolder holder)
|
private void |
cleanUpAllContent(ContentHolder holder,
ContentItem item,
boolean onDeleteEvent)
|
private void |
cleanUpContent(ContentItem item,
boolean onDeleteEvent)
|
private void |
cleanUpContent(Streamed sd,
boolean onDeleteEvent)
|
private void |
cleanUpContent(WTSet cleanupContents,
boolean onDeleteEvent)
This method removes the contentItem objects as well as the associated streamed objects. |
private void |
collectStreamedForContentItem(ContentItem item,
boolean onDeleteEvent,
WTCollection streameds)
|
ContentHolder |
contentUpdate(ContentHolder holder,
TransactionContainer txnCntr)
This method adds, removes, and updates content based on a ContentHolder and a TransactionContainer object. |
ContentHolder |
contentUpdateDownload(ContentHolder holder,
TransactionContainer txnCntr)
Deprecated. |
ContentHolder |
contentUpdateUpload(ContentHolder holder,
TransactionContainer txnCntr)
Deprecated. |
private void |
CopyAggregateContentForHolder(Aggregate agg)
|
ContentHolder |
copyContent(ContentHolder copyFrom,
ContentHolder copyTo)
Copy all the content from one content holder to another (not regarding the content role. |
void |
copyContent(WTKeyedMap old2newMapping)
Copy all the content from one content holder to another (not regarding the content role. |
private void |
copyContentFromHolder(ContentHolder oldCH,
ContentHolder target)
|
private void |
copyContentFromMultiHolders(WTKeyedMap old2newMapping)
|
ContentItem |
copyContentItem(ContentHolder holder,
ContentItem item)
Make an exact copy of the ContentItem for the passed holder. |
void |
copyContentItemsNoRoleCheck(WTKeyedMap holderToItemMap)
Make a copy of the ContentItem objects for the corresponding ContentHolder objects. |
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. |
protected void |
dispatchVetoableEvent(ContentServiceEvent event,
boolean isMultiObject)
|
protected void |
dispatchVetoableEvent(String eventType,
ContentHolder holder,
ApplicationData appData)
Dispatches a VersionControlServiceEvent that includes the event type and target (i.e., either an Iterated or Versioned object). |
protected void |
dispatchVetoableEvent(String eventType,
WTKeyedHashMap holderAppDataMap)
|
private HttpOperationItem |
downloadWait(HttpOperationItem opItem)
|
private ApplicationData |
findCachedAppData(ContentHolder holder,
String appDataName,
WTKeyedMap appDataCache)
Find any appData object in the hashtable for the holder that matches the input appDataName. |
InputStream |
findContentStream(ApplicationData appData)
Return the stream based on a ContentHolder and an ApplicationData object. |
ApplicationData |
get3DThumbnail(ContentHolder contentHolder)
Get an associated Thumbnail content item for the passed ContentHolder. |
ApplicationData |
getApplicationData(ObjectIdentifier itemId)
Get a ContentItemInfo object based on an object identifier passed on the query string. |
String |
getConceptualClassname()
Deprecated. |
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. |
ContentHolder |
getContents(ContentHolder holder)
Set the cookie in an ContentHolder object to contain all ContentItems associated with it. |
HashMap |
getContents(HashMap holders)
Set the cookie in an every ContentHolder object in HashMap to contain all ContentItems associated with it. |
QueryResult |
getContentsByRole(ContentHolder holder,
ContentRoleType role)
Query for all the associated ContentItems that have the passed Role for the ContentHolder. |
WTKeyedMap |
getContentsByRole(WTSet holderSet,
ContentRoleType role)
Query for all the associated ContentItems that have the passed Role for the ContentHolder. |
private QueryResult |
getContentStatuses(ContentHolder holder,
boolean returnNotComplete)
|
DataFormat |
getDataFormat(String idStr)
Get a DataFormat object based on a stringified object identifier. |
QueryResult |
getDataFormats()
Deprecated. |
private static String |
getFileExtension(String filename)
|
DataFormat |
getFormatByName(String formatName)
Get a DataFormat object based on the formatName Supported API: false |
String |
getFormatName(ContentItem item)
Supported API: false |
Vector |
getFormatNames()
Returns a Vector of the FormatNames in the system from DataFormat class that are applicable for ApplicationData objects. |
Enumeration |
getHtmlFormatNames()
Returns the list of valid formats for ApplicationData objects in the system. |
HttpContentOperation |
getHttpContentOperation(ObjectIdentifier opID)
Deprecated. |
HttpContentOperation |
getHttpContentOperationStatuses(HttpContentOperation operation)
Deprecated. |
HttpOperationItem |
getHttpOperationItem(ObjectIdentifier itemId)
Deprecated. |
private WTKeyedMap |
getLockContentItemSet(WTCollection holders)
|
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. |
ContentItem |
getPrimary(FormatContentHolder holder)
Deprecated. |
ContentItem |
getPrimaryContent(ObjectReference formatContentHolderRef)
Get the primary ContentItem for the passed reference to a ContentHolder. |
ApplicationData |
getThumbnail(ContentHolder contentHolder)
Get an associated Thumbnail content item for the passed ContentHolder. |
private ApplicationData |
getThumbnail(ContentHolder contentHolder,
ContentRoleType roleType)
|
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. |
private void |
initProperties()
|
void |
initTrx(Persistable obj)
Deprecated. |
private void |
lockObjects(HashSet objs,
Class objCl)
|
private void |
lockStoredItems(WTCollection cItems)
|
void |
newContentServiceSvr(ContentHolder holder,
ApplicationData appData)
|
static StandardContentService |
newStandardContentService()
Default factory for the class. |
protected void |
performStartupProcess()
Supported API: false |
private void |
postMakeUnrestorable(ContentHolder holder)
|
HttpContentOperation |
prepareForDownload(ContentHolder holder,
Vector contentV)
Deprecated. |
HttpContentOperation |
prepareForFullDownload(ContentHolder holder)
Deprecated. |
HttpContentOperation |
prepareForFullUpload(ContentHolder holder)
Deprecated. |
HttpContentOperation |
prepareForUpload(ContentHolder holder)
Deprecated. |
HttpContentOperation |
prepareForUpload(ContentHolder holder,
Vector contentV)
Deprecated. |
private Hashtable |
prepareStoredItemMap(Object[][] holderDataArray)
Returns a hashtable for the mapping between stream id (key) and StoredItem (value). |
protected void |
processCleanupLinkEvent(Persistable target,
Persistable plink)
|
protected void |
processCleanupLinkMultiObjectEvent(WTKeyedMap target)
CLEANUP_LINK event will be fired when a content holder (e.g. |
protected void |
processNewIterationEvent(ContentHolder target)
|
private void |
processNewIterationMultiObjectEvent(WTCollection newHolders)
|
protected void |
processPostCopyEvent(ContentHolder orig,
ContentHolder copy,
CopyRules copy_rules)
|
protected void |
processPostDeleteEvent(Persistable target)
|
protected void |
processPostDeleteMultiObjectEvent(WTCollection targets)
|
private void |
processPostMultiCopyEvent(WTKeyedMap target,
Map copyRulesMap)
|
protected void |
processPostRefreshEvent(Persistable target)
|
protected void |
processPostRefreshMultiObjectEvent(WTCollection targets)
|
protected void |
processPostStoreEvent(Persistable target)
|
protected void |
processPostStoreMultiObjectEvent(WTCollection targets)
|
protected void |
processPreStoreEvent(Persistable target)
|
protected void |
processPreStoreMultiObjectEvent(WTCollection targets)
This method sets the format for all the FormatContentHolder in the collection. |
void |
registerEvents(ManagerService mService)
Register events with the passed ManagerService. |
private Aggregate |
resolveAgg(Aggregate agg)
|
private void |
setFileName(ContentHolder holder,
ApplicationData appData)
|
private void |
setFileName(ContentHolder holder,
ApplicationData appData,
boolean mustCreateNewFile)
Assign file name to the app data. |
private void |
setFileName(ContentHolder holder,
ApplicationData appData,
boolean mustCreateNewFile,
WTKeyedMap appDataCache)
Assign file name to the app data. |
private void |
setFormat(ContentItem item)
|
private void |
setFormat(ContentItem item,
String name)
|
static void |
setFormat(String filename,
ContentItem item)
|
void |
setFormatByMimeType(ApplicationData appData,
String mimeType)
Attempt to set the format of an ApplicationData based on the passed mime type. |
private void |
setFormatContentHolderFormat(FormatContentHolder holder)
|
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. |
ApplicationData |
updateAppData(ContentHolder holder,
ApplicationData appData)
This method updates an ApplicationData without changing the timestamp. |
private void |
updateCacheAppData(WTKeyedMap appDataCache,
ContentHolder holder,
ApplicationData appData)
|
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: false |
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: false |
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. |
FormatContentHolder |
updateHolderFormat(FormatContentHolder holder,
ContentItem item)
|
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. |
private HttpContentOperation |
uploadWait(HttpContentOperation op)
|
HttpContentOperation |
waitForStatus(HttpContentOperation op)
Deprecated. |
HttpOperationItem |
waitForStatus(HttpOperationItem opItem)
Deprecated. |
void |
writeContentStream(ApplicationData appData,
String path)
Write out the content to a path based on a ContentHolder and an ApplicationData object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static long previousOldFolderId
private static long previousNewFolderId
private static FileFolder previousNewFolder
public static String WORKSPACE_KEY_IN_METHOD_CONTEXT_CACHE
private static final boolean CONTENT_ITEM_DEBUG
private static boolean DEBUG
private static boolean POLL_DEBUG
private static boolean WAIT_DEBUG
private static boolean USE_PRIMARY
private static boolean VALID_EMPTY_FILE
private static final String LOCK
private String HTTP_CLASS
private String CONTENT_TMP_FILE_BASE
private int IMPORT_NUMBER
private int UPLOAD_TIME_OUT
private int DOWNLOAD_TIME_OUT
private int JOINIDS_CHUNKSIZE
private int POM_CHUNKSIZE
private static Vector SERVER_FORMAT_NAMES
private static Hashtable FORMAT_NAME_MAP
private static Hashtable FORMAT_ID_MAP
private static Hashtable INDEXABLE_MAP
private static Hashtable MIME_TYPE_MAP
private static Hashtable EXTENSION_MAP
private static Hashtable DATA_FORMAT_MAP
private static Hashtable notifiers
private static ResourceBundle messagesResource
private KeyedEventListener listener
private KeyedEventListener multiObjectListener
Constructor Detail |
public StandardContentService()
Method Detail |
public void newContentServiceSvr(ContentHolder holder, ApplicationData appData) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public void registerEvents(ManagerService mService)
registerEvents
in interface Manager
registerEvents
in class StandardManager
mService
- the ManagerService with which to register events.protected void dispatchVetoableEvent(String eventType, ContentHolder holder, ApplicationData appData) throws WTException, WTPropertyVetoException
eventType
- The name of the PersistentManagerEvent type.holder
- The target of the persistable operation.appData
-
WTException
WTPropertyVetoException
public static StandardContentService newStandardContentService() throws WTException
WTException
public HttpContentOperation getHttpContentOperation(ObjectIdentifier opID) throws ContentException, WTException
getHttpContentOperation
in interface ContentServiceSvr
opID
-
ContentException
WTException
public HttpOperationItem getHttpOperationItem(ObjectIdentifier itemId) throws WTException
getHttpOperationItem
in interface ContentServiceSvr
itemId
-
WTException
public InputStream findContentStream(ApplicationData appData) throws WTException
findContentStream
in interface ContentServiceSvr
appData
-
WTException
public void writeContentStream(ApplicationData appData, String path) throws WTException, IOException
writeContentStream
in interface ContentServiceSvr
appData
- path
-
WTException
IOException
public HttpContentOperation updateStatus(HttpContentOperation op, HttpOperationStatus stat) throws WTException, PropertyVetoException
updateStatus
in interface ContentServiceSvr
op
- stat
-
WTException
PropertyVetoException
public HttpContentOperation updateStatus(HttpContentOperation op, HttpOperationItem itemStatus, HttpOperationStatus stat) throws WTException, PropertyVetoException
updateStatus
in interface ContentServiceSvr
op
- itemStatus
- stat
-
WTException
PropertyVetoException
public HttpContentOperation updateStatusAsFailed(HttpContentOperation op) throws WTException, PropertyVetoException
updateStatusAsFailed
in interface ContentServiceSvr
op
-
WTException
PropertyVetoException
public Enumeration getHtmlFormatNames() throws WTException
getHtmlFormatNames
in interface ContentServiceSvr
WTException
public String getMimeType(ApplicationData item) throws WTException
getMimeType
in interface ContentServiceSvr
item
-
WTException
public ApplicationData updateContent(ContentHolder holder, ApplicationData appData, String fullPath) throws WTException, PropertyVetoException, IOException, FileNotFoundException
updateContent
in interface ContentServiceSvr
holder
- appData
- fullPath
-
WTException
PropertyVetoException
IOException
FileNotFoundException
public ApplicationData updateContent(ContentHolder holder, ApplicationData appData, CachedContentDescriptor cachedContDesc) throws WTException, PropertyVetoException
updateContent
in interface ContentServiceSvr
holder
- appData
- cachedContDesc
-
WTException
PropertyVetoException
public URLData updateContent(ContentHolder holder, URLData urlData) throws WTException, PropertyVetoException
updateContent
in interface ContentServiceSvr
holder
- urlData
-
WTException
PropertyVetoException
public ApplicationData updateContent(ContentHolder holder, ApplicationData appData, InputStream is) throws WTException, PropertyVetoException, IOException, FileNotFoundException
updateContent
in interface ContentServiceSvr
holder
- appData
- is
-
WTException
PropertyVetoException
IOException
FileNotFoundException
public Aggregate updateContent(ContentHolder holder, Aggregate agg) throws WTException, PropertyVetoException
updateContent
in interface ContentServiceSvr
holder
- agg
-
WTException
PropertyVetoException
public int getNumberForImport()
getNumberForImport
in interface ContentServiceSvr
public ApplicationData getApplicationData(ObjectIdentifier itemId) throws WTException
getApplicationData
in interface ContentServiceSvr
itemId
-
WTException
public ContentHolder getContentHolder(ObjectIdentifier itemId) throws WTException
getContentHolder
in interface ContentServiceSvr
itemId
-
WTException
public HttpContentOperation initializeNewUploads(ContentHolder holder, HttpContentOperation operation, int numberToInit) throws WTException, PropertyVetoException
initializeNewUploads
in interface ContentServiceSvr
holder
- operation
- numberToInit
-
WTException
PropertyVetoException
public boolean indexable(ApplicationData appData) throws WTException
indexable
in interface ContentServiceSvr
appData
-
WTException
public FormatContentHolder updateHolderFormat(FormatContentHolder holder) throws WTException, PropertyVetoException
updateHolderFormat
in interface ContentServiceSvr
holder
-
WTException
PropertyVetoException
public String getFormatName(ContentItem item) throws WTException
getFormatName
in interface ContentServiceSvr
item
-
WTException
public void initTrx(Persistable obj) throws WTException
initTrx
in interface ContentServiceSvr
obj
-
WTException
public ContentHolder getContentHolder(HttpContentOperation op) throws WTException
getContentHolder
in interface ContentServiceSvr
op
-
WTException
public void deleteContent(ContentHolder holder, ContentItem item) throws WTException, WTPropertyVetoException
deleteContent
in interface ContentServiceSvr
holder
- item
-
WTException
WTPropertyVetoException
public void setFormatByMimeType(ApplicationData appData, String mimeType) throws WTPropertyVetoException, WTException
setFormatByMimeType
in interface ContentServiceSvr
appData
- mimeType
-
WTPropertyVetoException
WTException
public ApplicationData updatePrimary(FormatContentHolder holder, ApplicationData appData, InputStream is) throws WTException, PropertyVetoException, FileNotFoundException, IOException
updatePrimary
in interface ContentServiceSvr
holder
- appData
- is
-
WTException
PropertyVetoException
FileNotFoundException
IOException
public ContentItem updatePrimary(FormatContentHolder holder, ContentItem item) throws WTException, PropertyVetoException
updatePrimary
in interface ContentServiceSvr
holder
- item
-
WTException
PropertyVetoException
public Aggregate updateAggregateFile(ContentHolder holder, Aggregate agg, ApplicationData appData, InputStream is) throws WTException, PropertyVetoException
updateAggregateFile
in interface ContentServiceSvr
holder
- agg
- appData
- is
-
WTException
PropertyVetoException
public Aggregate updateAggregateFile(ContentHolder holder, Aggregate agg, ApplicationData appData, String fullPath) throws WTException, PropertyVetoException, IOException, FileNotFoundException
updateAggregateFile
in interface ContentServiceSvr
holder
- agg
- appData
- fullPath
-
WTException
PropertyVetoException
IOException
FileNotFoundException
public Aggregate updateAggregateURL(ContentHolder holder, Aggregate agg, URLData urlData) throws WTException, PropertyVetoException
updateAggregateURL
in interface ContentServiceSvr
holder
- agg
- urlData
-
WTException
PropertyVetoException
public void dispatchPostDownloadEvent(ContentHolder holder, ApplicationData appData) throws WTException, WTPropertyVetoException
dispatchPostDownloadEvent
in interface ContentServiceSvr
holder
- appData
-
WTException
WTPropertyVetoException
public ApplicationData storeThumbnail(ContentHolder contentHolder, ApplicationData thumbnail, InputStream is) throws WTException, PropertyVetoException, IOException, FileNotFoundException
storeThumbnail
in interface ContentServiceSvr
contentHolder
- thumbnail
- is
-
WTException
PropertyVetoException
IOException
FileNotFoundException
public ApplicationData store3DThumbnail(ContentHolder contentHolder, ApplicationData thumbnail, InputStream is) throws WTException, PropertyVetoException, IOException, FileNotFoundException
store3DThumbnail
in interface ContentServiceSvr
contentHolder
- thumbnail
- is
-
WTException
PropertyVetoException
IOException
FileNotFoundException
public ApplicationData updateContent(ContentHolder holder, ApplicationData appData, CachedContentDescriptor cachedContDesc, boolean mustCreateNewFile) throws WTException, PropertyVetoException
updateContent
in interface ContentServiceSvr
holder
- appData
- cachedContDesc
- mustCreateNewFile
-
WTException
PropertyVetoException
public ApplicationData updateContent(ContentHolder holder, ApplicationData appData, InputStream is, boolean mustCreateNewFile) throws WTException, PropertyVetoException, IOException, FileNotFoundException
updateContent
in interface ContentServiceSvr
holder
- appData
- is
- mustCreateNewFile
-
WTException
PropertyVetoException
IOException
FileNotFoundException
public Aggregate updateAggregateFile(ContentHolder holder, Aggregate agg, ApplicationData appData, InputStream is, boolean mustCreateNewFile) throws WTException, PropertyVetoException
updateAggregateFile
in interface ContentServiceSvr
holder
- agg
- appData
- is
- mustCreateNewFile
-
WTException
PropertyVetoException
public Object[] updateContent(Object[][] holderDataArray, boolean mustCreateNewFile) throws WTException, PropertyVetoException
updateContent
in interface ContentServiceSvr
holderDataArray
- mustCreateNewFile
-
WTException
PropertyVetoException
public Object[] updateContent(Object[][] holderDataArray) throws WTException, PropertyVetoException
updateContent
in interface ContentServiceSvr
holderDataArray
-
WTException
PropertyVetoException
public void deleteContent(WTSet contentItemSet) throws WTException, WTPropertyVetoException
deleteContent
in interface ContentServiceSvr
contentItemSet
-
WTException
WTPropertyVetoException
public WTSet updateHolderFormat(WTSet inHolderSet) throws WTException, PropertyVetoException
updateHolderFormat
in interface ContentServiceSvr
inHolderSet
-
WTException
PropertyVetoException
public HttpContentOperation prepareForUpload(ContentHolder holder) throws WTException, PropertyVetoException
prepareForUpload
in interface ContentService
holder
-
WTException
PropertyVetoException
public HttpContentOperation prepareForFullUpload(ContentHolder holder) throws WTException, PropertyVetoException
prepareForFullUpload
in interface ContentService
holder
-
WTException
PropertyVetoException
public HttpContentOperation prepareForUpload(ContentHolder holder, Vector contentV) throws WTException, PropertyVetoException
prepareForUpload
in interface ContentService
holder
- contentV
-
WTException
PropertyVetoException
public HttpContentOperation prepareForFullDownload(ContentHolder holder) throws WTException, PropertyVetoException
prepareForFullDownload
in interface ContentService
holder
-
WTException
PropertyVetoException
public HttpContentOperation prepareForDownload(ContentHolder holder, Vector contentV) throws WTException, PropertyVetoException
prepareForDownload
in interface ContentService
holder
- contentV
-
WTException
PropertyVetoException
public HttpContentOperation waitForStatus(HttpContentOperation op) throws PropertyVetoException, ContentException, InterruptedException, WTException
waitForStatus
in interface ContentService
op
-
PropertyVetoException
ContentException
InterruptedException
WTException
HttpOperationStatus
public HttpOperationItem waitForStatus(HttpOperationItem opItem) throws PropertyVetoException, ContentException, InterruptedException, WTException
waitForStatus
in interface ContentService
opItem
-
PropertyVetoException
ContentException
InterruptedException
WTException
HttpOperationStatus
public Vector getFormatNames() throws WTException
getFormatNames
in interface ContentService
WTException
public ContentHolder getContents(ContentHolder holder) throws WTException, PropertyVetoException
getContents
in interface ContentService
holder
-
WTException
PropertyVetoException
public HttpContentOperation getHttpContentOperationStatuses(HttpContentOperation operation) throws WTException, PropertyVetoException
getHttpContentOperationStatuses
in interface ContentService
operation
-
WTException
PropertyVetoException
public DataFormat getDataFormat(String idStr) throws WTException
getDataFormat
in interface ContentService
idStr
-
WTException
ObjectIdentifier
public DataFormat getFormatByName(String formatName) throws WTException
getFormatByName
in interface ContentService
formatName
-
WTException
public QueryResult getDataFormats() throws WTException
getDataFormats
in interface ContentService
WTException
public ContentHolder contentUpdate(ContentHolder holder, TransactionContainer txnCntr) throws WTException, PropertyVetoException
contentUpdate
in interface ContentService
holder
- txnCntr
-
WTException
PropertyVetoException
TransactionContainer
public ContentHolder contentUpdateUpload(ContentHolder holder, TransactionContainer txnCntr) throws WTException, PropertyVetoException
contentUpdateUpload
in interface ContentService
holder
- txnCntr
-
WTException
PropertyVetoException
TransactionContainer
,
HttpContentOperation
,
ApplicationData
public ContentHolder contentUpdateDownload(ContentHolder holder, TransactionContainer txnCntr) throws WTException, PropertyVetoException
contentUpdateDownload
in interface ContentService
holder
- txnCntr
-
WTException
PropertyVetoException
TransactionContainer
,
HttpContentOperation
,
ApplicationData
public ApplicationData updateAppData(ContentHolder holder, ApplicationData appData) throws WTException, PropertyVetoException
updateAppData
in interface ContentService
holder
- appData
-
WTException
PropertyVetoException
public ContentItem getPrimary(FormatContentHolder holder) throws WTException, PropertyVetoException
getPrimary
in interface ContentService
holder
-
WTException
PropertyVetoException
public ContentHolder copyContent(ContentHolder copyFrom, ContentHolder copyTo) throws WTException, PropertyVetoException
copyContent
in interface ContentService
copyFrom
- copyTo
-
WTException
PropertyVetoException
public ContentItem copyContentItem(ContentHolder holder, ContentItem item) throws WTException, PropertyVetoException
copyContentItem
in interface ContentService
holder
- item
-
WTException
PropertyVetoException
public QueryResult getContentsByRole(ContentHolder holder, ContentRoleType role) throws WTException
getContentsByRole
in interface ContentService
holder
- role
-
WTException
public ApplicationData getThumbnail(ContentHolder contentHolder) throws WTException
getThumbnail
in interface ContentService
contentHolder
-
WTException
public HashMap getContents(HashMap holders) throws WTException, PropertyVetoException
getContents
in interface ContentService
holders
-
WTException
PropertyVetoException
public ApplicationData get3DThumbnail(ContentHolder contentHolder) throws WTException
get3DThumbnail
in interface ContentService
contentHolder
-
WTException
public ContentItem getPrimaryContent(ObjectReference formatContentHolderRef) throws WTException
getPrimaryContent
in interface ContentService
formatContentHolderRef
-
WTException
public WTKeyedMap getContentsByRole(WTSet holderSet, ContentRoleType role) throws WTException
getContentsByRole
in interface ContentService
holderSet
- role
-
WTException
public void copyContent(WTKeyedMap old2newMapping) throws WTException, PropertyVetoException
copyContent
in interface ContentService
old2newMapping
-
WTException
PropertyVetoException
public void copyContentItemsNoRoleCheck(WTKeyedMap holderToItemMap) throws WTException, PropertyVetoException
copyContentItemsNoRoleCheck
in interface ContentService
holderToItemMap
- A map between recipient ContentHolder objects and WTSet instances filled with ContentItem objects to be copied. WTException
PropertyVetoException
protected void processCleanupLinkMultiObjectEvent(WTKeyedMap target) throws WTException
WTException
private void addItemToHolder(ContentHolder holder, ContentItem item, WTKeyedMap holders, HashSet itemIds, HashSet streamIds)
private void lockObjects(HashSet objs, Class objCl) throws WTException
WTException
private WTKeyedMap getLockContentItemSet(WTCollection holders) throws WTException
WTException
private void lockStoredItems(WTCollection cItems) throws WTException
WTException
private void processNewIterationMultiObjectEvent(WTCollection newHolders) throws WTException
WTException
private void copyContentFromMultiHolders(WTKeyedMap old2newMapping) throws WTException, PropertyVetoException
WTException
PropertyVetoException
private void CopyAggregateContentForHolder(Aggregate agg) throws WTException
WTException
private void processPostMultiCopyEvent(WTKeyedMap target, Map copyRulesMap) throws WTException
WTException
private void initProperties() throws WTException, IOException
WTException
IOException
private static void cacheDataFormatInfo() throws WTException
WTException
protected void processPostRefreshEvent(Persistable target) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
protected void processPostRefreshMultiObjectEvent(WTCollection targets) throws WTException
WTException
protected void processPostDeleteEvent(Persistable target) throws WTException
WTException
protected void processPostDeleteMultiObjectEvent(WTCollection targets) throws WTException
WTException
protected void processCleanupLinkEvent(Persistable target, Persistable plink) throws WTException
WTException
private void setFormatContentHolderFormat(FormatContentHolder holder) throws WTException
WTException
protected void processPreStoreEvent(Persistable target) throws WTException
WTException
protected void processPreStoreMultiObjectEvent(WTCollection targets) throws WTException
WTException
protected void processPostStoreEvent(Persistable target) throws WTException
WTException
protected void processPostStoreMultiObjectEvent(WTCollection targets) throws WTException
WTException
protected void processNewIterationEvent(ContentHolder target) throws WTException
WTException
protected void processPostCopyEvent(ContentHolder orig, ContentHolder copy, CopyRules copy_rules) throws WTException
WTException
private void copyContentFromHolder(ContentHolder oldCH, ContentHolder target) throws WTException
WTException
private Aggregate resolveAgg(Aggregate agg) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private void collectStreamedForContentItem(ContentItem item, boolean onDeleteEvent, WTCollection streameds) throws WTException
WTException
private void cleanUpAllContent(ContentHolder holder, ContentItem item, boolean onDeleteEvent) throws WTException
WTException
private void cleanUpContent(ContentItem item, boolean onDeleteEvent) throws WTException
WTException
private void cleanUpContent(Streamed sd, boolean onDeleteEvent) throws WTException
WTException
private void cleanUpContent(WTSet cleanupContents, boolean onDeleteEvent) throws WTException
WTException
private void setFormat(ContentItem item) throws WTPropertyVetoException, WTException
WTPropertyVetoException
WTException
public static void setFormat(String filename, ContentItem item) throws WTPropertyVetoException, WTException
WTPropertyVetoException
WTException
private static String getFileExtension(String filename)
private QueryResult getContentStatuses(ContentHolder holder, boolean returnNotComplete) throws WTException
WTException
public FormatContentHolder updateHolderFormat(FormatContentHolder holder, ContentItem item) throws WTException, PropertyVetoException
WTException
PropertyVetoException
private void setFormat(ContentItem item, String name) throws WTException, PropertyVetoException
WTException
PropertyVetoException
private void setFileName(ContentHolder holder, ApplicationData appData) throws WTException, PropertyVetoException
WTException
PropertyVetoException
private void setFileName(ContentHolder holder, ApplicationData appData, boolean mustCreateNewFile) throws WTException, PropertyVetoException
WTException
PropertyVetoException
private void setFileName(ContentHolder holder, ApplicationData appData, boolean mustCreateNewFile, WTKeyedMap appDataCache) throws WTException, PropertyVetoException
WTException
PropertyVetoException
private ApplicationData findCachedAppData(ContentHolder holder, String appDataName, WTKeyedMap appDataCache)
private void updateCacheAppData(WTKeyedMap appDataCache, ContentHolder holder, ApplicationData appData)
private HttpContentOperation uploadWait(HttpContentOperation op) throws InterruptedException, WTException
InterruptedException
WTException
private HttpOperationItem downloadWait(HttpOperationItem opItem) throws InterruptedException, WTException
InterruptedException
WTException
private boolean checkModifyAccess(ContentHolder holder) throws WTException
WTException
private ApplicationData getThumbnail(ContentHolder contentHolder, ContentRoleType roleType) throws WTException
WTException
private void postMakeUnrestorable(ContentHolder holder) throws WTException
WTException
protected void dispatchVetoableEvent(String eventType, WTKeyedHashMap holderAppDataMap) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
protected void dispatchVetoableEvent(ContentServiceEvent event, boolean isMultiObject) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
private Hashtable prepareStoredItemMap(Object[][] holderDataArray) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |