public static Predicate<Property> isHasAttachmentProperty() { return property -> property.getNamespace().equals(PropertyBuilder.JAMES_INTERNALS) && property.getLocalName().equals(PropertyBuilder.HAS_ATTACHMENT) && property.getValue().equals("true"); }
/** * Constructs a property cloned from the given. * * @param property * not null */ public JPAProperty(Property property, int order) { this(property.getNamespace(), property.getLocalName(), property.getValue(), order); }
public SimpleProperty(Property property) { this(property.getNamespace(), property.getLocalName(), property.getValue()); }
private List<UDTValue> buildPropertiesUdt(MailboxMessage message) { return message.getProperties().stream() .map(x -> typesProvider.getDefinedUserType(PROPERTIES) .newValue() .setString(Properties.NAMESPACE, x.getNamespace()) .setString(Properties.NAME, x.getLocalName()) .setString(Properties.VALUE, x.getValue())) .collect(Guavate.toImmutableList()); }