Class PreviewTicket

All Implemented Interfaces:
Serializable, Comparable

public class PreviewTicket extends GeneratedPreviewTicket
class for PreviewTicket
See Also:
  • Field Details

  • Constructor Details

    • PreviewTicket

      public PreviewTicket()
  • Method Details

    • 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
    • getNonInitialAttributes

      protected Item.ItemAttributeMap getNonInitialAttributes(SessionContext ctx, Item.ItemAttributeMap allAttributes)
      Description copied from class: GenericItem
      The default implementation of GenericItem.getNonInitialAttributes(SessionContext, Item.ItemAttributeMap) assures that the 'registered initial' properties GenericItem.getInitialProperties(JaloSession, Item.ItemAttributeMap) will be removed from the 'non initial map'.
      Overrides:
      getNonInitialAttributes in class GenericItem
      Parameters:
      ctx - session context with language = NULL
      allAttributes - a ItemAttributeMap contaning attribute values.
      Returns:
      a ItemAttributeMap containing all attribute values, which belong to non-initial attributes.
    • 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 String getTicketCode()
    • getTicketCode

      public String getTicketCode(SessionContext ctx)