Package com.jalios.jcms
Class DBFileDocument
- java.lang.Object
-
- com.jalios.jstore.BasicStorable
-
- com.jalios.jcms.Data
-
- com.jalios.jcms.Publication
-
- com.jalios.jcms.Content
-
- com.jalios.jcms.FileDocument
-
- com.jalios.jcms.DBFileDocument
-
- All Implemented Interfaces:
CategorizedDBData,DBConstants,DBData,HistorizedDBData,OpenRoleDBData,TrackedDBData,EditableData,JcmsConstants,ImportConstants,MashupConstants,StrongLockable,Searchable,Storable,JaliosConstants,LangPropertyArgument,TreeNode,java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<BasicStorable>
- Direct Known Subclasses:
AbstractMedia
public class DBFileDocument extends FileDocument implements CategorizedDBData, HistorizedDBData, OpenRoleDBData, TrackedDBData, DBConstants
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jalios.jcms.FileDocument
FileDocument.AssociatedFileFilter, FileDocument.ContentTypeComparator<T extends FileDocument>, FileDocument.ContentTypeSelector, FileDocument.DeleteThumbnailListener, FileDocument.DimensionsComparator<T extends FileDocument>, FileDocument.DurationComparator<T extends FileDocument>, FileDocument.HiddenSelector, FileDocument.MediaTypeSelector, FileDocument.SizeComparator<T extends FileDocument>, FileDocument.SizeSelector
-
Nested classes/interfaces inherited from class com.jalios.jcms.Publication
Publication.AdateComparator<T extends Publication>, Publication.AdateSelector, Publication.AudienceRightComparator<T extends Publication>, Publication.AudienceRightSelector, Publication.AuthorComparator<T extends Publication>, Publication.AuthorizedSelector, Publication.CanWorkOnSelector, Publication.DdateComparator<T extends Publication>, Publication.EdateComparator<T extends Publication>, Publication.EdateSelector, Publication.PdateComparator<T extends Publication>, Publication.PdateSelector, Publication.PopularityComparator<T extends Publication>, Publication.PstatusComparator<T extends Publication>, Publication.PstatusSelector, Publication.ReaderComparator<T extends Publication>, Publication.ReadRightSelector, Publication.RelatedCategoryComparator<T extends Publication>, Publication.RightComparator<T extends Publication>, Publication.SdateComparator<T extends Publication>, Publication.SdateSelector, Publication.TitleComparator<T extends Publication>, Publication.TrackedSelector, Publication.TypeComparator<T extends Publication>, Publication.UdateComparator<T extends Publication>, Publication.UdateSelector, Publication.UserContentSelector, Publication.VisibleStateSelector, Publication.VoteScoreComparator<T extends Publication>, Publication.WorkspaceAuthorSelector, Publication.WorkspaceComparator<T extends Publication>, Publication.WorkspaceSelector
-
Nested classes/interfaces inherited from class com.jalios.jcms.Data
Data.AuthorSelector, Data.CdateSelector, Data.DataNameComparator<T extends Data>, Data.DeletableSelector, Data.ImportSelector, Data.MdateSelector, Data.OpAuthorComparator<T extends Data>, Data.RowIdComparator<T extends Data>, Data.StrongLockSelector
-
Nested classes/interfaces inherited from class com.jalios.jstore.BasicStorable
BasicStorable.CdateComparator<T extends Storable>, BasicStorable.IdComparator<T extends Storable>, BasicStorable.MdateComparator<T extends Storable>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONTENT_TYPE_FIELDstatic java.lang.StringDESCRIPTION_FIELDstatic java.lang.StringFILENAME_FIELDstatic intHIBERNATE_MAPPING_CONTENTTYPEstatic intHIBERNATE_MAPPING_FILENAMEstatic intHIBERNATE_MAPPING_ORIGINALFILENAMEstatic intHIBERNATE_MAPPING_PDFUPLOADDATEstatic intHIBERNATE_MAPPING_REMOTEURIstatic intHIBERNATE_MAPPING_UPLOADDATEstatic java.lang.StringORIGINAL_FILENAME_FIELDstatic java.lang.StringREMOTE_URI_FIELDstatic java.lang.StringUPLOAD_DATE_FIELD-
Fields inherited from class com.jalios.jcms.FileDocument
contentType, CTXT_CHECK_FILE_REFERRER, CTXT_FILE_MERGE, DEFAULT_DETAIL_VIEW_PROP, defaultUploadClass, description, descriptionML, DO_NOT_REMOVE_FILE, filename, HIDDEN_PSTATUS, isDefaultDetailView, OPENOFFICE_MIMETYPE, OPENXML_PRESENTATION_MIMETYPE, originalFilename, pdfUploadDate, remoteUri, REMOVE_ALL_FILES_ON_DELETE_PROP, REMOVE_FILE_PROP, THUMBNAIL_PREFIX, THUMBNAIL_REGEXP, uploadDate
-
Fields inherited from class com.jalios.jcms.Publication
ACL_CAN_ATTACH_WS, adate, attachWorkspaceSet, ATTACHWS_CHECK_PUB_RIGHTS_PROP, authorizedGroupSet, authorizedMemberSet, authorizedMemberSetDBID, categories, categorySet, classificationLevel, CTRL_TOPIC_ADVANCED, CTRL_TOPIC_CATEGORIES, CTRL_TOPIC_WORKFLOW, CTX_PSTATUS_UPDATE, dbFriendlyURLSet, dbFriendlyURLSetInit, edate, extendedReadRightsDBData, friendlyURLSet, hasAttachWS, hasNoReadRightsDBData, hasNoReadRightsDBDataInitialized, indexMgr, isTracked, mainInstance, mainInstanceId, mainLanguage, majorVersion, mergeDate, mergeId, minorVersion, pdate, pstatus, PUBLICATION_WFNOTE, readAck, readerCount, restrictUpdateRights, roleMap, sdate, SYNC_ATTACH_WORKSPACE_MEDIA_ENABLED_PROP, templates, title, titleML, udate, updateGroupSet, updateMemberSet, voteCount, voteScore, weakDataImage, wfExpressAlarmEntry, wfReminderAlarmEntry, workflowId, workspace, workspaceId
-
Fields inherited from class com.jalios.jcms.Data
author, authorDBID, channel, DISPLAY_URL_EXTRA_INFO, extension, extraDataMap, extraDBDataMapToSaveOnOp, importMap, opAuthor, opDelegate, WRITE_IN_PROGRESS_EXTRA_INFO, WYSIWYG_INLINE_EDIT_REQUEST_PARAMETER
-
Fields inherited from class com.jalios.jstore.BasicStorable
cdate, ddate, id, isStoreCache, mdate, store
-
Fields inherited from interface com.jalios.jcms.db.DBConstants
ALL_CATEGORIES_SET_FIELD, ATTACH_WS_SET_FIELD, AUTH_GRP_SET_FIELD, AUTH_MBR_SET_FIELD, AUTHOR_ID_FIELD, CATEGORIES_SET_FIELD, CDATE_FIELD, CHANNEL_JCMSDB_PROP, CLASSIFICATION_LEVEL_FIELD, DBDATA_URID, EXTENDED_READ_RIGHTS, HAS_ATTACH_WS_FIELD, HAS_NO_READ_RIGHTS, HIBERNATE_MAPPING_ADATE, HIBERNATE_MAPPING_AUTHOR, HIBERNATE_MAPPING_CDATE, HIBERNATE_MAPPING_EDATE, HIBERNATE_MAPPING_HAS_ATTACH_WS, HIBERNATE_MAPPING_HASNOREADRIGHTS, HIBERNATE_MAPPING_MAININSTANCE_ID, HIBERNATE_MAPPING_MAJORVERSION, HIBERNATE_MAPPING_MDATE, HIBERNATE_MAPPING_MERGE_DATE, HIBERNATE_MAPPING_MERGE_ID, HIBERNATE_MAPPING_MINORVERSION, HIBERNATE_MAPPING_OPAUTHOR, HIBERNATE_MAPPING_PDATE, HIBERNATE_MAPPING_PSTATUS, HIBERNATE_MAPPING_READ_ACK, HIBERNATE_MAPPING_READERCOUNT, HIBERNATE_MAPPING_RESTRICTIVE_UPDATE_RIGHTS, HIBERNATE_MAPPING_TITLE, HIBERNATE_MAPPING_TRACKED, HIBERNATE_MAPPING_UDATE, HIBERNATE_MAPPING_VOTECOUNT, HIBERNATE_MAPPING_VOTESCORE, HIBERNATE_MAPPING_WORKFLOW_ID, HIBERNATE_MAPPING_WORKSPACE_ID, MAX_HIBERNATE_MAPPING_PUBLICATION, MDATE_FIELD, OPAUTHOR_ID_FIELD, PSTATUS_FIELD, ROW_ID_FIELD, SCROLL_FETCH_SIZE, WORKFLOW_ID_FIELD, WORKSPACE_ID_FIELD
-
Fields inherited from interface com.jalios.jcms.mashup.ImportConstants
IMPORT_ALARM_MGR, IMPORT_AUTHOR_PROP, IMPORT_CATEGORY_DEFAULT, IMPORT_DC_ATTR, IMPORT_DC_STEP, IMPORT_DIR, IMPORT_ENABLED, IMPORT_JDOM_ELEMENT, IMPORT_LOG_FILE, IMPORT_LOG_MAX, IMPORT_OPTIONS, IMPORT_OPTIONS_DC_CONTEXT, IMPORT_ROOT_PROP, IMPORT_SOURCE_FILE, IMPORT_SOURCE_PREFIX_PROP, IMPORT_SOURCES_DIR, IMPORT_STEP_CLEAN, IMPORT_STEP_IMPORT, IMPORT_STEP_UPDATE_REF, IMPORT_WS_PROP
-
Fields inherited from interface com.jalios.util.JaliosConstants
CRLF, MILLIS_IN_ONE_DAY, MILLIS_IN_ONE_HOUR, MILLIS_IN_ONE_MINUTE, MILLIS_IN_ONE_MONTH, MILLIS_IN_ONE_SECOND, MILLIS_IN_ONE_WEEK, MILLIS_IN_ONE_YEAR
-
Fields inherited from interface com.jalios.jcms.JcmsConstants
ADATE_SEARCH, ADMIN_NOTES_PROP, ADVANCED_TAB, AJAX_MODE_ATTR, ARCHIVES_DIR, ASCII_WIDTH, CATEGORY_TAB, CDATE_SEARCH, CLASS_PROPERTY, COMMON_ALARM, CONTENT_TAB, COOKIE_MAX_AGE, COUNTRY_SPRITE, CS_TYPOLOGY_ROOT_CAT_VID, CTRL_TOPIC_INTERNAL, CTRL_TOPIC_REF, CTRL_TOPIC_VALUE, CTRL_TOPIC_WRITE, CUSTOM_PROP, DATA_DIRECTORY, DEFAULT_PHOTO_PROP, DOCCHOOSER_HEIGHT, DOCCHOOSER_WIDTH, DOCS_DIR, EDATE_SEARCH, EMAIL_REGEXP, ERROR_MSG, FORBIDDEN_FILE_ACCESS, FORBIDDEN_REDIRECT, FORCE_REDIRECT, GLYPH_ICON_PREFIX, ICON_ARCHIVE, ICON_ICON_PREFIX, ICON_LOCK, ICON_LOCK_STRONG, ICON_PREFIX_PROP, ICON_WARN, ICON_WH_BOOK_CLOSED, ICON_WH_BOOK_OPEN, INFORMATION_MSG, IS_IN_FRONT_OFFICE, JALIOS_JUNIT_PROP, JCMS_CADDY, JCMS_MSG_LIST, JCMS_TOASTR_COLLECTION, JSYNC_DOWNLOAD_DIR, JSYNC_SYNC_ALARM, LANG_SPRITE, LOG_FILE, LOG_TOPIC_SECURITY, LOGGER_PROP, LOGGER_XMLPROP, MBR_PHOTO_DIR, MDATE_SEARCH, MONITOR_XML, OP_CREATE, OP_CREATE_STR, OP_DEEP_COPY, OP_DEEP_COPY_STR, OP_DEEP_DELETE, OP_DEEP_DELETE_STR, OP_DELETE, OP_DELETE_STR, OP_MERGE, OP_MERGE_STR, OP_UPDATE, OP_UPDATE_STR, ORGANIZATION_ROOT_GROUP_PROP, PDATE_SEARCH, PHOTO_DIR, PHOTO_ICON, PHOTO_ICON_HEIGHT, PHOTO_ICON_PROP_PREFIX, PHOTO_ICON_WIDTH, PHOTO_LARGE, PHOTO_LARGE_HEIGHT, PHOTO_LARGE_PROP_PREFIX, PHOTO_LARGE_WIDTH, PHOTO_MINI, PHOTO_MINI_HEIGHT, PHOTO_MINI_PROP_PREFIX, PHOTO_MINI_WIDTH, PHOTO_NORMAL, PHOTO_NORMAL_HEIGHT, PHOTO_NORMAL_PROP_PREFIX, PHOTO_NORMAL_WIDTH, PHOTO_SMALL, PHOTO_SMALL_HEIGHT, PHOTO_SMALL_PROP_PREFIX, PHOTO_SMALL_WIDTH, PHOTO_TINY, PHOTO_TINY_HEIGHT, PHOTO_TINY_PROP_PREFIX, PHOTO_TINY_WIDTH, PREVIOUS_TAB, PRINT_VIEW, PRIVATE_FILE_ACCESS, PUBLIC_FILE_ACCESS, RAW_CONTENT_ICON_PREFIX, READ_RIGHT_TAB, SDATE_SEARCH, SEARCHENGINE_ALARM, SECURITY_LOG_FILE, SESSION_AUTHORIZED_FILENAMES_SET, SPRITE_ICON_PREFIX, STATS_REPORT_DIR, STATUS_PROP, STORE_DIR, STORE_XML, SUCCESS_MSG, SVG_ICON_PREFIX, SVGINLINE_ICON_PREFIX, TEMPLATE_TAB, THUMBNAIL_LARGE_HEIGHT, THUMBNAIL_LARGE_WIDTH, THUMBNAIL_SMALL_HEIGHT, THUMBNAIL_SMALL_WIDTH, TTCARD_MEDIA_HEIGHT, TTCARD_MEDIA_WIDTH, TYPES_ICON_ALT_PROP, TYPES_ICON_SUFFIX_PROP, TYPES_ICON_TITLE_PROP, TYPES_PREFIX_PROP, TYPES_THUMB_SUFFIX_PROP, UDATE_SEARCH, UPDATE_RIGHT_TAB, UPLOAD_DIR, UPLOAD_PERMISSION_COUNT_PROP_PREFIX, UPLOAD_PERMISSION_SIZE_PROP_PREFIX, URL_REGEXP, VID_LOGGED_MEMBER, WARNING_MSG, WEBAPP_PROP, WFEXPRESS_ALARM, WFREMINDER_ALARM, WORKFLOW_TAB, WORKFLOW_XML
-
Fields inherited from interface com.jalios.jcms.mashup.MashupConstants
DATA_TAG, DATASET_TAG, FIELD_CLASS, FIELD_ENTRY, FIELD_ITEM, FIELD_KEY, FIELD_NAME, FIELD_TAG, FIELD_VALUE, FILE_FIELD, FILE_ID, FILE_MTIME, FILE_SIZE, FILE_TAG, FILE_TICKET, FILESET_TAG, RELATED_TAG
-
-
Constructor Summary
Constructors Constructor Description DBFileDocument()DBFileDocument(DBFileDocument other)DBFileDocument(FileDocument other)DBFileDocument(Publication other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ControllerStatuscheckCreate(Member mbr, java.util.Map context)Checks if the creation can be performedDBDataRevisiongetDBDataRevision(Data data, int op)java.lang.StringgetDescription(java.lang.String lang)java.lang.StringgetDescription(java.lang.String lang, boolean useDefault)java.util.HashMap<java.lang.String,java.lang.String>getDescriptionML()java.lang.StringgetDescriptionMLE()Returns the encoded descriptionML.static FileDocumentgetInstance(java.lang.String filename)Constructs a FileDocument from an existing file.static FileDocumentgetInstance(java.lang.String filename, Member author, Workspace ws)Constructs a FileDocument from an existing file.static FileDocumentgetInstance(java.lang.String filename, java.lang.String title, java.lang.String description, Category[] categories)Constructs a FileDocument from an existing file.static FileDocumentgetInstance(java.lang.String filename, java.lang.String title, java.lang.String description, Category[] categories, Member author, Workspace ws)Constructs a FileDocument from an existing file.protected voidperformAfterWrite(int op, Member mbr, java.util.Map context)Called to perform some action after the write.voidsetDescription(java.lang.String lang, java.lang.String value)Convenient method to set the value of the Description field in any language (default site language or any other).
This method will set the proper field value (FileDocument.setDescription(String)orFileDocument.setDescriptionML(HashMap)) depending on the specified language.voidsetDescriptionML(java.util.HashMap<java.lang.String,java.lang.String> v)voidsetDescriptionMLE(java.lang.String v)Set the value for the encoded descriptionML-
Methods inherited from class com.jalios.jcms.FileDocument
canBeUploadedBy, canCreateCopy, canUploadTracks, checkDelete, checkIntegrity, checkWrite, clearInternalCache, computeSignature, deleteAssociatedFiles, deleteAssociatedPDF, deleteThumbnails, deleteThumbnails, directoryToFileDocuments, discardCopy, exportXmlField, generateUploadDate, getAbsDownloadUrl, getAbstract, getAbstract, getAccessibilityInformation, getAllFilePath, getAllWikiText, getAllWysiwygText, getAssociatedFileSet, getAssociatedPDF, getComparator, getContentType, getContentTypeComparator, getDataIcon, getDataIconTitle, getDataImage, getDataImage, getDefaultContentType, getDefaultUploadClass, getDefaultWorkflow, getDescription, getDimensions, getDimensionsComparator, getDownloadName, getDownloadName, getDownloadTicket, getDownloadUrl, getDownloadUrl, getDownloadUrl, getDuration, getDurationComparator, getExportXmlDataValue, getExtension, getExtension, getFieldValue, getFile, getFileDocumentFromFile, getFileDocumentFromFilename, getFileFromThumbnail, getFileIndexingDate, getFilename, getFileReferrerSet, getFirstDocumentClassAuthorized, getFirstDocumentClassAuthorized, getFirstDocumentClassAuthorized, getGenericContentType, getGenericThumbnail, getHeight, getHiddenSelector, getIcon, getIndexedDate, getInstance, getLastModified, getLockedDocumentSet, getMediaType, getMediaTypeSelector, getMetaData, getMetaDataMap, getNewDocumentDirectoryAndName, getNewDocumentDirectoryAndName, getNewDocumentFilename, getOriginalDocumentFromPDF, getOriginalFilename, getPdfUploadDate, getQualifiedName, getRealContentType, getRemotePreviewUrl, getRemoteThumbnailUrl, getRemoteUri, getSearchStrings, getSize, getSizeComparator, getThumbnail, getThumbnailFile, getThumbnailFile, getThumbnailFile, getThumbnailFilename, getThumbnailFilename, getThumbnailFilename, getTracksMap, getTypeInfo, getUploadClass, getUploadDate, getWeakReferrerSet, getWidth, hasDuration, hasStrongLock, hasSubtitles, hasTrackKind, hasTracks, importXml, importXmlFieldsWithReferences, initCopy, isAudio, isDefaultDetailView, isFlash, isGeneratedPDF, isGenericContentType, isImage, isIndexed, isLocalFile, isMedia, isRemote, isText, isThumbnail, isVideo, isWebImage, mergeWith, performBeforeWrite, performDelete, performUpdate, prepareMergeCopy, previewRemoteWithIFrame, previewRemoteWithMedia, setAbstract, setContentType, setDescription, setFieldValue, setFilename, setOriginalFilename, setPdfUploadDate, setRemoteUri, setUploadDate, showDownload, supportsThumbnail, unzipToFileDocuments, unzipToFileDocuments
-
Methods inherited from class com.jalios.jcms.Publication
ackRead, addAuthorizedGroup, addAuthorizedMember, addCategory, addFollower, addWeakReferrer, addWFExpressAlarm, addWFReminderAlarm, assignCommonPublicationFields, assignRole, assignRole, attachPublication, attachTo, canBeArchived, canBeArchived, canBeAttachedBy, canBeAttachedTo, canBeDetachedFrom, canBeEditedFieldByField, canBeFollowedBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeReadBy, canBeVotedBy, canCreateCopy, canCreateCopy, canCreateWorkCopy, canMergeWorkCopy, canRequestUnlock, checkAndPerformTrash, checkAndPerformUntrash, checkIntegrity, checkLang, checkMember, checkMerge, checkStateChange, checkStateChange, checkTemplateEntry, checkTrash, checkUntrash, checkUpdate, cleanHybridCollections, clearTransientIndex, cloneDBDataCollections, computeSignature, containsCategory, createCopy, createCopy, createWFNote, createWFNote, createWorkCopy, createWorkCopy, detachFrom, exportXmlRelated, getAbstract, getAbstractAsText, getAbstractML, getAccessCount, getAdate, getAdateComparator, getAdateSelector, getAllCatIdSet, getAttachWorkspaceSet, getAttachWSIdSet, getAudiencedRightsString, getAudienceRightComparator, getAudienceRightSelector, getAuthGrpIdSet, getAuthMbrIdSet, getAuthorizedGroupSet, getAuthorizedMemberSet, getAuthorizedMemberSet, getAuthorizedMemberSetDBID, getAuthorizedSelector, getCanWorkOnSelector, getCategories, getCategories, getCategorySet, getCatIdSet, getClassificationLevel, getComparator, getComparator, getCSVHeader, getCurrentWorkerSet, getDataName, getDate, getDate, getDateSelector, getDbFriendlyURLSet, getDdateComparator, getDefaultTemplateUsage, getDescendantCategorySet, getDescendantCategorySet, getDescendantCategorySet, getDisplayTemplateFile, getDocumentLinkSet, getEdate, getEdateComparator, getEdateSelector, getEffectiveClassificationLevel, getEstimatedReminderCount, getExtendedReadRights, getExternalLinkSet, getFieldInMainLanguage, getFirstDescendantCategory, getFirstDescendantCategory, getFirstDescendantCategory, getFollowerList, getFriendlyURLSet, getHasAttachWS, getHasNoReadRights, getImportConflictCopy, getImportVersion, getIndexingDate, getInternalWorkflow, getLinkDataSet, getMainInstance, getMainInstanceId, getMainLanguage, getMajorVersion, getMemberSetAssignedToRole, getMergeDate, getMergeId, getMinorVersion, getNextWFStateSet, getPdate, getPdateComparator, getPdateSelector, getPopularity, getPopularityComparator, getPstatus, getPstatusAlarmEntry, getPstatusComparator, getPstatusSelector, getPstatusSelector, getQueryTemplateFile, getReadAck, getReadAckCount, getReaderComparator, getReaderCount, getReaderTracker, getReaderTrackerList, getReadRightSelector, getReadRightsString, getReferrerSet, getRestrictUpdateRights, getRightComparator, getRoleMap, getRoleMapStr, getSdate, getSdateComparator, getSdateSelector, getTemplate, getTemplateEntry, getTemplateEntry, getTemplateEntrySet, getTemplatePath, getTemplatePath, getTemplates, getTitle, getTitle, getTitle, getTitleComparator, getTitleComparator, getTitleML, getTitleMLE, getTrackedSelector, getTreeChildren, getTreeParent, getTreeRoot, getTypeComparator, getTypeFieldLabel, getTypeLabel, getUdate, getUdateComparator, getUdateSelector, getUpdateGroupSet, getUpdateGrpIdSet, getUpdateMbrIdSet, getUpdateMemberSet, getVersionString, getVisibleStateSelector, getVoteCount, getVoteScore, getVoteScoreComparator, getVoteValue, getWFNoteList, getWFState, getWFStateLabel, getWFStateLabelHtml, getWorkCopySet, getWorkflow, getWorkflowId, getWorkspace, getWorkspaceAuthorSelector, getWorkspaceComparator, getWorkspaceId, getWorkspaceSelector, getWSTypeEntry, getWSTypeEntry, hasAlreadyVoted, hasAnyReadRights, hasBeenReadAckBy, hasBeenReadBy, hasCategory, hasImportConflict, hasNoReadRights, hasWeakReferrers, importConvertToLocal, importMarkAsMerged, importOverrideAndUpdate, init, initializeDBDataCollections, internalCanBeReadBy, invalidateWeakDataImage, isAudienced, isClassified, isDefaultTemplate, isFollowedBy, isImportConflictCopy, isInRole, isInVisibleState, isPublic, isRoleAssigned, isTracked, isTrashed, isTreeLeaf, isTreeNode, isUserContent, isUserContentType, isVersioned, isVotable, isWorkCopy, majorUpdate, notifyFollowers, performCreate, performMerge, performMerge, performTrash, performUntrash, putPstatusAlarmEntry, recomputeScore, removeAllDescendants, removeAllFollowers, removeAllReaderTracker, removeAuthorizedGroup, removeAuthorizedMember, removeCategory, removeDataSet, removeFollower, removeImportMetadata, removePstatusAlarmEntry, removeWeakReferrer, removeWFExpressAlarm, removeWFReminderAlarm, resolveTypeTemplateEntry, setAbstract, setAdate, setAllCatIdSet, setAttachWorkspaceSet, setAttachWSIdSet, setAuthGrpIdSet, setAuthMbrIdSet, setAuthorizedGroupSet, setAuthorizedMemberSet, setAuthorizedMemberSetDBID, setCategories, setCategorySet, setCatIdSet, setCdate, setClassificationLevel, setDbFriendlyURLSet, setEdate, setExtendedReadRights, setFriendlyURLSet, setHasAttachWS, setHasNoReadRights, setImportConflictCopy, setImportVersion, setMainInstance, setMainInstanceId, setMainLanguage, setMajorVersion, setMergeDate, setMergeId, setMinorVersion, setPdate, setPstatus, setReadAck, setReaderCount, setRestrictUpdateRights, setRoleMap, setRoleMapStr, setRoleMemberSetMap, setSdate, setTemplate, setTemplates, setTitle, setTitle, setTitleML, setTitleMLE, setTracked, setUdate, setUpdateGroupSet, setUpdateGrpIdSet, setUpdateMbrIdSet, setUpdateMemberSet, setVoteCount, setVoteScore, setWorkflow, setWorkflowId, setWorkspace, setWorkspaceId, splitHybridCollections, supportsClassification, toCSV, toFullString, toString, trackReader, trackReader, unassignMember, unassignRole, updateDisplayLinkCss, updateDisplayLinkDataAttribute, updatePstatus, updateTemplate
-
Methods inherited from class com.jalios.jcms.Data
canBeReadBy, canBeUnlockedBy, checkAndPerformCreate, checkAndPerformCreate, checkAndPerformDelete, checkAndPerformDelete, checkAndPerformUpdate, checkAndPerformUpdate, checkCreate, checkDelete, checkLockMember, checkStrongLockMember, checkStrongLockMember, checkUpdate, cleanHybridCollection, cleanHybridCollection, cleanHybridCollection, clone, computeDBIDArray, computeDBIDList, computeDBIDSet, exportXml, exportXml, exportXml, exportXml, exportXmlRelated, fillExportXmlFieldAttributes, getAllReferrerSet, getAllReferrerSet, getAllTypeFieldEntry, getAuthor, getAuthor, getAuthorComparator, getAuthorDBID, getAuthorId, getAuthorSelector, getBooleanFieldValue, getBooleanFieldValue, getCaddyComparator, getCategoryFieldValue, getCategoryFieldValue, getCdateSelector, getDataIconAlt, getDataIconCSS, getDataIconHtml, getDataIconHtml, getDataImage, getDataNameComparator, getDeletableSelector, getDisplayLink, getDisplayLink, getDisplayLink, getDisplayLinkCss, getDisplayLinkDataAttribute, getDisplayLinkHtmlAttributes, getDisplayUrl, getDoubleFieldValue, getDoubleFieldValue, getExtension, getExtraData, getExtraDataMap, getExtraDBData, getExtraDBDataMap, getExtraInfo, getExtraInfoMap, getFieldStatusMap, getFieldValue, getFieldValue, getFieldValue, getGenericThumbnail, getImportAuthor, getImportBatch, getImportDate, getImportDisplayUrl, getImportId, getImportMap, getImportMdate, getImportSelector, getImportSignature, getImportSource, getImportSourceUrl, getImportUrl, getIntFieldValue, getIntFieldValue, getLangPropertyValue, getLinkCount, getLinkIndexedDataSet, getLinkIndexedDataSet, getLockDate, getLockInfo, getLockMember, getLongFieldValue, getLongFieldValue, getMdateSelector, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getNewDefaultExtraDBDataMap, getOpAuthor, getOpAuthorComparator, getOpAuthorId, getOpDelegate, getReadAuthorizedSelector, getReferrerSet, getRowId, getRowIdComparator, getStrongLock, getStrongLockContext, getStrongLockContextData, getStrongLockDate, getStrongLockInfo, getStrongLockMember, getStrongLockSelector, getTypeEntry, getTypeFieldsEntries, getUpdateInstance, getVirtualIDSet, importXmlFiles, importXmlReferences, isDBData, isImported, isImportUpdated, isInDatabase, isLocked, isPersisted, isStrongLocked, lock, markNewImport, mergeHybridLink, mergeHybridLink, performCreate, performDelete, performUpdate, prepareUpdateContext, printDataName, printDisplayLinkEnd, printDisplayLinkStart, printDisplayLinkStart, printDisplayUrl, printDisplayUrl, putStrongLock, putStrongLock, releaseStrongLock, releaseStrongLock, removeExtraData, removeExtraDBData, removeExtraInfo, setAuthor, setAuthorDBID, setAuthorId, setBooleanFieldValue, setCategoryFieldValue, setDoubleFieldValue, setExtension, setExtraData, setExtraDataMap, setExtraDBData, setExtraDBDataMap, setExtraDBDataMap, setExtraInfo, setFieldValue, setImportAuthor, setImportBatch, setImportDate, setImportDisplayUrl, setImportId, setImportMap, setImportMdate, setImportSignature, setImportSource, setImportSourceUrl, setImportUpdated, setIntFieldValue, setLongFieldValue, setMdate, setOpAuthor, setOpAuthorId, setOpDelegate, setRowId, unlock, unlock, unmarkNewImport, updateDisplayLinkHtmlAttributes, updateExtraDataMap, updateExtraDBDataMap, updateIndexTreeSet
-
Methods inherited from class com.jalios.jstore.BasicStorable
clearId, compareTo, equals, getAttribute, getAttributes, getCdate, getCdateComparator, getDdate, getId, getIdComparator, getMdate, getMdateComparator, getStore, getUrid, hasBeenUpdated, hashCode, isStored, resetInternalCaches, resolveAtt, resolveVal, setAttributes, setAttributes, setDdate, setId, setStore, toXml
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.jalios.jcms.db.CategorizedDBData
getAllCatIdSet, getCatIdSet, setAllCatIdSet, setCatIdSet
-
-
-
-
Field Detail
-
FILENAME_FIELD
public static final java.lang.String FILENAME_FIELD
- See Also:
- Constant Field Values
-
ORIGINAL_FILENAME_FIELD
public static final java.lang.String ORIGINAL_FILENAME_FIELD
- See Also:
- Constant Field Values
-
CONTENT_TYPE_FIELD
public static final java.lang.String CONTENT_TYPE_FIELD
- See Also:
- Constant Field Values
-
REMOTE_URI_FIELD
public static final java.lang.String REMOTE_URI_FIELD
- See Also:
- Constant Field Values
-
UPLOAD_DATE_FIELD
public static final java.lang.String UPLOAD_DATE_FIELD
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD
public static final java.lang.String DESCRIPTION_FIELD
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_FILENAME
public static final int HIBERNATE_MAPPING_FILENAME
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_ORIGINALFILENAME
public static final int HIBERNATE_MAPPING_ORIGINALFILENAME
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_CONTENTTYPE
public static final int HIBERNATE_MAPPING_CONTENTTYPE
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_REMOTEURI
public static final int HIBERNATE_MAPPING_REMOTEURI
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_UPLOADDATE
public static final int HIBERNATE_MAPPING_UPLOADDATE
- See Also:
- Constant Field Values
-
HIBERNATE_MAPPING_PDFUPLOADDATE
public static final int HIBERNATE_MAPPING_PDFUPLOADDATE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DBFileDocument
public DBFileDocument()
-
DBFileDocument
public DBFileDocument(Publication other)
-
DBFileDocument
public DBFileDocument(FileDocument other)
-
DBFileDocument
public DBFileDocument(DBFileDocument other)
-
-
Method Detail
-
getDescriptionML
public java.util.HashMap<java.lang.String,java.lang.String> getDescriptionML()
- Overrides:
getDescriptionMLin classFileDocument
-
setDescriptionML
public void setDescriptionML(java.util.HashMap<java.lang.String,java.lang.String> v)
- Overrides:
setDescriptionMLin classFileDocument
-
getDescription
public java.lang.String getDescription(java.lang.String lang)
- Overrides:
getDescriptionin classFileDocument
-
getDescription
public java.lang.String getDescription(java.lang.String lang, boolean useDefault)- Overrides:
getDescriptionin classFileDocument
-
setDescription
public void setDescription(java.lang.String lang, java.lang.String value)Description copied from class:FileDocumentConvenient method to set the value of the Description field in any language (default site language or any other).
This method will set the proper field value (FileDocument.setDescription(String)orFileDocument.setDescriptionML(HashMap)) depending on the specified language.- Overrides:
setDescriptionin classFileDocument- Parameters:
lang- the language (ISO 639 code) in which to set the valuevalue- the value to set.
-
getDescriptionMLE
public java.lang.String getDescriptionMLE()
Returns the encoded descriptionML.- Returns:
- the encoded descriptionML.
- Since:
- jcms-10.0.0
-
setDescriptionMLE
public void setDescriptionMLE(java.lang.String v)
Set the value for the encoded descriptionML- Parameters:
v- the encoded descriptionML- Since:
- jcms-10.0.0
-
getDBDataRevision
public DBDataRevision getDBDataRevision(Data data, int op)
- Overrides:
getDBDataRevisionin classPublication
-
checkCreate
public ControllerStatus checkCreate(Member mbr, java.util.Map context)
Description copied from class:PublicationChecks if the creation can be performed- Overrides:
checkCreatein classPublication- Parameters:
mbr- the member which requests the write operationcontext- a map which contains context parameters (may be null)- Returns:
- a ControllerStatus
-
performAfterWrite
protected void performAfterWrite(int op, Member mbr, java.util.Map context)Description copied from class:DataCalled to perform some action after the write.- Overrides:
performAfterWritein classFileDocument- Parameters:
op- the operation (OP_CREATE, OP_UPDATE, ...)mbr- the member which requests the write operationcontext- a map which contains context parameters (may be null)
-
getInstance
public static FileDocument getInstance(java.lang.String filename)
Constructs a FileDocument from an existing file. The FileDocument is not created in the store.- Parameters:
filename- the filename. It must be relative to the context path- Returns:
- a FileDocument wrapped to the given file or null if this file does not exist
- Since:
- jcms-6.2.0
-
getInstance
public static FileDocument getInstance(java.lang.String filename, Member author, Workspace ws)
Constructs a FileDocument from an existing file. The FileDocument is not created in the store.- Parameters:
filename- the filename. It must be relative to the context pathauthor- the author of the document or nullws- the workspace of the publication- Returns:
- a FileDocument wrapped to the given file or null if this file does not exist
- Since:
- jcms-6.2.0
-
getInstance
public static FileDocument getInstance(java.lang.String filename, java.lang.String title, java.lang.String description, Category[] categories)
Constructs a FileDocument from an existing file. The FileDocument is not created in the store.- Parameters:
filename- the filename. It must be relative to the context pathtitle- a proposed title (if null, use the name without its extension as title)description- the description (may be null)categories- the categories (may be null)- Returns:
- a FileDocument wrapped to the given file or null if this file does not exist
- Since:
- jcms-6.2.0
-
getInstance
public static FileDocument getInstance(java.lang.String filename, java.lang.String title, java.lang.String description, Category[] categories, Member author, Workspace ws)
Constructs a FileDocument from an existing file. The FileDocument is not created in the store.- Parameters:
filename- the filename. It must be relative to the context pathtitle- a proposed title (if null, use the name without its extension as title)description- the description (may be null)categories- the categories (may be null)author- the author of the document or nullws- the workspace of the publication- Returns:
- a FileDocument wrapped to the given file or null if this file does not exist
- Since:
- jcms-6.2.0
-
-