Add “locked” member.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 17 Nov 2010 14:28:49 +0000 (15:28 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 17 Nov 2010 14:28:49 +0000 (15:28 +0100)
src/main/java/net/pterodactylus/sone/template/SoneAccessor.java

index eac6e2c..c9c5f48 100644 (file)
@@ -87,6 +87,8 @@ public class SoneAccessor extends ReflectionAccessor {
                        return core.getSoneStatus(sone) == SoneStatus.downloading;
                } else if (member.equals("new")) {
                        return core.isNewSone(sone);
+               } else if (member.equals("locked")) {
+                       return core.isLocked(sone);
                }
                return super.get(dataProvider, object, member);
        }