@@ -0,0 +1,1839 @@
+/*%0A * Copyright 2016 Attribyte, LLC%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and limitations under the License.%0A */%0A%0Apackage org.attribyte.wp.model;%0A%0Aimport com.google.common.collect.ImmutableList;%0Aimport com.google.common.collect.ImmutableMap;%0A%0A/**%0A * A post that represents an image attachment.%0A */%0Apublic class ImageAttachment extends Post %7B%0A%0A   /**%0A    * Creates an image attachment with unassigned id.%0A    * @param parent The parent post.%0A    * @param path The image path.%0A    * @param slug The image slug.%0A    * @param mimeType The associated mime type.%0A    */%0A   public ImageAttachment(final Post parent, final String path, final String slug, final String mimeType) %7B%0A      this(parent, 0L, path, slug, mimeType);%0A   %7D%0A%0A   /**%0A    * Creates an image attachment with assigned id.%0A    * @param parent The parent post.%0A    * @param id The id.%0A    * @param path The image path.%0A    * @param slug The image slug.%0A    * @param mimeType The associated mime type.%0A    */%0A   public ImageAttachment(final Post parent, final long id, final String path, final String slug, final String mimeType) %7B%0A      super(id, slug, slug, %22%22, %22%22, parent.authorId, parent.author, parent.publishTimestamp, parent.publishTimestamp,%0A              parent.status, parent.id, path, 0, ImmutableList.of(), Type.ATTACHMENT, mimeType,%0A              ImmutableMap.of(), ImmutableList.of());%0A   %7D%0A%7D

Add derived post for image attachment.