MAX_DOCUMENT_COUNT, SOLR_COMMIT_WITHIN, SOLR_FIELD_ID
Constructor and Description |
---|
VideoDAO() |
Modifier and Type | Method and Description |
---|---|
void |
associate(VideoList videos)
create video-media object associations from the given video list
|
AccessDetails |
getAccessDetails(UserIdentity authenticatedUser,
java.lang.String guid) |
VideoList |
getVideos(DataGroups dataGroups,
java.util.Collection<java.lang.String> guids,
Limits limits,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
long[] userIdFilter) |
boolean |
insert(MediaObjectList objects)
Inserts the objects and sets all media types to
MediaUrlValidator.MediaType.VIDEO for objects with MediaUrlValidator.MediaType.UNKNOWN or null media type. |
boolean |
insert(Video video) |
boolean |
insert(VideoList videos) |
void |
remove(java.util.Collection<java.lang.String> guids)
Note: content added through ContentStorage MUST be removed through ContentStorage, removing the metadata directly using this method may cause undefined behavior.
|
VideoList |
search(UserIdentity authenticatedUser,
DataGroups dataGroups,
java.util.Collection<java.lang.String> guids,
Limits limits,
MediaObjectList objects,
java.util.EnumSet<CAContentCore.ServiceType> serviceTypes,
long[] userIdFilter) |
boolean |
setOwners(VideoList videos)
Sets the owner details (userId) to the given videos, requires that GUID has been set to the video object
|
boolean |
update(MediaObjectList objects)
Update the objects and sets all media types to
MediaUrlValidator.MediaType.VIDEO for objects with MediaUrlValidator.MediaType.UNKNOWN or null media type. |
getSolrTemplate, setApplicationContext
public VideoDAO()
public boolean insert(MediaObjectList objects)
MediaUrlValidator.MediaType.VIDEO
for objects with MediaUrlValidator.MediaType.UNKNOWN
or null media type.objects
- MediaObjectDAO.insert(MediaObjectList)
public boolean update(MediaObjectList objects)
MediaUrlValidator.MediaType.VIDEO
for objects with MediaUrlValidator.MediaType.UNKNOWN
or null media type.objects
- MediaObjectDAO.update(MediaObjectList)
public AccessDetails getAccessDetails(UserIdentity authenticatedUser, java.lang.String guid)
authenticatedUser
- guid
- public VideoList getVideos(DataGroups dataGroups, java.util.Collection<java.lang.String> guids, Limits limits, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, long[] userIdFilter)
dataGroups
- optional filterguids
- optional filterlimits
- optional filterserviceTypes
- optional filteruserIdFilter
- optional filterpublic VideoList search(UserIdentity authenticatedUser, DataGroups dataGroups, java.util.Collection<java.lang.String> guids, Limits limits, MediaObjectList objects, java.util.EnumSet<CAContentCore.ServiceType> serviceTypes, long[] userIdFilter)
authenticatedUser
- optional filterdataGroups
- optional filterguids
- optional filterlimits
- optional filterobjects
- optional filterserviceTypes
- optional filteruserIdFilter
- optional filterjava.lang.IllegalArgumentException
- on bad search termspublic boolean setOwners(VideoList videos)
videos
- public void associate(VideoList videos)
videos
- public void remove(java.util.Collection<java.lang.String> guids)
guids
- ContentStorageCore
Copyright © 2015 Tampere University of Technology, Pori Department.