Add “modified” property.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 06:41:56 +0000 (08:41 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 19 Oct 2010 06:41:56 +0000 (08:41 +0200)
src/main/java/net/pterodactylus/sone/template/SoneAccessor.java

index ee7d16d..d0a287f 100644 (file)
@@ -59,6 +59,8 @@ public class SoneAccessor extends ReflectionAccessor {
                } else if (member.equals("blocked")) {
                        Sone currentSone = (Sone) dataProvider.getData("currentSone");
                        return currentSone.isSoneBlocked(sone.getId());
+               } else if (member.equals("modified")) {
+                       return sone.getModificationCounter() > 0;
                }
                return super.get(dataProvider, object, member);
        }