From f4c3e2ff8cb4461723f40066f14adcd1191e86e6 Mon Sep 17 00:00:00 2001
From: Ben Alex
NamedEntityObjectIdentity based on the passed
* object instance. The passed object must provide a getId()
@@ -83,30 +78,8 @@ public class NamedEntityObjectIdentity implements AclObjectIdentity {
}
}
- protected NamedEntityObjectIdentity() {
- throw new IllegalArgumentException("Cannot use default constructor");
- }
-
//~ Methods ================================================================
- /**
- * Indicates the classname portion of the object identity.
- *
- * @return the classname (never null)
- */
- public String getClassname() {
- return classname;
- }
-
- /**
- * Indicates the instance identity portion of the object identity.
- *
- * @return the instance identity (never null)
- */
- public String getId() {
- return id;
- }
-
/**
* Important so caching operates properly.
*
@@ -138,6 +111,24 @@ public class NamedEntityObjectIdentity implements AclObjectIdentity {
return false;
}
+ /**
+ * Indicates the classname portion of the object identity.
+ *
+ * @return the classname (never null)
+ */
+ public String getClassname() {
+ return classname;
+ }
+
+ /**
+ * Indicates the instance identity portion of the object identity.
+ *
+ * @return the instance identity (never null)
+ */
+ public String getId() {
+ return id;
+ }
+
/**
* Important so caching operates properly.
*