Package com.jalios.jcms.media
Class MediaProgressionManager
- java.lang.Object
-
- com.jalios.jcms.db.BasicDBListener
-
- com.jalios.jcms.media.MediaProgressionManager
-
- All Implemented Interfaces:
DBConstants
,DBListener
,PluginComponent
public class MediaProgressionManager extends BasicDBListener implements DBConstants
-
-
Field Summary
-
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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completeMediaProgression(FileDocument fileDocument, Member member)
Complete a media progression (set "completed" flag to true)void
deleteAllMediaProgression(FileDocument fileDocument)
Delete all media progressionvoid
deleteMediaProgression(FileDocument fileDocument, Member member)
Delete a media progressionstatic MediaProgressionManager
getInstance()
MediaProgression
getMediaProgression(FileDocument fileDocument, Member member)
Retrieve a media progression associated to a givenFileDocument
andMember
MediaProgression
saveMediaProgression(FileDocument fileDocument, Member member, int progression)
Save a media progressionMediaProgression
saveMediaProgression(FileDocument fileDocument, Member member, int progression, java.util.Map<?,?> context)
Save a media progression-
Methods inherited from class com.jalios.jcms.db.BasicDBListener
getAdateFromState, getAuthorIdFromState, getCdateFromState, getDateFromState, getEdateFromState, getMdateFromState, getPdateFromState, getPrePstatus, getPrePstatus, getPstatusFromState, hasNoChange, hasNoChange, init, onPostDelete, onPostInsert, onPostUpdate, onPreUpdate
-
-
-
-
Method Detail
-
getInstance
public static MediaProgressionManager getInstance()
-
getMediaProgression
public MediaProgression getMediaProgression(FileDocument fileDocument, Member member)
Retrieve a media progression associated to a givenFileDocument
andMember
- Parameters:
fileDocument
-member
-- Returns:
MediaProgression
-
saveMediaProgression
public MediaProgression saveMediaProgression(FileDocument fileDocument, Member member, int progression)
Save a media progression- Parameters:
fileDocument
-member
-progression
-- Returns:
MediaProgression
-
saveMediaProgression
public MediaProgression saveMediaProgression(FileDocument fileDocument, Member member, int progression, java.util.Map<?,?> context)
Save a media progression- Parameters:
fileDocument
-member
-progression
-context
-- Returns:
MediaProgression
-
completeMediaProgression
public void completeMediaProgression(FileDocument fileDocument, Member member)
Complete a media progression (set "completed" flag to true)- Parameters:
fileDocument
-member
-
-
deleteMediaProgression
public void deleteMediaProgression(FileDocument fileDocument, Member member)
Delete a media progression- Parameters:
fileDocument
-member
-
-
deleteAllMediaProgression
public void deleteAllMediaProgression(FileDocument fileDocument)
Delete all media progression- Parameters:
fileDocument
-
-
-