RANGER-571 Storm plugin: added shell classes with old class names so that it will work after ranger upgrade from 0.4 to 0.5
Signed-off-by: sneethiraj <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/73513e8f Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/73513e8f Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/73513e8f Branch: refs/heads/tag-policy Commit: 73513e8fdcf8f2cb7131607ac1748b918c221591 Parents: d23eccc Author: Alok Lal <[email protected]> Authored: Thu Jun 25 19:17:51 2015 -0700 Committer: sneethiraj <[email protected]> Committed: Thu Jun 25 19:42:19 2015 -0700 ---------------------------------------------------------------------- .../authorizer/XaSecureStormAuthorizer.java | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/73513e8f/storm-agent/src/main/java/com/xasecure/authorization/storm/authorizer/XaSecureStormAuthorizer.java ---------------------------------------------------------------------- diff --git a/storm-agent/src/main/java/com/xasecure/authorization/storm/authorizer/XaSecureStormAuthorizer.java b/storm-agent/src/main/java/com/xasecure/authorization/storm/authorizer/XaSecureStormAuthorizer.java new file mode 100644 index 0000000..723dd79 --- /dev/null +++ b/storm-agent/src/main/java/com/xasecure/authorization/storm/authorizer/XaSecureStormAuthorizer.java @@ -0,0 +1,32 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, 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 com.xasecure.authorization.storm.authorizer; + +import org.apache.ranger.authorization.storm.authorizer.RangerStormAuthorizer; + +/** + * This class exists only to provide for seamless upgrade/downgrade capabilities. Class name is in storm conf which must allow for seamles upgrade and downgrade. + * Thus when class names were changed XaSecure* -> Ranger* this shell class serves to allow for seamles upgrade as well as downgrade. + * + * This class is final because if one needs to customize coprocessor it is expected that RangerStormAuthorizer would be modified/extended as that is + * the "real" authorizer! This class, hence, should NEVER be more than an EMPTY shell! + */ +final public class XaSecureStormAuthorizer extends RangerStormAuthorizer { +}
