add method to restore content type
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 28 May 2008 07:01:20 +0000 (09:01 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 28 May 2008 07:01:20 +0000 (09:01 +0200)
src/net/pterodactylus/jsite/project/AbstractEntry.java
src/net/pterodactylus/jsite/project/Entry.java

index 6e0c9d4..ff04760 100644 (file)
@@ -160,4 +160,11 @@ public abstract class AbstractEntry extends AbstractBean implements Entry {
                this.defaultContentType = defaultContentType;
        }
 
+       /**
+        * {@inheritDoc}
+        */
+       public void restoreDefaultContentType() {
+               this.contentType = defaultContentType;
+       }
+
 }
index 86b5904..52643be 100644 (file)
@@ -105,4 +105,9 @@ public interface Entry {
         */
        public void setContentType(String contentType);
 
+       /**
+        * Restores the default content type.
+        */
+       public void restoreDefaultContentType();
+
 }