(no commit message)
[utils] / security / impl / src / main / java / org / wamblee / security / authorization / PathCondition.java
index b1c6670a932dcdf4f51a1a79c8e4eab358db6c0d..0fd91916791ac1812538db4a9db81b73d645bb22 100644 (file)
  */ 
 package org.wamblee.security.authorization;
 
-import javax.persistence.DiscriminatorColumn;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Inheritance;
-import javax.persistence.InheritanceType;
-import javax.persistence.Table;
-import javax.persistence.Version;
-
-import org.wamblee.persistence.Persistent;
-
 /**
  * Checks if a path satisfies a condition.
  * 
  * @author Erik Brakkee
  */
-@Entity
-@Table(name = "SEC_PATH_CONDITION")
-@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
-@DiscriminatorColumn(name = "TYPE")
-public abstract class PathCondition {
-    
-    @Id
-    @GeneratedValue(strategy = GenerationType.AUTO)
-    private Long primaryKey;
+public interface PathCondition {
 
-    @Version
-    private int version;
-    
-    public PathCondition() { 
-        // Empty
-    }
-    
-    public PathCondition(PathCondition aCondition) { 
-        primaryKey = aCondition.primaryKey;
-        version = aCondition.version;
-    }
-    
     /**
      * Checks if the path matches the condition.
      * 
@@ -63,4 +31,5 @@ public abstract class PathCondition {
      * @return True iff the path matches.
      */
     public abstract boolean matches(String aPath);
-}
+
+}
\ No newline at end of file