org.olat.catalog
Class CatalogJumpInHandlerFactory

java.lang.Object
  extended by org.olat.catalog.CatalogJumpInHandlerFactory
All Implemented Interfaces:
JumpInHandlerFactory

public class CatalogJumpInHandlerFactory
extends java.lang.Object
implements JumpInHandlerFactory

Description:
Jump in handler factory for bookmark jump in url.

Initial Date: 28.05.2008

Author:
gnaegi

Field Summary
static java.lang.String CONST_CAID
           
 
Constructor Summary
CatalogJumpInHandlerFactory()
           
 
Method Summary
static java.lang.String buildRepositoryDispatchGuestURI(long catEntryId, java.util.Locale loc)
          Build a dispatch URI which a guest user can use to call re directly by entering the dispatch URI into his/her browser location bar.
static java.lang.String buildRepositoryDispatchURI(long catEntryId)
          Build a dispatch URI which a user can use to call re directly by entering the dispatch URI into his/her browser location bar.
 JumpInReceptionist createJumpInHandler(UserRequest ureq)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONST_CAID

public static final java.lang.String CONST_CAID
See Also:
Constant Field Values
Constructor Detail

CatalogJumpInHandlerFactory

public CatalogJumpInHandlerFactory()
Method Detail

createJumpInHandler

public JumpInReceptionist createJumpInHandler(UserRequest ureq)
Specified by:
createJumpInHandler in interface JumpInHandlerFactory

buildRepositoryDispatchURI

public static java.lang.String buildRepositoryDispatchURI(long catEntryId)
Build a dispatch URI which a user can use to call re directly by entering the dispatch URI into his/her browser location bar.

Parameters:
catEntryId - The catalog entry key
Returns:
Complete dispatch URI.

buildRepositoryDispatchGuestURI

public static java.lang.String buildRepositoryDispatchGuestURI(long catEntryId,
                                                               java.util.Locale loc)
Build a dispatch URI which a guest user can use to call re directly by entering the dispatch URI into his/her browser location bar.

When displaying the URL in a HTML page, don't forget to format the URL with Formatter.esc() because this URL contains & characters.

Parameters:
catEntryId - The catalog entry key
loc - The users language
Returns:
Complete dispatch URI.