* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- */
+ */
package org.wamblee.security.authorization;
-import org.wamblee.persistence.AbstractPersistent;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.persistence.DiscriminatorValue;
+import javax.persistence.Entity;
import org.wamblee.usermgt.User;
import org.wamblee.usermgt.UserAccessor;
-import java.util.ArrayList;
-import java.util.List;
-
/**
* Default implementation of an authorization service. To determine whether
* access to a resource is allowed, the service consults a number of
*
* @author Erik Brakkee
*/
-public class DefaultAuthorizationService extends AbstractPersistent implements
- AuthorizationService {
+@Entity
+@DiscriminatorValue("DEFAULT")
+public class DefaultAuthorizationService extends AuthorizationService {
+
+
/**
* List of ordered authorization rules.
*/
* @param aUserAccessor
* User accessor.
*/
+ @Override
public void setUserAccessor(UserAccessor aUserAccessor) {
userAccessor = aUserAccessor;
}