com.jivesoftware.community.media.type
Class MoveMediaContentProvider
java.lang.Object
com.jivesoftware.community.media.type.MoveMediaContentProvider
- All Implemented Interfaces:
- MoveContentProvider<Media>
public abstract class MoveMediaContentProvider
- extends Object
- implements MoveContentProvider<Media>
Supports moving media items between containers
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MoveMediaContentProvider
public MoveMediaContentProvider()
canMoveContent
public MoveContentProvider.MoveValidationResult canMoveContent(Media toMove,
JiveContainer target)
- Description copied from interface:
MoveContentProvider
- Returns a
MoveContentProvider.MoveValidationResult with the value of true if the content object to be moved is valid to be moved from
its current container to the target container. Returns a MoveContentProvider.MoveValidationResult with a value of false and a
validationMessageKey containing an i18n key mapping to a description of the validation error.
- Specified by:
canMoveContent in interface MoveContentProvider<Media>
- Parameters:
toMove - content object to be movedtarget - container to move content object into
- Returns:
- true if the content object can validly be moved
moveContent
public void moveContent(Media toMove,
JiveContainer target)
throws UnauthorizedException,
RejectedException
- Description copied from interface:
MoveContentProvider
- Moves the given content object from its current location to the
target container
- Specified by:
moveContent in interface MoveContentProvider<Media>
- Parameters:
toMove - content object to be movedtarget - container to move content object into
- Throws:
UnauthorizedException - if the effective user doesn't have rights to move the content to the target container
RejectedException - if the move is rejected
setMediaManager
public void setMediaManager(MediaManager mediaManager)
Copyright © 1999-2007 Jive Software.