Class PreviewTicket

    • Field Detail

      • PREVIEW_TICKET_PREFIX

        public static final java.lang.String PREVIEW_TICKET_PREFIX
        See Also:
        Constant Field Values
      • PREVIEW_TICKET_POSTFIX

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

      • PreviewTicket

        public PreviewTicket()
    • Method Detail

      • createItem

        protected Item createItem​(SessionContext ctx,
                                  ComposedType type,
                                  Item.ItemAttributeMap allAttributes)
                           throws JaloBusinessException
        create the item you can delete this method if you don't want to intercept the creation of this item
        Overrides:
        createItem in class GenericItem
        Parameters:
        ctx - the current session context which this item is created within
        type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
        Returns:
        the new item instance
        Throws:
        JaloBusinessException - indicates an error during creation - any changes will be rollbacked
      • notifyTicketTaken

        public void notifyTicketTaken​(javax.servlet.http.HttpServletRequest request,
                                      javax.servlet.http.HttpServletResponse response,
                                      JaloSession appliesTo)
        Called each time the ticket is being used for a specified request. As default the method just logs the access.
        Parameters:
        request - the request which this ticket is claimed for
        response - the response object belonging to the given request
        appliesTo - the jalo session which is modified to preview the ticket's catalog version
      • getTicketCode

        public java.lang.String getTicketCode()
      • getTicketCode

        public java.lang.String getTicketCode​(SessionContext ctx)