Repository: incubator-ranger
Updated Branches:
  refs/heads/ranger-0.5 1dbb9b05f -> 3c509cd45


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/3c509cd4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/3c509cd4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/3c509cd4

Branch: refs/heads/ranger-0.5
Commit: 3c509cd45c8883855f528e61344a85b6b6620c84
Parents: 1dbb9b0
Author: Alok Lal <[email protected]>
Authored: Thu Jun 25 19:17:51 2015 -0700
Committer: sneethiraj <[email protected]>
Committed: Thu Jun 25 19:44:32 2015 -0700

----------------------------------------------------------------------
 .../authorizer/XaSecureStormAuthorizer.java     | 32 ++++++++++++++++++++
 1 file changed, 32 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/3c509cd4/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 {
+}

Reply via email to