import javax.persistence.Table;
import javax.persistence.Version;
-import org.wamblee.usermgt.UserAccessor;
+import org.wamblee.security.authentication.UserAccessor;
/**
* Service to determine if access to a certain resource is allowed.
@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;
version = aSvc.version;
+ name = aSvc.name;
+ }
+
+ public String getName() {
+ return name;
}
}