import javax.persistence.Table;
import javax.persistence.Version;
-import org.wamblee.usermgt.UserAccessor;
-
/**
* Service to determine if access to a certain resource is allowed.
*
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
- private Long primaryKey;
+ private Long id;
@Version
private int version;
+ /**
+ * Name for this instance of the authorization service.
+ */
+ private String name;
+
public AbstractAuthorizationService() {
// Empty.
}
+ public AbstractAuthorizationService(String aName) {
+ name = aName;
+ }
+
public AbstractAuthorizationService(AbstractAuthorizationService aSvc) {
- primaryKey = aSvc.primaryKey;
+ id = aSvc.id;
version = aSvc.version;
+ name = aSvc.name;
+ }
+
+ public String getName() {
+ return name;
}
}