/** * Access the resource Message Order. * * @param r * The resource. * @return The resource order. */ public Integer getMessage_order(Entity r) { return ((Message) r).getHeader().getMessage_order(); }
/** * Access the id of the resource. * * @return The id. */ public String getId() { return m_header.getId(); } // getId
protected String getSummaryFromHeader(Message item, MessageHeader header) { String newtext; String body = item.getBody(); if ( body.length() > 50 ) body = body.substring(1,49); String newText = body + ", " + header.getFrom().getDisplayName() + ", " + header.getDate().toStringLocalFull(); return newText; }
/** * Cancel the changes made to a MessageEdit object, and release the lock. The MessageChannelEdit is disabled, and not to be used after this call. * * @param user * The MessageEdit object to cancel. */ public void cancelMessage(MessageEdit edit) { if ((edit == null) || (((BaseMessageEdit) edit).m_channel == null)) return; ((BaseMessageEdit) edit).m_channel.cancelMessage(edit); }
protected String getSummaryFromHeader(Message item, MessageHeader header) { String newtext; String body = item.getBody(); if ( body.length() > 50 ) body = body.substring(1,49); String newText = body + ", " + header.getFrom().getDisplayName() + ", " + header.getDate().toStringLocalFull(); return newText; }
/** * Clean up. */ protected void finalize() { // catch the case where an edit was made but never resolved if ((m_active) && (m_channel != null)) { m_channel.cancelMessage(this); } } // finalize
/** * Access the id of the resource. * * @return The id. */ public String getId() { return m_header.getId(); } // getId
protected String getSummaryFromHeader(Message item, MessageHeader header) { String newtext; String body = item.getBody(); if ( body.length() > 50 ) body = body.substring(1,49); String newText = body + ", " + header.getFrom().getDisplayName() + ", " + header.getDate().toStringLocalFull(); return newText; }
/** * Clean up. */ protected void finalize() { // catch the case where an edit was made but never resolved if ((m_active) && (m_channel != null)) { m_channel.cancelMessage(this); } } // finalize
/** * Access the id of the resource. * * @return The id. */ public String getId() { return m_header.getId(); } // getId
/** * Clean up. */ protected void finalize() { // catch the case where an edit was made but never resolved if ((m_active) && (m_channel != null)) { m_channel.cancelMessage(this); } } // finalize
/** * Cancel the changes made to a MessageEdit object, and release the lock. The MessageChannelEdit is disabled, and not to be used after this call. * * @param user * The MessageEdit object to cancel. */ public void cancelMessage(MessageEdit edit) { if ((edit == null) || (((BaseMessageEdit) edit).m_channel == null)) return; ((BaseMessageEdit) edit).m_channel.cancelMessage(edit); }
/** * Cancel the changes made to a MessageEdit object, and release the lock. The MessageChannelEdit is disabled, and not to be used after this call. * * @param user * The MessageEdit object to cancel. */ public void cancelMessage(MessageEdit edit) { if ((edit == null) || (((BaseMessageEdit) edit).m_channel == null)) return; ((BaseMessageEdit) edit).m_channel.cancelMessage(edit); }
public void valueUnbound(SessionBindingEvent event) { if (log.isDebugEnabled()) log.debug("valueUnbound()"); // catch the case where an edit was made but never resolved if ((m_active) && (m_channel != null)) { m_channel.cancelMessage(this); } } // valueUnbound
public void valueUnbound(SessionBindingEvent event) { if (log.isDebugEnabled()) log.debug("valueUnbound()"); // catch the case where an edit was made but never resolved if ((m_active) && (m_channel != null)) { m_channel.cancelMessage(this); } } // valueUnbound
public void valueUnbound(SessionBindingEvent event) { if (M_log.isDebugEnabled()) M_log.debug("valueUnbound()"); // catch the case where an edit was made but never resolved if ((m_active) && (m_channel != null)) { m_channel.cancelMessage(this); } } // valueUnbound