/** * Does this object satisfy the criteria of the filter? * * @return true if the object is accepted by the filter, false if not. */ public boolean accept(Object o) { // reject if not a public message if (o instanceof Message) { Message msg = (Message) o; if (msg.getProperties().getProperty(ResourceProperties.PROP_PUBVIEW) == null || !msg.getProperties().getProperty(ResourceProperties.PROP_PUBVIEW).equals(Boolean.TRUE.toString())) return false; else if (msg.getHeader().getDraft()) return false; } // next, use the specified filter, if present if (m_filter != null) return m_filter.accept(o); return true; } // accept
/** * Does this object satisfy the criteria of the filter? * * @return true if the object is accepted by the filter, false if not. */ public boolean accept(Object o) { // reject if not a public message if (o instanceof Message) { Message msg = (Message) o; if ((msg.getProperties().getProperty(ResourceProperties.PROP_PUBVIEW) == null || !msg.getProperties().getProperty(ResourceProperties.PROP_PUBVIEW).equals(Boolean.TRUE.toString())) && !m_isChannelPublic) return false; else if (msg.getHeader().getDraft()) return false; } // next, use the specified filter, if present if (m_filter != null) return m_filter.accept(o); return true; } // accept
/** * Does this object satisfy the criteria of the filter? * * @return true if the object is accepted by the filter, false if not. */ public boolean accept(Object o) { // reject if not a public message if (o instanceof Message) { Message msg = (Message) o; if ((msg.getProperties().getProperty(ResourceProperties.PROP_PUBVIEW) == null || !msg.getProperties().getProperty(ResourceProperties.PROP_PUBVIEW).equals(Boolean.TRUE.toString())) && !m_isChannelPublic) return false; else if (msg.getHeader().getDraft()) return false; } // next, use the specified filter, if present if (m_filter != null) return m_filter.accept(o); return true; } // accept
rv = message.getProperties();
rv = message.getProperties();
rv = message.getProperties();
/** * Take all values from this object. * * @param user * The other object to take values from. */ protected void setAll(Message other) { // copy the header m_header = newMessageHeader(this, other.getHeader()); // body m_body = other.getBody(); // setup for properties m_properties = new BaseResourcePropertiesEdit(); m_properties.addAll(other.getProperties()); } // setAll
/** * Take all values from this object. * * @param user * The other object to take values from. */ protected void setAll(Message other) { // copy the header m_header = newMessageHeader(this, other.getHeader()); // body m_body = other.getBody(); // setup for properties m_properties = new BaseResourcePropertiesEdit(); m_properties.addAll(other.getProperties()); } // setAll
/** * Take all values from this object. * * @param user * The other object to take values from. */ protected void setAll(Message other) { // copy the header m_header = newMessageHeader(this, other.getHeader()); // body m_body = other.getBody(); // setup for properties m_properties = new BaseResourcePropertiesEdit(); m_properties.addAll(other.getProperties()); } // setAll
if (m.getProperties().getProperty(ResourceProperties.PROP_PUBVIEW) == null || !m.getProperties().getProperty(ResourceProperties.PROP_PUBVIEW).equals(Boolean.TRUE.toString()))
if (m.getProperties().getProperty(ResourceProperties.PROP_PUBVIEW) == null || !m.getProperties().getProperty(ResourceProperties.PROP_PUBVIEW).equals(Boolean.TRUE.toString()))
if (m.getProperties().getProperty(ResourceProperties.PROP_PUBVIEW) == null || !m.getProperties().getProperty(ResourceProperties.PROP_PUBVIEW).equals(Boolean.TRUE.toString()))