Jive API (3.0.13) Core Javadocs

com.jivesoftware.community.media.type
Class MoveMediaContentProvider

java.lang.Object
  extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.jivesoftware.community.objecttype.MoveContentProvider
MoveContentProvider.MoveValidationResult
 
Constructor Summary
MoveMediaContentProvider()
           
 
Method Summary
 MoveContentProvider.MoveValidationResult canMoveContent(Media toMove, JiveContainer target)
          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.
 void moveContent(Media toMove, JiveContainer target)
          Moves the given content object from its current location to the target container
 void setMediaManager(MediaManager mediaManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jivesoftware.community.objecttype.MoveContentProvider
getPageDescriptionKey, getPageTitleKey
 

Constructor Detail

MoveMediaContentProvider

public MoveMediaContentProvider()
Method Detail

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 moved
target - 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 moved
target - 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)

Jive Product Page

Copyright © 1999-2007 Jive Software.