You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by ma...@apache.org on 2014/12/12 02:30:34 UTC
[51/51] [partial] incubator-ranger git commit: RANGER-194: Rename
packages from xasecure to apache ranger
RANGER-194: Rename packages from xasecure to apache ranger
Project: http://git-wip-us.apache.org/repos/asf/incubator-ranger/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ranger/commit/413fcb68
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ranger/tree/413fcb68
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ranger/diff/413fcb68
Branch: refs/heads/master
Commit: 413fcb68f0368b35b2b0bc3c71bb8e71af6704ed
Parents: 830fe61
Author: Alok Lal <al...@hortonworks.com>
Authored: Thu Dec 11 17:22:43 2014 -0800
Committer: Madhan Neethiraj <ma...@apache.org>
Committed: Thu Dec 11 17:22:43 2014 -0800
----------------------------------------------------------------------
.../java/com/xasecure/audit/dao/BaseDao.java | 234 --
.../java/com/xasecure/audit/dao/DaoManager.java | 56 -
.../com/xasecure/audit/dao/DaoManagerBase.java | 80 -
.../audit/dao/XAHBaseAuditEventDao.java | 29 -
.../xasecure/audit/dao/XAHdfsAuditEventDao.java | 29 -
.../xasecure/audit/dao/XAHiveAuditEventDao.java | 29 -
.../xasecure/audit/dao/XAKnoxAuditEventDao.java | 29 -
.../audit/dao/XAStormAuditEventDao.java | 29 -
.../xasecure/audit/entity/XXBaseAuditEvent.java | 228 --
.../audit/entity/XXBaseAuditEvent_.java | 46 -
.../audit/entity/XXHBaseAuditEvent.java | 84 -
.../audit/entity/XXHBaseAuditEvent_.java | 32 -
.../xasecure/audit/entity/XXHdfsAuditEvent.java | 75 -
.../audit/entity/XXHdfsAuditEvent_.java | 31 -
.../xasecure/audit/entity/XXHiveAuditEvent.java | 86 -
.../audit/entity/XXHiveAuditEvent_.java | 32 -
.../xasecure/audit/entity/XXKnoxAuditEvent.java | 82 -
.../audit/entity/XXStormAuditEvent.java | 82 -
.../xasecure/audit/model/AuditEventBase.java | 378 --
.../audit/model/EnumRepositoryType.java | 37 -
.../xasecure/audit/model/HBaseAuditEvent.java | 128 -
.../xasecure/audit/model/HdfsAuditEvent.java | 107 -
.../xasecure/audit/model/HiveAuditEvent.java | 126 -
.../xasecure/audit/model/KnoxAuditEvent.java | 97 -
.../xasecure/audit/model/StormAuditEvent.java | 97 -
.../audit/provider/AsyncAuditProvider.java | 272 --
.../xasecure/audit/provider/AuditProvider.java | 36 -
.../audit/provider/AuditProviderFactory.java | 243 --
.../audit/provider/BaseAuditProvider.java | 173 -
.../audit/provider/BufferedAuditProvider.java | 93 -
.../audit/provider/DbAuditProvider.java | 356 --
.../xasecure/audit/provider/DebugTracer.java | 28 -
.../audit/provider/DummyAuditProvider.java | 65 -
.../audit/provider/LocalFileLogBuffer.java | 687 ----
.../audit/provider/Log4jAuditProvider.java | 100 -
.../xasecure/audit/provider/Log4jTracer.java | 59 -
.../com/xasecure/audit/provider/LogBuffer.java | 32 -
.../xasecure/audit/provider/LogDestination.java | 34 -
.../com/xasecure/audit/provider/MiscUtil.java | 250 --
.../audit/provider/MultiDestAuditProvider.java | 162 -
.../audit/provider/hdfs/HdfsAuditProvider.java | 93 -
.../audit/provider/hdfs/HdfsLogDestination.java | 452 ---
.../com/xasecure/audit/test/TestEvents.java | 153 -
.../org/apache/ranger/audit/dao/BaseDao.java | 234 ++
.../org/apache/ranger/audit/dao/DaoManager.java | 56 +
.../apache/ranger/audit/dao/DaoManagerBase.java | 80 +
.../audit/dao/RangerHBaseAuditEventDao.java | 29 +
.../audit/dao/RangerHdfsAuditEventDao.java | 29 +
.../audit/dao/RangerHiveAuditEventDao.java | 29 +
.../audit/dao/RangerKnoxAuditEventDao.java | 29 +
.../audit/dao/RangerStormAuditEventDao.java | 29 +
.../ranger/audit/entity/XXBaseAuditEvent.java | 228 ++
.../ranger/audit/entity/XXBaseAuditEvent_.java | 48 +
.../ranger/audit/entity/XXHBaseAuditEvent.java | 84 +
.../ranger/audit/entity/XXHBaseAuditEvent_.java | 32 +
.../ranger/audit/entity/XXHdfsAuditEvent.java | 75 +
.../ranger/audit/entity/XXHdfsAuditEvent_.java | 31 +
.../ranger/audit/entity/XXHiveAuditEvent.java | 86 +
.../ranger/audit/entity/XXHiveAuditEvent_.java | 32 +
.../ranger/audit/entity/XXKnoxAuditEvent.java | 82 +
.../ranger/audit/entity/XXStormAuditEvent.java | 82 +
.../ranger/audit/model/AuditEventBase.java | 378 ++
.../ranger/audit/model/EnumRepositoryType.java | 37 +
.../ranger/audit/model/HBaseAuditEvent.java | 128 +
.../ranger/audit/model/HdfsAuditEvent.java | 107 +
.../ranger/audit/model/HiveAuditEvent.java | 127 +
.../ranger/audit/model/KnoxAuditEvent.java | 98 +
.../ranger/audit/model/StormAuditEvent.java | 98 +
.../audit/provider/AsyncAuditProvider.java | 271 ++
.../ranger/audit/provider/AuditProvider.java | 36 +
.../audit/provider/AuditProviderFactory.java | 242 ++
.../audit/provider/BaseAuditProvider.java | 172 +
.../audit/provider/BufferedAuditProvider.java | 93 +
.../ranger/audit/provider/DbAuditProvider.java | 355 ++
.../ranger/audit/provider/DebugTracer.java | 28 +
.../audit/provider/DummyAuditProvider.java | 65 +
.../audit/provider/LocalFileLogBuffer.java | 687 ++++
.../audit/provider/Log4jAuditProvider.java | 100 +
.../ranger/audit/provider/Log4jTracer.java | 59 +
.../apache/ranger/audit/provider/LogBuffer.java | 32 +
.../ranger/audit/provider/LogDestination.java | 34 +
.../apache/ranger/audit/provider/MiscUtil.java | 250 ++
.../audit/provider/MultiDestAuditProvider.java | 161 +
.../audit/provider/hdfs/HdfsAuditProvider.java | 92 +
.../audit/provider/hdfs/HdfsLogDestination.java | 451 +++
.../apache/ranger/audit/test/TestEvents.java | 152 +
.../src/main/resources/META-INF/persistence.xml | 12 +-
agents-common/conf/log4j.properties | 2 +-
agents-common/scripts/enable-agent.sh | 10 +-
.../xasecure/admin/client/XaAdminClient.java | 32 -
.../admin/client/XaAdminRESTClient.java | 390 ---
.../admin/client/datatype/GrantRevokeData.java | 273 --
.../admin/client/datatype/RESTResponse.java | 208 --
.../hadoop/config/XaSecureConfiguration.java | 165 -
.../constants/XaSecureHadoopConstants.java | 89 -
.../hadoop/log/HdfsFileAppender.java | 1376 --------
.../authorization/utils/StringUtil.java | 276 --
.../ranger/admin/client/RangerAdminClient.java | 32 +
.../admin/client/RangerAdminRESTClient.java | 389 +++
.../admin/client/datatype/GrantRevokeData.java | 272 ++
.../admin/client/datatype/RESTResponse.java | 208 ++
.../hadoop/config/RangerConfiguration.java | 164 +
.../hadoop/constants/RangerHadoopConstants.java | 89 +
.../hadoop/log/HdfsFileAppender.java | 1376 ++++++++
.../ranger/authorization/utils/StringUtil.java | 276 ++
.../.settings/org.eclipse.core.resources.prefs | 1 +
.../utils/XaSecureCredentialProvider.java | 84 -
.../hadoop/utils/RangerCredentialProvider.java | 84 +
.../utils/XaSecureCredentialProviderTest.java | 91 -
.../utils/RangerCredentialProviderTest.java | 92 +
.../com/xasecure/pdp/config/ConfigWatcher.java | 543 ---
.../pdp/config/Jersey2ConfigWatcher.java | 565 ---
.../pdp/config/Jersey2PolicyRefresher.java | 207 --
.../pdp/config/PolicyChangeListener.java | 26 -
.../xasecure/pdp/config/PolicyRefresher.java | 229 --
.../pdp/config/gson/ExcludeSerialization.java | 32 -
.../config/gson/PolicyExclusionStrategy.java | 37 -
.../pdp/constants/XaSecureConstants.java | 89 -
.../com/xasecure/pdp/hbase/HBaseAuthDB.java | 489 ---
.../com/xasecure/pdp/hbase/HBaseAuthRules.java | 135 -
.../com/xasecure/pdp/hbase/URLBasedAuthDB.java | 234 --
.../xasecure/pdp/hbase/XASecureAuthorizer.java | 108 -
.../xasecure/pdp/hdfs/AdminPolicyChecker.java | 183 -
.../com/xasecure/pdp/hdfs/URLBasedAuthDB.java | 480 ---
.../xasecure/pdp/hdfs/XASecureAuthorizer.java | 40 -
.../java/com/xasecure/pdp/hive/HiveAuthDB.java | 307 --
.../com/xasecure/pdp/hive/HiveAuthRule.java | 223 --
.../pdp/hive/HiveAuthorizationProviderBase.java | 65 -
.../com/xasecure/pdp/hive/URLBasedAuthDB.java | 222 --
.../xasecure/pdp/hive/XASecureAuthorizer.java | 48 -
.../com/xasecure/pdp/knox/URLBasedAuthDB.java | 453 ---
.../xasecure/pdp/knox/XASecureAuthorizer.java | 65 -
.../XASecurePDPKnoxDeploymentContributor.java | 73 -
.../pdp/knox/filter/XASecurePDPKnoxFilter.java | 215 --
.../java/com/xasecure/pdp/model/Policy.java | 325 --
.../com/xasecure/pdp/model/PolicyContainer.java | 55 -
.../com/xasecure/pdp/model/ResourcePath.java | 43 -
.../com/xasecure/pdp/model/RolePermission.java | 71 -
.../com/xasecure/pdp/storm/StormAuthRule.java | 137 -
.../com/xasecure/pdp/storm/URLBasedAuthDB.java | 177 -
.../xasecure/pdp/storm/XASecureAuthorizer.java | 62 -
.../com/xasecure/pdp/utils/XaSecureUtils.java | 49 -
.../apache/ranger/pdp/config/ConfigWatcher.java | 543 +++
.../ranger/pdp/config/Jersey2ConfigWatcher.java | 565 +++
.../pdp/config/Jersey2PolicyRefresher.java | 207 ++
.../ranger/pdp/config/PolicyChangeListener.java | 26 +
.../ranger/pdp/config/PolicyRefresher.java | 229 ++
.../pdp/config/gson/ExcludeSerialization.java | 32 +
.../config/gson/PolicyExclusionStrategy.java | 37 +
.../ranger/pdp/constants/RangerConstants.java | 89 +
.../apache/ranger/pdp/hbase/HBaseAuthDB.java | 488 +++
.../apache/ranger/pdp/hbase/HBaseAuthRules.java | 134 +
.../ranger/pdp/hbase/RangerAuthorizer.java | 107 +
.../apache/ranger/pdp/hbase/URLBasedAuthDB.java | 233 ++
.../ranger/pdp/hdfs/AdminPolicyChecker.java | 183 +
.../ranger/pdp/hdfs/RangerAuthorizer.java | 40 +
.../apache/ranger/pdp/hdfs/URLBasedAuthDB.java | 479 +++
.../org/apache/ranger/pdp/hive/HiveAuthDB.java | 306 ++
.../apache/ranger/pdp/hive/HiveAuthRule.java | 222 ++
.../pdp/hive/HiveAuthorizationProviderBase.java | 64 +
.../ranger/pdp/hive/RangerAuthorizer.java | 47 +
.../apache/ranger/pdp/hive/URLBasedAuthDB.java | 221 ++
.../ranger/pdp/knox/RangerAuthorizer.java | 64 +
.../apache/ranger/pdp/knox/URLBasedAuthDB.java | 452 +++
.../RangerPDPKnoxDeploymentContributor.java | 73 +
.../pdp/knox/filter/RangerPDPKnoxFilter.java | 214 ++
.../org/apache/ranger/pdp/model/Policy.java | 326 ++
.../ranger/pdp/model/PolicyContainer.java | 55 +
.../apache/ranger/pdp/model/ResourcePath.java | 43 +
.../apache/ranger/pdp/model/RolePermission.java | 71 +
.../ranger/pdp/storm/RangerAuthorizer.java | 61 +
.../apache/ranger/pdp/storm/StormAuthRule.java | 136 +
.../apache/ranger/pdp/storm/URLBasedAuthDB.java | 176 +
.../apache/ranger/pdp/utils/RangerUtils.java | 49 +
...gateway.deploy.ProviderDeploymentContributor | 2 +-
.../xasecure/pdp/hdfs/PolicyCacheStoreTest.java | 169 -
.../xasecure/pdp/hdfs/URLBasedAuthDBTest.java | 66 -
...asedAuthDB_IsAuditLogEnabledByACL_PTest.java | 340 --
.../xasecure/pdp/knox/URLBasedAuthDBTest.java | 956 ------
.../ranger/pdp/hdfs/PolicyCacheStoreTest.java | 170 +
.../ranger/pdp/hdfs/URLBasedAuthDBTest.java | 66 +
...asedAuthDB_IsAuditLogEnabledByACL_PTest.java | 340 ++
.../ranger/pdp/knox/URLBasedAuthDBTest.java | 956 ++++++
.../utils/install/PasswordGenerator.java | 141 -
.../utils/install/XmlConfigChanger.java | 494 ---
.../ranger/utils/install/PasswordGenerator.java | 141 +
.../ranger/utils/install/XmlConfigChanger.java | 494 +++
credentialbuilder/.gitignore | 1 +
.../credentialapi/CredentialReader.java | 87 -
.../com/hortonworks/credentialapi/buildks.java | 433 ---
.../ranger/credentialapi/CredentialReader.java | 87 +
.../apache/ranger/credentialapi/buildks.java | 433 +++
.../credentialapi/TestCredentialReader.java | 52 -
.../hortonworks/credentialapi/Testbuildks.java | 78 -
.../credentialapi/TestCredentialReader.java | 54 +
.../ranger/credentialapi/Testbuildks.java | 79 +
embededwebserver/scripts/start-ranger-admin.sh | 2 +-
embededwebserver/scripts/stop-ranger-admin.sh | 2 +-
.../xasecure/server/tomcat/EmbededServer.java | 240 --
.../server/tomcat/StopEmbededServer.java | 62 -
.../ranger/server/tomcat/EmbededServer.java | 240 ++
.../ranger/server/tomcat/StopEmbededServer.java | 62 +
.../.settings/org.eclipse.core.resources.prefs | 1 +
hbase-agent/conf/hbase-site-changes.cfg | 4 +-
.../conf/xasecure-hbase-security-changes.cfg | 2 +-
hbase-agent/conf/xasecure-hbase-security.xml | 2 +-
hbase-agent/disable-conf/hbase-site-changes.cfg | 4 +-
hbase-agent/scripts/install.sh | 2 +-
.../com/xasecure/authorization/hbase/Crypt.java | 85 -
.../hbase/HBaseAccessController.java | 40 -
.../hbase/HBaseAccessControllerFactory.java | 62 -
.../hbase/XaSecureAccessControlFilter.java | 51 -
.../hbase/XaSecureAuthorizationCoprocessor.java | 1259 -------
.../XaSecureAuthorizationCoprocessorBase.java | 671 ----
.../access/RangerAccessControlLists.java | 104 +
.../security/access/XaAccessControlLists.java | 104 -
.../ranger/authorization/hbase/Crypt.java | 85 +
.../hbase/HBaseAccessController.java | 40 +
.../hbase/HBaseAccessControllerFactory.java | 61 +
.../hbase/RangerAccessControlFilter.java | 51 +
.../hbase/RangerAuthorizationCoprocessor.java | 1259 +++++++
.../RangerAuthorizationCoprocessorBase.java | 671 ++++
.../access/RangerAccessControlListsTest.java | 61 +
.../access/XaAccessControlListsTest.java | 61 -
.../conf/xasecure-hdfs-security-changes.cfg | 2 +-
hdfs-agent/conf/xasecure-hdfs-security.xml | 2 +-
hdfs-agent/scripts/install.sh | 2 +-
.../hadoop/HDFSAccessVerifier.java | 35 -
.../hadoop/HDFSAccessVerifierFactory.java | 59 -
.../agent/AuthCodeInjectionJavaAgent.java | 32 -
.../agent/HadoopAuthClassTransformer.java | 196 --
.../XaSecureAccessControlException.java | 32 -
.../namenode/RangerFSPermissionChecker.java | 317 ++
.../namenode/XaSecureFSPermissionChecker.java | 318 --
.../hadoop/HDFSAccessVerifier.java | 35 +
.../hadoop/HDFSAccessVerifierFactory.java | 58 +
.../agent/AuthCodeInjectionJavaAgent.java | 32 +
.../agent/HadoopAuthClassTransformer.java | 196 ++
.../RangerAccessControlException.java | 32 +
.../src/main/resources/META-INF/MANIFEST.MF | 2 +-
.../agent/TestXaSecureFSPermissionChecker.java | 68 -
.../agent/TestRangerFSPermissionChecker.java | 67 +
hive-agent/conf/hiveserver2-site-changes.cfg | 2 +-
.../conf/xasecure-hive-security-changes.cfg | 2 +-
hive-agent/conf/xasecure-hive-security.xml | 2 +-
hive-agent/scripts/install.sh | 2 +-
.../authorization/hive/XaHiveAccessContext.java | 75 -
.../hive/XaHiveAccessVerifier.java | 29 -
.../hive/XaHiveAccessVerifierFactory.java | 67 -
.../hive/XaHiveObjectAccessInfo.java | 240 --
.../hive/authorizer/XaSecureHiveAuthorizer.java | 850 -----
.../authorizer/XaSecureHiveAuthorizerBase.java | 231 --
.../XaSecureHiveAuthorizerFactory.java | 39 -
.../hive/constants/XaSecureHiveConstants.java | 28 -
.../hive/RangerHiveAccessContext.java | 75 +
.../hive/RangerHiveAccessVerifier.java | 29 +
.../hive/RangerHiveAccessVerifierFactory.java | 66 +
.../hive/RangerHiveObjectAccessInfo.java | 240 ++
.../hive/authorizer/RangerHiveAuthorizer.java | 849 +++++
.../authorizer/RangerHiveAuthorizerBase.java | 230 ++
.../authorizer/RangerHiveAuthorizerFactory.java | 39 +
.../hive/constants/RangerHiveConstants.java | 28 +
knox-agent/.gitignore | 1 +
.../conf/xasecure-knox-security-changes.cfg | 2 +-
knox-agent/conf/xasecure-knox-security.xml | 2 +-
knox-agent/scripts/install.sh | 4 +-
.../authorization/knox/KnoxAccessVerifier.java | 30 -
.../knox/KnoxAccessVerifierFactory.java | 66 -
.../authorization/knox/KnoxAccessVerifier.java | 30 +
.../knox/KnoxAccessVerifierFactory.java | 65 +
.../com/xasecure/hadoop/client/HadoopFS.java | 196 --
.../xasecure/hadoop/client/HadoopFSTester.java | 61 -
.../hadoop/client/config/BaseClient.java | 164 -
.../hadoop/client/config/HadoopClassLoader.java | 106 -
.../client/config/HadoopConfigHolder.java | 361 --
.../client/exceptions/HadoopException.java | 60 -
.../com/xasecure/hbase/client/HBaseClient.java | 403 ---
.../hbase/client/HBaseClientTester.java | 78 -
.../com/xasecure/hive/client/HiveClient.java | 511 ---
.../xasecure/hive/client/HiveClientTester.java | 97 -
.../com/xasecure/knox/client/KnoxClient.java | 387 ---
.../xasecure/knox/client/KnoxClientTest.java | 42 -
.../xasecure/knox/client/XaSecureConstants.java | 42 -
.../com/xasecure/storm/client/StormClient.java | 395 ---
.../storm/client/json/model/Topology.java | 47 -
.../client/json/model/TopologyListResponse.java | 38 -
.../apache/ranger/hadoop/client/HadoopFS.java | 195 ++
.../ranger/hadoop/client/HadoopFSTester.java | 61 +
.../ranger/hadoop/client/config/BaseClient.java | 163 +
.../hadoop/client/config/HadoopClassLoader.java | 105 +
.../client/config/HadoopConfigHolder.java | 360 ++
.../client/exceptions/HadoopException.java | 60 +
.../apache/ranger/hbase/client/HBaseClient.java | 403 +++
.../ranger/hbase/client/HBaseClientTester.java | 78 +
.../apache/ranger/hive/client/HiveClient.java | 510 +++
.../ranger/hive/client/HiveClientTester.java | 97 +
.../apache/ranger/knox/client/KnoxClient.java | 387 +++
.../ranger/knox/client/KnoxClientTest.java | 42 +
.../ranger/knox/client/RangerConstants.java | 42 +
.../apache/ranger/storm/client/StormClient.java | 395 +++
.../storm/client/json/model/Topology.java | 47 +
.../client/json/model/TopologyListResponse.java | 38 +
lookup-client/src/scripts/run-audit-test.sh | 2 +-
lookup-client/src/scripts/run-hadoop-client.sh | 4 +-
lookup-client/src/scripts/run-hbase-client.sh | 8 +-
lookup-client/src/scripts/run-hive-client.sh | 10 +-
security-admin/.gitignore | 1 +
.../.settings/org.eclipse.wst.common.component | 1 -
security-admin/scripts/setup.sh | 16 +-
security-admin/src/bin/ranger_install.py | 4 +-
security-admin/src/bin/ranger_usersync.py | 2 +-
security-admin/src/bin/service_start.py | 2 +-
.../unix/jaas/RoleUserAuthorityGranter.java | 40 -
.../com/xasecure/biz/AssetConnectionMgr.java | 425 ---
.../main/java/com/xasecure/biz/AssetMgr.java | 3219 ------------------
.../java/com/xasecure/biz/AssetMgrBase.java | 174 -
.../src/main/java/com/xasecure/biz/BaseMgr.java | 80 -
.../main/java/com/xasecure/biz/HadoopFSMgr.java | 84 -
.../main/java/com/xasecure/biz/HiveFSMgr.java | 83 -
.../main/java/com/xasecure/biz/SessionMgr.java | 342 --
.../src/main/java/com/xasecure/biz/UserMgr.java | 1150 -------
.../main/java/com/xasecure/biz/UserMgrBase.java | 66 -
.../main/java/com/xasecure/biz/XABizUtil.java | 1316 -------
.../main/java/com/xasecure/biz/XAuditMgr.java | 25 -
.../java/com/xasecure/biz/XAuditMgrBase.java | 102 -
.../main/java/com/xasecure/biz/XUserMgr.java | 452 ---
.../java/com/xasecure/biz/XUserMgrBase.java | 246 --
.../java/com/xasecure/common/AppConstants.java | 954 ------
.../java/com/xasecure/common/ContextUtil.java | 84 -
.../main/java/com/xasecure/common/DateUtil.java | 108 -
.../com/xasecure/common/ErrorMessageUtil.java | 61 -
.../main/java/com/xasecure/common/GUIDUtil.java | 41 -
.../main/java/com/xasecure/common/HTTPUtil.java | 65 -
.../main/java/com/xasecure/common/JSONUtil.java | 134 -
.../java/com/xasecure/common/MessageEnums.java | 71 -
.../java/com/xasecure/common/MyCallBack.java | 34 -
.../java/com/xasecure/common/PasswordUtils.java | 159 -
.../com/xasecure/common/PropertiesUtil.java | 164 -
.../java/com/xasecure/common/RESTErrorUtil.java | 349 --
.../com/xasecure/common/RequestContext.java | 161 -
.../com/xasecure/common/SearchCriteria.java | 200 --
.../java/com/xasecure/common/SearchField.java | 218 --
.../java/com/xasecure/common/SearchGroup.java | 140 -
.../java/com/xasecure/common/SearchUtil.java | 819 -----
.../java/com/xasecure/common/SearchValue.java | 78 -
.../java/com/xasecure/common/SortField.java | 99 -
.../java/com/xasecure/common/StringUtil.java | 262 --
.../com/xasecure/common/TimedEventUtil.java | 78 -
.../com/xasecure/common/UserSessionBase.java | 115 -
.../java/com/xasecure/common/XACommonEnums.java | 1443 --------
.../java/com/xasecure/common/XAConfigUtil.java | 92 -
.../java/com/xasecure/common/XAConstants.java | 169 -
.../xasecure/common/XAJAXBContextResolver.java | 72 -
.../java/com/xasecure/common/XASearchUtil.java | 79 -
.../annotation/XAAnnotationClassName.java | 32 -
.../annotation/XAAnnotationJSMgrName.java | 35 -
.../common/annotation/XAAnnotationRestAPI.java | 36 -
.../java/com/xasecure/common/db/BaseDao.java | 216 --
.../xasecure/common/db/JPABeanCallbacks.java | 105 -
.../java/com/xasecure/common/view/VEnum.java | 107 -
.../com/xasecure/common/view/VEnumElement.java | 166 -
.../java/com/xasecure/common/view/VList.java | 189 -
.../com/xasecure/common/view/VTrxLogAttr.java | 84 -
.../com/xasecure/common/view/ViewBaseBean.java | 57 -
.../credentialapi/CredentialReader.java | 87 -
.../main/java/com/xasecure/db/XADaoManager.java | 79 -
.../java/com/xasecure/db/XADaoManagerBase.java | 214 --
.../java/com/xasecure/db/XXAccessAuditDao.java | 33 -
.../main/java/com/xasecure/db/XXAssetDao.java | 56 -
.../java/com/xasecure/db/XXAuditMapDao.java | 61 -
.../java/com/xasecure/db/XXAuthSessionDao.java | 53 -
.../com/xasecure/db/XXCredentialStoreDao.java | 34 -
.../main/java/com/xasecure/db/XXDBBaseDao.java | 31 -
.../main/java/com/xasecure/db/XXGroupDao.java | 74 -
.../java/com/xasecure/db/XXGroupGroupDao.java | 34 -
.../java/com/xasecure/db/XXGroupUserDao.java | 68 -
.../main/java/com/xasecure/db/XXPermMapDao.java | 60 -
.../com/xasecure/db/XXPolicyExportAuditDao.java | 33 -
.../java/com/xasecure/db/XXPortalUserDao.java | 79 -
.../com/xasecure/db/XXPortalUserRoleDao.java | 59 -
.../java/com/xasecure/db/XXResourceDao.java | 276 --
.../main/java/com/xasecure/db/XXTrxLogDao.java | 58 -
.../main/java/com/xasecure/db/XXUserDao.java | 53 -
.../java/com/xasecure/entity/XXAccessAudit.java | 651 ----
.../main/java/com/xasecure/entity/XXAsset.java | 287 --
.../java/com/xasecure/entity/XXAuditMap.java | 226 --
.../java/com/xasecure/entity/XXAuthSession.java | 470 ---
.../com/xasecure/entity/XXCredentialStore.java | 162 -
.../main/java/com/xasecure/entity/XXDBBase.java | 232 --
.../main/java/com/xasecure/entity/XXGroup.java | 273 --
.../java/com/xasecure/entity/XXGroupGroup.java | 194 --
.../java/com/xasecure/entity/XXGroupUser.java | 197 --
.../java/com/xasecure/entity/XXPermMap.java | 396 ---
.../xasecure/entity/XXPolicyExportAudit.java | 310 --
.../java/com/xasecure/entity/XXPortalUser.java | 378 --
.../com/xasecure/entity/XXPortalUserRole.java | 186 -
.../java/com/xasecure/entity/XXResource.java | 717 ----
.../main/java/com/xasecure/entity/XXTrxLog.java | 523 ---
.../main/java/com/xasecure/entity/XXUser.java | 227 --
.../com/xasecure/entity/view/VXXTrxLog.java | 399 ---
.../src/main/java/com/xasecure/json/Folder.java | 43 -
.../com/xasecure/json/JsonDateSerializer.java | 51 -
.../java/com/xasecure/patch/BaseLoader.java | 206 --
.../patch/PatchPasswordEncryption_J10001.java | 100 -
.../main/java/com/xasecure/rest/AssetREST.java | 655 ----
.../main/java/com/xasecure/rest/PublicAPIs.java | 319 --
.../main/java/com/xasecure/rest/UserREST.java | 332 --
.../main/java/com/xasecure/rest/XAuditREST.java | 150 -
.../main/java/com/xasecure/rest/XUserREST.java | 594 ----
.../security/context/XAContextHolder.java | 45 -
.../security/context/XASecurityContext.java | 58 -
.../xasecure/security/handler/Permission.java | 53 -
.../handler/XADomainObjectSecurityHandler.java | 112 -
.../security/listener/SpringEventListener.java | 113 -
.../standalone/StandaloneSecurityHandler.java | 79 -
.../CustomLogoutSuccessHandler.java | 68 -
.../authentication/XAAuthFailureHandler.java | 109 -
.../authentication/XAAuthSuccessHandler.java | 162 -
.../XAAuthenticationEntryPoint.java | 107 -
.../security/web/filter/MyRememberMeFilter.java | 184 -
.../XASecurityContextFormationFilter.java | 141 -
.../XAUsernamePasswordAuthenticationFilter.java | 52 -
.../service/AbstractBaseResourceService.java | 872 -----
.../xasecure/service/AuthSessionService.java | 207 --
.../xasecure/service/PublicAPIServiceBase.java | 45 -
.../java/com/xasecure/service/UserService.java | 329 --
.../com/xasecure/service/UserServiceBase.java | 73 -
.../xasecure/service/XAccessAuditService.java | 265 --
.../service/XAccessAuditServiceBase.java | 113 -
.../com/xasecure/service/XAgentService.java | 144 -
.../com/xasecure/service/XAssetService.java | 400 ---
.../com/xasecure/service/XAssetServiceBase.java | 89 -
.../com/xasecure/service/XAuditMapService.java | 188 -
.../xasecure/service/XAuditMapServiceBase.java | 85 -
.../service/XCredentialStoreService.java | 49 -
.../service/XCredentialStoreServiceBase.java | 81 -
.../xasecure/service/XGroupGroupService.java | 49 -
.../service/XGroupGroupServiceBase.java | 83 -
.../com/xasecure/service/XGroupService.java | 252 --
.../com/xasecure/service/XGroupServiceBase.java | 85 -
.../com/xasecure/service/XGroupUserService.java | 194 --
.../xasecure/service/XGroupUserServiceBase.java | 83 -
.../com/xasecure/service/XPermMapService.java | 316 --
.../xasecure/service/XPermMapServiceBase.java | 97 -
.../service/XPolicyExportAuditService.java | 67 -
.../service/XPolicyExportAuditServiceBase.java | 91 -
.../com/xasecure/service/XPolicyService.java | 754 ----
.../xasecure/service/XPortalUserService.java | 195 --
.../service/XPortalUserServiceBase.java | 95 -
.../xasecure/service/XRepositoryService.java | 133 -
.../com/xasecure/service/XResourceService.java | 1115 ------
.../xasecure/service/XResourceServiceBase.java | 117 -
.../com/xasecure/service/XTrxLogService.java | 461 ---
.../xasecure/service/XTrxLogServiceBase.java | 105 -
.../java/com/xasecure/service/XUserService.java | 380 ---
.../com/xasecure/service/XUserServiceBase.java | 83 -
.../service/filter/XARESTAPIFilter.java | 281 --
.../main/java/com/xasecure/util/CLIUtil.java | 68 -
.../main/java/com/xasecure/util/RestUtil.java | 78 -
.../main/java/com/xasecure/util/XAEnumUtil.java | 2023 -----------
.../main/java/com/xasecure/util/XARestUtil.java | 157 -
.../java/com/xasecure/view/VXAccessAudit.java | 473 ---
.../com/xasecure/view/VXAccessAuditList.java | 81 -
.../main/java/com/xasecure/view/VXAsset.java | 210 --
.../java/com/xasecure/view/VXAssetList.java | 81 -
.../main/java/com/xasecure/view/VXAuditMap.java | 164 -
.../java/com/xasecure/view/VXAuditMapList.java | 81 -
.../java/com/xasecure/view/VXAuditRecord.java | 239 --
.../com/xasecure/view/VXAuditRecordList.java | 69 -
.../java/com/xasecure/view/VXAuthSession.java | 501 ---
.../com/xasecure/view/VXAuthSessionList.java | 81 -
.../com/xasecure/view/VXCredentialStore.java | 118 -
.../xasecure/view/VXCredentialStoreList.java | 81 -
.../java/com/xasecure/view/VXDataObject.java | 186 -
.../main/java/com/xasecure/view/VXGroup.java | 179 -
.../java/com/xasecure/view/VXGroupGroup.java | 140 -
.../com/xasecure/view/VXGroupGroupList.java | 81 -
.../java/com/xasecure/view/VXGroupList.java | 81 -
.../java/com/xasecure/view/VXGroupUser.java | 140 -
.../java/com/xasecure/view/VXGroupUserList.java | 81 -
.../src/main/java/com/xasecure/view/VXLong.java | 96 -
.../main/java/com/xasecure/view/VXMessage.java | 184 -
.../com/xasecure/view/VXPasswordChange.java | 206 --
.../main/java/com/xasecure/view/VXPermMap.java | 334 --
.../java/com/xasecure/view/VXPermMapList.java | 81 -
.../main/java/com/xasecure/view/VXPermObj.java | 142 -
.../java/com/xasecure/view/VXPermObjList.java | 81 -
.../main/java/com/xasecure/view/VXPolicy.java | 577 ----
.../com/xasecure/view/VXPolicyExportAudit.java | 229 --
.../xasecure/view/VXPolicyExportAuditList.java | 81 -
.../java/com/xasecure/view/VXPolicyList.java | 81 -
.../java/com/xasecure/view/VXPortalUser.java | 293 --
.../com/xasecure/view/VXPortalUserList.java | 81 -
.../java/com/xasecure/view/VXRepository.java | 219 --
.../com/xasecure/view/VXRepositoryList.java | 81 -
.../main/java/com/xasecure/view/VXResource.java | 624 ----
.../java/com/xasecure/view/VXResourceList.java | 81 -
.../main/java/com/xasecure/view/VXResponse.java | 175 -
.../main/java/com/xasecure/view/VXString.java | 96 -
.../java/com/xasecure/view/VXStringList.java | 81 -
.../main/java/com/xasecure/view/VXTrxLog.java | 379 ---
.../java/com/xasecure/view/VXTrxLogList.java | 76 -
.../src/main/java/com/xasecure/view/VXUser.java | 302 --
.../main/java/com/xasecure/view/VXUserList.java | 81 -
.../unix/jaas/RoleUserAuthorityGranter.java | 41 +
.../apache/ranger/biz/AssetConnectionMgr.java | 424 +++
.../java/org/apache/ranger/biz/AssetMgr.java | 3218 +++++++++++++++++
.../org/apache/ranger/biz/AssetMgrBase.java | 174 +
.../java/org/apache/ranger/biz/BaseMgr.java | 79 +
.../java/org/apache/ranger/biz/HadoopFSMgr.java | 83 +
.../java/org/apache/ranger/biz/HiveFSMgr.java | 83 +
.../java/org/apache/ranger/biz/SessionMgr.java | 340 ++
.../java/org/apache/ranger/biz/UserMgr.java | 1149 +++++++
.../java/org/apache/ranger/biz/UserMgrBase.java | 66 +
.../java/org/apache/ranger/biz/XABizUtil.java | 1313 +++++++
.../java/org/apache/ranger/biz/XAuditMgr.java | 25 +
.../org/apache/ranger/biz/XAuditMgrBase.java | 102 +
.../java/org/apache/ranger/biz/XUserMgr.java | 450 +++
.../org/apache/ranger/biz/XUserMgrBase.java | 246 ++
.../org/apache/ranger/common/AppConstants.java | 955 ++++++
.../org/apache/ranger/common/ContextUtil.java | 84 +
.../java/org/apache/ranger/common/DateUtil.java | 108 +
.../apache/ranger/common/ErrorMessageUtil.java | 61 +
.../java/org/apache/ranger/common/GUIDUtil.java | 41 +
.../java/org/apache/ranger/common/HTTPUtil.java | 65 +
.../java/org/apache/ranger/common/JSONUtil.java | 133 +
.../org/apache/ranger/common/MessageEnums.java | 71 +
.../org/apache/ranger/common/MyCallBack.java | 34 +
.../org/apache/ranger/common/PasswordUtils.java | 159 +
.../apache/ranger/common/PropertiesUtil.java | 164 +
.../org/apache/ranger/common/RESTErrorUtil.java | 348 ++
.../apache/ranger/common/RequestContext.java | 161 +
.../apache/ranger/common/SearchCriteria.java | 199 ++
.../org/apache/ranger/common/SearchField.java | 218 ++
.../org/apache/ranger/common/SearchGroup.java | 140 +
.../org/apache/ranger/common/SearchUtil.java | 819 +++++
.../org/apache/ranger/common/SearchValue.java | 78 +
.../org/apache/ranger/common/SortField.java | 99 +
.../org/apache/ranger/common/StringUtil.java | 262 ++
.../apache/ranger/common/TimedEventUtil.java | 78 +
.../apache/ranger/common/UserSessionBase.java | 115 +
.../org/apache/ranger/common/XACommonEnums.java | 1444 ++++++++
.../org/apache/ranger/common/XAConfigUtil.java | 91 +
.../org/apache/ranger/common/XAConstants.java | 169 +
.../ranger/common/XAJAXBContextResolver.java | 73 +
.../org/apache/ranger/common/XASearchUtil.java | 78 +
.../annotation/XAAnnotationClassName.java | 32 +
.../annotation/XAAnnotationJSMgrName.java | 35 +
.../common/annotation/XAAnnotationRestAPI.java | 36 +
.../org/apache/ranger/common/db/BaseDao.java | 215 ++
.../ranger/common/db/JPABeanCallbacks.java | 103 +
.../org/apache/ranger/common/view/VEnum.java | 107 +
.../apache/ranger/common/view/VEnumElement.java | 166 +
.../org/apache/ranger/common/view/VList.java | 189 +
.../apache/ranger/common/view/VTrxLogAttr.java | 83 +
.../apache/ranger/common/view/ViewBaseBean.java | 56 +
.../ranger/credentialapi/CredentialReader.java | 87 +
.../java/org/apache/ranger/db/XADaoManager.java | 77 +
.../org/apache/ranger/db/XADaoManagerBase.java | 216 ++
.../org/apache/ranger/db/XXAccessAuditDao.java | 32 +
.../java/org/apache/ranger/db/XXAssetDao.java | 54 +
.../org/apache/ranger/db/XXAuditMapDao.java | 57 +
.../org/apache/ranger/db/XXAuthSessionDao.java | 53 +
.../apache/ranger/db/XXCredentialStoreDao.java | 32 +
.../java/org/apache/ranger/db/XXDBBaseDao.java | 31 +
.../java/org/apache/ranger/db/XXGroupDao.java | 73 +
.../org/apache/ranger/db/XXGroupGroupDao.java | 32 +
.../org/apache/ranger/db/XXGroupUserDao.java | 64 +
.../java/org/apache/ranger/db/XXPermMapDao.java | 56 +
.../ranger/db/XXPolicyExportAuditDao.java | 32 +
.../org/apache/ranger/db/XXPortalUserDao.java | 79 +
.../apache/ranger/db/XXPortalUserRoleDao.java | 59 +
.../org/apache/ranger/db/XXResourceDao.java | 273 ++
.../java/org/apache/ranger/db/XXTrxLogDao.java | 56 +
.../java/org/apache/ranger/db/XXUserDao.java | 51 +
.../org/apache/ranger/entity/XXAccessAudit.java | 653 ++++
.../java/org/apache/ranger/entity/XXAsset.java | 289 ++
.../org/apache/ranger/entity/XXAuditMap.java | 228 ++
.../org/apache/ranger/entity/XXAuthSession.java | 472 +++
.../apache/ranger/entity/XXCredentialStore.java | 164 +
.../java/org/apache/ranger/entity/XXDBBase.java | 234 ++
.../java/org/apache/ranger/entity/XXGroup.java | 275 ++
.../org/apache/ranger/entity/XXGroupGroup.java | 196 ++
.../org/apache/ranger/entity/XXGroupUser.java | 199 ++
.../org/apache/ranger/entity/XXPermMap.java | 398 +++
.../ranger/entity/XXPolicyExportAudit.java | 312 ++
.../org/apache/ranger/entity/XXPortalUser.java | 380 +++
.../apache/ranger/entity/XXPortalUserRole.java | 188 +
.../org/apache/ranger/entity/XXResource.java | 719 ++++
.../java/org/apache/ranger/entity/XXTrxLog.java | 525 +++
.../java/org/apache/ranger/entity/XXUser.java | 229 ++
.../apache/ranger/entity/view/VXXTrxLog.java | 399 +++
.../java/org/apache/ranger/json/Folder.java | 43 +
.../apache/ranger/json/JsonDateSerializer.java | 51 +
.../org/apache/ranger/patch/BaseLoader.java | 204 ++
.../patch/PatchPasswordEncryption_J10001.java | 99 +
.../java/org/apache/ranger/rest/AssetREST.java | 654 ++++
.../java/org/apache/ranger/rest/PublicAPIs.java | 318 ++
.../java/org/apache/ranger/rest/UserREST.java | 330 ++
.../java/org/apache/ranger/rest/XAuditREST.java | 145 +
.../java/org/apache/ranger/rest/XUserREST.java | 589 ++++
.../security/context/XAContextHolder.java | 45 +
.../security/context/XASecurityContext.java | 58 +
.../ranger/security/handler/Permission.java | 53 +
.../handler/XADomainObjectSecurityHandler.java | 112 +
.../security/listener/SpringEventListener.java | 111 +
.../standalone/StandaloneSecurityHandler.java | 78 +
.../CustomLogoutSuccessHandler.java | 67 +
.../authentication/XAAuthFailureHandler.java | 108 +
.../authentication/XAAuthSuccessHandler.java | 161 +
.../XAAuthenticationEntryPoint.java | 106 +
.../security/web/filter/MyRememberMeFilter.java | 184 +
.../XASecurityContextFormationFilter.java | 139 +
.../XAUsernamePasswordAuthenticationFilter.java | 52 +
.../service/AbstractBaseResourceService.java | 870 +++++
.../ranger/service/AuthSessionService.java | 206 ++
.../ranger/service/PublicAPIServiceBase.java | 45 +
.../org/apache/ranger/service/UserService.java | 328 ++
.../apache/ranger/service/UserServiceBase.java | 73 +
.../ranger/service/XAccessAuditService.java | 264 ++
.../ranger/service/XAccessAuditServiceBase.java | 113 +
.../apache/ranger/service/XAgentService.java | 142 +
.../apache/ranger/service/XAssetService.java | 398 +++
.../ranger/service/XAssetServiceBase.java | 89 +
.../apache/ranger/service/XAuditMapService.java | 186 +
.../ranger/service/XAuditMapServiceBase.java | 85 +
.../ranger/service/XCredentialStoreService.java | 45 +
.../service/XCredentialStoreServiceBase.java | 81 +
.../ranger/service/XGroupGroupService.java | 45 +
.../ranger/service/XGroupGroupServiceBase.java | 83 +
.../apache/ranger/service/XGroupService.java | 248 ++
.../ranger/service/XGroupServiceBase.java | 85 +
.../ranger/service/XGroupUserService.java | 190 ++
.../ranger/service/XGroupUserServiceBase.java | 83 +
.../apache/ranger/service/XPermMapService.java | 314 ++
.../ranger/service/XPermMapServiceBase.java | 97 +
.../service/XPolicyExportAuditService.java | 65 +
.../service/XPolicyExportAuditServiceBase.java | 91 +
.../apache/ranger/service/XPolicyService.java | 753 ++++
.../ranger/service/XPortalUserService.java | 194 ++
.../ranger/service/XPortalUserServiceBase.java | 95 +
.../ranger/service/XRepositoryService.java | 132 +
.../apache/ranger/service/XResourceService.java | 1112 ++++++
.../ranger/service/XResourceServiceBase.java | 117 +
.../apache/ranger/service/XTrxLogService.java | 460 +++
.../ranger/service/XTrxLogServiceBase.java | 105 +
.../org/apache/ranger/service/XUserService.java | 375 ++
.../apache/ranger/service/XUserServiceBase.java | 83 +
.../ranger/service/filter/XARESTAPIFilter.java | 280 ++
.../java/org/apache/ranger/util/CLIUtil.java | 67 +
.../java/org/apache/ranger/util/RestUtil.java | 77 +
.../java/org/apache/ranger/util/XAEnumUtil.java | 2024 +++++++++++
.../java/org/apache/ranger/util/XARestUtil.java | 156 +
.../org/apache/ranger/view/VXAccessAudit.java | 469 +++
.../apache/ranger/view/VXAccessAuditList.java | 81 +
.../java/org/apache/ranger/view/VXAsset.java | 206 ++
.../org/apache/ranger/view/VXAssetList.java | 81 +
.../java/org/apache/ranger/view/VXAuditMap.java | 160 +
.../org/apache/ranger/view/VXAuditMapList.java | 81 +
.../org/apache/ranger/view/VXAuditRecord.java | 238 ++
.../apache/ranger/view/VXAuditRecordList.java | 68 +
.../org/apache/ranger/view/VXAuthSession.java | 497 +++
.../apache/ranger/view/VXAuthSessionList.java | 81 +
.../apache/ranger/view/VXCredentialStore.java | 114 +
.../ranger/view/VXCredentialStoreList.java | 81 +
.../org/apache/ranger/view/VXDataObject.java | 182 +
.../java/org/apache/ranger/view/VXGroup.java | 175 +
.../org/apache/ranger/view/VXGroupGroup.java | 136 +
.../apache/ranger/view/VXGroupGroupList.java | 81 +
.../org/apache/ranger/view/VXGroupList.java | 81 +
.../org/apache/ranger/view/VXGroupUser.java | 136 +
.../org/apache/ranger/view/VXGroupUserList.java | 81 +
.../java/org/apache/ranger/view/VXLong.java | 92 +
.../java/org/apache/ranger/view/VXMessage.java | 180 +
.../apache/ranger/view/VXPasswordChange.java | 202 ++
.../java/org/apache/ranger/view/VXPermMap.java | 330 ++
.../org/apache/ranger/view/VXPermMapList.java | 81 +
.../java/org/apache/ranger/view/VXPermObj.java | 142 +
.../org/apache/ranger/view/VXPermObjList.java | 81 +
.../java/org/apache/ranger/view/VXPolicy.java | 576 ++++
.../apache/ranger/view/VXPolicyExportAudit.java | 225 ++
.../ranger/view/VXPolicyExportAuditList.java | 81 +
.../org/apache/ranger/view/VXPolicyList.java | 81 +
.../org/apache/ranger/view/VXPortalUser.java | 289 ++
.../apache/ranger/view/VXPortalUserList.java | 81 +
.../org/apache/ranger/view/VXRepository.java | 218 ++
.../apache/ranger/view/VXRepositoryList.java | 81 +
.../java/org/apache/ranger/view/VXResource.java | 622 ++++
.../org/apache/ranger/view/VXResourceList.java | 81 +
.../java/org/apache/ranger/view/VXResponse.java | 171 +
.../java/org/apache/ranger/view/VXString.java | 92 +
.../org/apache/ranger/view/VXStringList.java | 81 +
.../java/org/apache/ranger/view/VXTrxLog.java | 375 ++
.../org/apache/ranger/view/VXTrxLogList.java | 76 +
.../java/org/apache/ranger/view/VXUser.java | 300 ++
.../java/org/apache/ranger/view/VXUserList.java | 81 +
.../src/main/resources/META-INF/persistence.xml | 32 +-
.../conf.dist/security-applicationContext.xml | 16 +-
.../src/main/resources/xa_default.properties | 2 +-
.../main/webapp/META-INF/applicationContext.xml | 10 +-
.../META-INF/contextXML/unix_bean_settings.xml | 4 +-
.../src/main/webapp/WEB-INF/log4j.dev.xml | 2 +-
.../src/main/webapp/WEB-INF/log4j.xml | 2 +-
security-admin/src/main/webapp/WEB-INF/web.xml | 8 +-
.../java/com/xasecure/biz/TestAssetMgr.java | 739 ----
.../test/java/com/xasecure/biz/TestUserMgr.java | 573 ----
.../java/com/xasecure/biz/TestXABizUtil.java | 546 ---
.../java/com/xasecure/biz/TestXUserMgr.java | 398 ---
.../java/com/xasecure/common/TestDateUtil.java | 80 -
.../java/com/xasecure/common/TestJSONUtil.java | 71 -
.../com/xasecure/common/TestPropertiesUtil.java | 112 -
.../com/xasecure/common/TestStringUtil.java | 193 --
.../com/xasecure/common/TestXAConfigUtil.java | 54 -
.../java/com/xasecure/rest/TestPublicAPIs.java | 245 --
.../test/java/com/xasecure/util/BaseTest.java | 111 -
.../java/com/xasecure/util/TestXAEnumUtil.java | 124 -
.../org/apache/ranger/biz/TestAssetMgr.java | 741 ++++
.../java/org/apache/ranger/biz/TestUserMgr.java | 574 ++++
.../org/apache/ranger/biz/TestXABizUtil.java | 548 +++
.../org/apache/ranger/biz/TestXUserMgr.java | 399 +++
.../org/apache/ranger/common/TestDateUtil.java | 81 +
.../org/apache/ranger/common/TestJSONUtil.java | 73 +
.../ranger/common/TestPropertiesUtil.java | 113 +
.../apache/ranger/common/TestStringUtil.java | 193 ++
.../apache/ranger/common/TestXAConfigUtil.java | 55 +
.../org/apache/ranger/rest/TestPublicAPIs.java | 245 ++
.../java/org/apache/ranger/util/BaseTest.java | 110 +
.../org/apache/ranger/util/TestXAEnumUtil.java | 126 +
storm-agent/.gitignore | 1 +
.../conf/xasecure-storm-security-changes.cfg | 2 +-
storm-agent/conf/xasecure-storm-security.xml | 2 +-
storm-agent/scripts/install.sh | 10 +-
.../storm/XaStormAccessVerifier.java | 26 -
.../storm/XaStormAccessVerifierFactory.java | 69 -
.../authorizer/XaSecureStormAuthorizer.java | 198 --
.../storm/RangerStormAccessVerifier.java | 26 +
.../storm/RangerStormAccessVerifierFactory.java | 68 +
.../storm/authorizer/RangerStormAuthorizer.java | 197 ++
.../process/LdapUserGroupBuilder.java | 308 --
.../process/PolicyMgrUserGroupBuilder.java | 703 ----
.../config/UserGroupSyncConfig.java | 399 ---
.../model/GetXGroupListResponse.java | 50 -
.../model/GetXUserGroupListResponse.java | 50 -
.../model/GetXUserListResponse.java | 51 -
.../xasecure/unixusersync/model/MUserInfo.java | 62 -
.../xasecure/unixusersync/model/XGroupInfo.java | 56 -
.../unixusersync/model/XUserGroupInfo.java | 59 -
.../xasecure/unixusersync/model/XUserInfo.java | 55 -
.../unixusersync/poc/InvalidGroupException.java | 39 -
.../unixusersync/poc/InvalidUserException.java | 39 -
.../unixusersync/poc/ListUserGroupTest.java | 39 -
.../xasecure/unixusersync/poc/ListUserTest.java | 49 -
.../unixusersync/poc/ListXaSecureUser.java | 116 -
.../unixusersync/poc/ListXaSecureUserGroup.java | 142 -
.../unixusersync/poc/RestClientPost.java | 55 -
.../poc/XaSecureClientUserGroupMapping.java | 67 -
.../unixusersync/poc/XaSecureJSONParser.java | 63 -
.../poc/XaSecureUpdateUserGroupMapping.java | 77 -
.../poc/XaSecureUserGroupMapping.java | 85 -
.../process/PolicyMgrUserGroupBuilder.java | 703 ----
.../process/UnixUserGroupBuilder.java | 256 --
.../xasecure/usergroupsync/UserGroupSink.java | 28 -
.../xasecure/usergroupsync/UserGroupSource.java | 29 -
.../xasecure/usergroupsync/UserGroupSync.java | 123 -
.../process/LdapUserGroupBuilder.java | 307 ++
.../process/PolicyMgrUserGroupBuilder.java | 703 ++++
.../config/UserGroupSyncConfig.java | 399 +++
.../model/GetXGroupListResponse.java | 50 +
.../model/GetXUserGroupListResponse.java | 50 +
.../model/GetXUserListResponse.java | 51 +
.../ranger/unixusersync/model/MUserInfo.java | 62 +
.../ranger/unixusersync/model/XGroupInfo.java | 56 +
.../unixusersync/model/XUserGroupInfo.java | 59 +
.../ranger/unixusersync/model/XUserInfo.java | 55 +
.../unixusersync/poc/InvalidGroupException.java | 39 +
.../unixusersync/poc/InvalidUserException.java | 39 +
.../ranger/unixusersync/poc/ListRangerUser.java | 116 +
.../unixusersync/poc/ListRangerUserGroup.java | 142 +
.../unixusersync/poc/ListUserGroupTest.java | 39 +
.../ranger/unixusersync/poc/ListUserTest.java | 49 +
.../poc/RangerClientUserGroupMapping.java | 67 +
.../unixusersync/poc/RangerJSONParser.java | 63 +
.../poc/RangerUpdateUserGroupMapping.java | 77 +
.../poc/RangerUserGroupMapping.java | 85 +
.../ranger/unixusersync/poc/RestClientPost.java | 55 +
.../process/PolicyMgrUserGroupBuilder.java | 703 ++++
.../process/UnixUserGroupBuilder.java | 255 ++
.../ranger/usergroupsync/UserGroupSink.java | 28 +
.../ranger/usergroupsync/UserGroupSource.java | 29 +
.../ranger/usergroupsync/UserGroupSync.java | 122 +
.../unix/jaas/ConsolePromptCallbackHandler.java | 59 -
.../unix/jaas/RemoteUnixLoginModule.java | 471 ---
.../unix/jaas/UnixGroupPrincipal.java | 40 -
.../unix/jaas/UnixUserPrincipal.java | 40 -
.../unix/jaas/ConsolePromptCallbackHandler.java | 59 +
.../unix/jaas/RemoteUnixLoginModule.java | 471 +++
.../unix/jaas/UnixGroupPrincipal.java | 40 +
.../unix/jaas/UnixUserPrincipal.java | 40 +
unixauthservice/conf.dist/jaas.conf | 2 +-
.../conf.dist/unixauthservice.properties | 26 +-
unixauthservice/scripts/setup.sh | 10 +-
unixauthservice/scripts/start.sh | 2 +-
.../authentication/PasswordValidator.java | 161 -
.../UnixAuthenticationService.java | 284 --
.../authentication/PasswordValidator.java | 161 +
.../UnixAuthenticationService.java | 283 ++
winpkg/pom.xml | 2 +-
winpkg/src/scripts/InstallApi.psm1 | 8 +-
winpkg/src/scripts/install.ps1 | 18 +-
809 files changed, 77720 insertions(+), 77904 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/dao/BaseDao.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/dao/BaseDao.java b/agents-audit/src/main/java/com/xasecure/audit/dao/BaseDao.java
deleted file mode 100644
index 2a5a91d..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/dao/BaseDao.java
+++ /dev/null
@@ -1,234 +0,0 @@
-/*
- * 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.audit.dao;
-
-
-import java.lang.reflect.ParameterizedType;
-import java.lang.reflect.Type;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.EntityTransaction;
-import javax.persistence.NoResultException;
-import javax.persistence.TypedQuery;
-
-import org.apache.log4j.Logger;
-
-public abstract class BaseDao<T> {
- static final Logger logger = Logger.getLogger(BaseDao.class);
-
- protected DaoManager daoManager;
-
- protected Class<T> tClass;
-
- public BaseDao(DaoManagerBase daoManager) {
- this.init(daoManager);
- }
-
- @SuppressWarnings("unchecked")
- private void init(DaoManagerBase daoManager) {
- this.daoManager = (DaoManager) daoManager;
-
- ParameterizedType genericSuperclass = (ParameterizedType) getClass()
- .getGenericSuperclass();
-
- Type type = genericSuperclass.getActualTypeArguments()[0];
-
- if (type instanceof ParameterizedType) {
- this.tClass = (Class<T>) ((ParameterizedType) type).getRawType();
- } else {
- this.tClass = (Class<T>) type;
- }
- }
-
- public EntityManager getEntityManager() {
- return daoManager.getEntityManager();
- }
-
- public boolean beginTransaction() {
- boolean ret = false;
-
- EntityManager em = getEntityManager();
-
- if(em != null) {
- EntityTransaction et = em.getTransaction();
-
- // check the transaction is not already active
- if(et != null && !et.isActive()) {
- et.begin();
- ret = true;
- }
- }
-
- return ret;
- }
-
- public void commitTransaction() {
- EntityManager em = getEntityManager();
-
- if(em != null) {
- em.flush();
-
- EntityTransaction et = em.getTransaction();
-
- if(et != null) {
- et.commit();
- }
- }
- }
-
- public void rollbackTransaction() {
- EntityManager em = getEntityManager();
-
- if(em != null) {
- EntityTransaction et = em.getTransaction();
-
- if(et != null) {
- et.rollback();
- }
- }
- }
-
- public T create(T obj) {
- T ret = null;
-
- boolean trxBegan = beginTransaction();
-
- getEntityManager().persist(obj);
-
- if(trxBegan) {
- commitTransaction();
- }
-
- ret = obj;
-
- return ret;
- }
-
- public T update(T obj) {
- boolean trxBegan = beginTransaction();
-
- getEntityManager().merge(obj);
-
- if(trxBegan) {
- commitTransaction();
- }
-
- return obj;
- }
-
- public boolean remove(Long id) {
- return remove(getById(id));
- }
-
- public boolean remove(T obj) {
- if (obj == null) {
- return true;
- }
-
- boolean ret = false;
-
- boolean trxBegan = beginTransaction();
-
- getEntityManager().remove(obj);
-
- if(trxBegan) {
- commitTransaction();
- }
-
- ret = true;
-
- return ret;
- }
-
- public T getById(Long id) {
- if (id == null) {
- return null;
- }
- T ret = null;
- try {
- ret = getEntityManager().find(tClass, id);
- } catch (NoResultException e) {
- return null;
- }
- return ret;
- }
-
- public List<T> getAll() {
- List<T> ret = null;
-
- TypedQuery<T> qry = getEntityManager().createQuery(
- "SELECT t FROM " + tClass.getSimpleName() + " t", tClass);
-
- ret = qry.getResultList();
-
- return ret;
- }
-
- public Long getAllCount() {
- Long ret = null;
-
- TypedQuery<Long> qry = getEntityManager().createQuery(
- "SELECT count(t) FROM " + tClass.getSimpleName() + " t",
- Long.class);
-
- ret = qry.getSingleResult();
-
- return ret;
- }
-
- public T getUniqueResult(TypedQuery<T> qry) {
- T ret = null;
-
- try {
- ret = qry.getSingleResult();
- } catch (NoResultException e) {
- // ignore
- }
- return ret;
- }
-
- public List<T> executeQuery(TypedQuery<T> qry) {
- List<T> ret = null;
-
- ret = qry.getResultList();
-
- return ret;
- }
-
- public List<T> findByNamedQuery(String namedQuery, String paramName,
- Object refId) {
- List<T> ret = new ArrayList<T>();
-
- if (namedQuery == null) {
- return ret;
- }
- try {
- TypedQuery<T> qry = getEntityManager().createNamedQuery(namedQuery, tClass);
- qry.setParameter(paramName, refId);
- ret = qry.getResultList();
- } catch (NoResultException e) {
- // ignore
- }
- return ret;
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/dao/DaoManager.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/dao/DaoManager.java b/agents-audit/src/main/java/com/xasecure/audit/dao/DaoManager.java
deleted file mode 100644
index 05dfb89..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/dao/DaoManager.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * 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.audit.dao;
-
-import javax.persistence.EntityManager;
-import javax.persistence.EntityManagerFactory;
-import javax.persistence.PersistenceContext;
-
-
-//@Component
-public class DaoManager extends DaoManagerBase {
-
- @PersistenceContext
- private EntityManagerFactory emf;
-
- static ThreadLocal<EntityManager> sEntityManager;
-
- public void setEntityManagerFactory(EntityManagerFactory emf) {
- this.emf = emf;
- sEntityManager = new ThreadLocal<EntityManager>();
- }
-
- @Override
- public EntityManager getEntityManager() {
- EntityManager em = null;
-
- if(sEntityManager != null) {
- em = sEntityManager.get();
-
- if(em == null && this.emf != null) {
- em = this.emf.createEntityManager();
-
- sEntityManager.set(em);
- }
- }
-
- return em;
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/dao/DaoManagerBase.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/dao/DaoManagerBase.java b/agents-audit/src/main/java/com/xasecure/audit/dao/DaoManagerBase.java
deleted file mode 100644
index 0718bec..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/dao/DaoManagerBase.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/**
- * 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.audit.dao;
-
-import javax.persistence.EntityManager;
-
-import org.apache.log4j.Logger;
-
-
-public abstract class DaoManagerBase {
- final static Logger logger = Logger.getLogger(DaoManagerBase.class);
-
- abstract public EntityManager getEntityManager();
-
- private XAHBaseAuditEventDao mHBaseDao = null;
- private XAHdfsAuditEventDao mHdfsDao = null;
- private XAHiveAuditEventDao mHiveDao = null;
- private XAKnoxAuditEventDao mKnoxDao = null;
- private XAStormAuditEventDao mStormDao = null;
-
- public DaoManagerBase() {
- }
-
- public XAHBaseAuditEventDao getXAHBaseAuditEventDao() {
- if(mHBaseDao == null) {
- mHBaseDao = new XAHBaseAuditEventDao(this);
- }
-
- return mHBaseDao;
- }
-
- public XAHdfsAuditEventDao getXAHdfsAuditEventDao() {
- if(mHdfsDao == null) {
- mHdfsDao = new XAHdfsAuditEventDao(this);
- }
-
- return mHdfsDao;
- }
-
- public XAHiveAuditEventDao getXAHiveAuditEventDao() {
- if(mHiveDao == null) {
- mHiveDao = new XAHiveAuditEventDao(this);
- }
-
- return mHiveDao;
- }
-
- public XAKnoxAuditEventDao getXAKnoxAuditEventDao() {
- if(mKnoxDao == null) {
- mKnoxDao = new XAKnoxAuditEventDao(this);
- }
-
- return mKnoxDao;
- }
-
- public XAStormAuditEventDao getXAStormAuditEventDao() {
- if(mStormDao == null) {
- mStormDao = new XAStormAuditEventDao(this);
- }
-
- return mStormDao;
- }
-}
-
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/dao/XAHBaseAuditEventDao.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/dao/XAHBaseAuditEventDao.java b/agents-audit/src/main/java/com/xasecure/audit/dao/XAHBaseAuditEventDao.java
deleted file mode 100644
index 610a5d8..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/dao/XAHBaseAuditEventDao.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * 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.audit.dao;
-
-import com.xasecure.audit.entity.XXHBaseAuditEvent;
-
-public class XAHBaseAuditEventDao extends BaseDao<XXHBaseAuditEvent> {
-
- public XAHBaseAuditEventDao(DaoManagerBase daoManager) {
- super(daoManager);
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/dao/XAHdfsAuditEventDao.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/dao/XAHdfsAuditEventDao.java b/agents-audit/src/main/java/com/xasecure/audit/dao/XAHdfsAuditEventDao.java
deleted file mode 100644
index 450b483..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/dao/XAHdfsAuditEventDao.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * 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.audit.dao;
-
-import com.xasecure.audit.entity.XXHdfsAuditEvent;
-
-public class XAHdfsAuditEventDao extends BaseDao<XXHdfsAuditEvent> {
-
- public XAHdfsAuditEventDao(DaoManagerBase daoManager) {
- super(daoManager);
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/dao/XAHiveAuditEventDao.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/dao/XAHiveAuditEventDao.java b/agents-audit/src/main/java/com/xasecure/audit/dao/XAHiveAuditEventDao.java
deleted file mode 100644
index fc511f6..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/dao/XAHiveAuditEventDao.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * 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.audit.dao;
-
-import com.xasecure.audit.entity.XXHiveAuditEvent;
-
-public class XAHiveAuditEventDao extends BaseDao<XXHiveAuditEvent> {
-
- public XAHiveAuditEventDao(DaoManagerBase daoManager) {
- super(daoManager);
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/dao/XAKnoxAuditEventDao.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/dao/XAKnoxAuditEventDao.java b/agents-audit/src/main/java/com/xasecure/audit/dao/XAKnoxAuditEventDao.java
deleted file mode 100644
index 2b7c374..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/dao/XAKnoxAuditEventDao.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * 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.audit.dao;
-
-import com.xasecure.audit.entity.XXKnoxAuditEvent;
-
-public class XAKnoxAuditEventDao extends BaseDao<XXKnoxAuditEvent> {
-
- public XAKnoxAuditEventDao(DaoManagerBase daoManager) {
- super(daoManager);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/dao/XAStormAuditEventDao.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/dao/XAStormAuditEventDao.java b/agents-audit/src/main/java/com/xasecure/audit/dao/XAStormAuditEventDao.java
deleted file mode 100644
index f7cb97c..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/dao/XAStormAuditEventDao.java
+++ /dev/null
@@ -1,29 +0,0 @@
-/**
- * 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.audit.dao;
-
-import com.xasecure.audit.entity.XXStormAuditEvent;
-
-public class XAStormAuditEventDao extends BaseDao<XXStormAuditEvent> {
-
- public XAStormAuditEventDao(DaoManagerBase daoManager) {
- super(daoManager);
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/entity/XXBaseAuditEvent.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/entity/XXBaseAuditEvent.java b/agents-audit/src/main/java/com/xasecure/audit/entity/XXBaseAuditEvent.java
deleted file mode 100644
index aca6963..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/entity/XXBaseAuditEvent.java
+++ /dev/null
@@ -1,228 +0,0 @@
-/*
- * 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.audit.entity;
-
-import java.io.Serializable;
-import java.util.Date;
-
-import javax.persistence.Column;
-import javax.persistence.DiscriminatorColumn;
-import javax.persistence.DiscriminatorValue;
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.Inheritance;
-import javax.persistence.SequenceGenerator;
-import javax.persistence.Table;
-import javax.persistence.Temporal;
-import javax.persistence.TemporalType;
-
-import com.xasecure.audit.model.AuditEventBase;
-
-/**
- * Entity implementation class for Entity: XABaseAuditEvent
- *
- */
-@Entity
-@Inheritance
-@DiscriminatorColumn(name="audit_type", discriminatorType=javax.persistence.DiscriminatorType.INTEGER, length=2)
-@DiscriminatorValue("0")
-@Table(name="xa_access_audit")
-public class XXBaseAuditEvent implements Serializable {
- private static final long serialVersionUID = 1L;
-
- private long auditId;
- private String agentId;
- private String user;
- private Date timeStamp;
- private long policyId;
- private String accessType;
- private int accessResult;
- private String resultReason;
- private String aclEnforcer;
- private int repositoryType;
- private String repositoryName;
- private String sessionId;
- private String clientType;
- private String clientIP;
- private String action;
-
- public XXBaseAuditEvent() {
- super();
- }
-
- public XXBaseAuditEvent(AuditEventBase event) {
- this.agentId = event.getAgentId();
- this.user = event.getUser();
- this.timeStamp = event.getEventTime();
- this.policyId = event.getPolicyId();
- this.accessType = event.getAccessType();
- this.accessResult = event.getAccessResult();
- this.resultReason = event.getResultReason();
- this.aclEnforcer = event.getAclEnforcer();
- this.repositoryType = event.getRepositoryType();
- this.repositoryName = event.getRepositoryName();
- this.sessionId = event.getSessionId();
- this.clientType = event.getClientType();
- this.clientIP = event.getClientIP();
- this.action = event.getAction();
- }
-
- @Id
- @SequenceGenerator(name="XA_ACCESS_AUDIT_SEQ",sequenceName="XA_ACCESS_AUDIT_SEQ",allocationSize=1)
- @GeneratedValue(strategy=GenerationType.AUTO,generator="XA_ACCESS_AUDIT_SEQ")
- @Column(name = "id", unique = true, nullable = false)
- public long getAuditId() {
- return this.auditId;
- }
-
- public void setAuditId(long auditId) {
- this.auditId = auditId;
- }
-
- @Column(name = "agent_id")
- public String getAgentId() {
- return agentId;
- }
-
- public void setAgentId(String agentId) {
- this.agentId = agentId;
- }
-
- @Column(name = "request_user")
- public String getUser() {
- return this.user;
- }
-
- public void setUser(String user) {
- this.user = user;
- }
-
- @Temporal(TemporalType.TIMESTAMP)
- @Column(name = "event_time")
- public Date getTimeStamp() {
- return this.timeStamp;
- }
-
- public void setTimeStamp(Date timeStamp) {
- this.timeStamp = timeStamp;
- }
-
- @Column(name = "policy_id")
- public long getPolicyId() {
- return this.policyId;
- }
-
- public void setPolicyId(long policyId) {
- this.policyId = policyId;
- }
-
- @Column(name = "access_type")
- public String getAccessType() {
- return this.accessType;
- }
-
- public void setAccessType(String accessType) {
- this.accessType = accessType;
- }
-
- @Column(name = "access_result")
- public int getAccessResult() {
- return this.accessResult;
- }
-
- public void setAccessResult(int accessResult) {
- this.accessResult = accessResult;
- }
-
- @Column(name = "result_reason")
- public String getResultReason() {
- return this.resultReason;
- }
-
- public void setResultReason(String resultReason) {
- this.resultReason = resultReason;
- }
-
- @Column(name = "acl_enforcer")
- public String getAclEnforcer() {
- return this.aclEnforcer;
- }
-
- public void setAclEnforcer(String aclEnforcer) {
- this.aclEnforcer = aclEnforcer;
- }
-
- @Column(name = "repo_type")
- public int getRepositoryType() {
- return this.repositoryType ;
- }
-
- public void setRepositoryType(int repositoryType) {
- this.repositoryType = repositoryType;
- }
-
- @Column(name = "repo_name")
- public String getRepositoryName() {
- return this.repositoryName;
- }
-
- public void setRepositoryName(String repositoryName) {
- this.repositoryName = repositoryName;
- }
-
- @Column(name = "session_id")
- public String getSessionId() {
- return this.sessionId;
- }
-
- public void setSessionId(String sessionId) {
- this.sessionId = sessionId;
- }
-
- @Column(name = "client_type")
- public String getClientType() {
- return this.clientType;
- }
-
- public void setClientType(String clientType) {
- this.clientType = clientType;
- }
-
- @Column(name = "client_ip")
- public String getClientIP() {
- return this.clientIP;
- }
-
- public void setClientIP(String clientIP) {
- this.clientIP = clientIP;
- }
-
- @Column(name = "action")
- public String getAction() {
- return this.action;
- }
-
- public void setAction(String action) {
- this.action = action;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/entity/XXBaseAuditEvent_.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/entity/XXBaseAuditEvent_.java b/agents-audit/src/main/java/com/xasecure/audit/entity/XXBaseAuditEvent_.java
deleted file mode 100644
index 953e513..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/entity/XXBaseAuditEvent_.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * 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.audit.entity;
-
-import com.xasecure.audit.model.EnumRepositoryType;
-import java.util.Date;
-import javax.annotation.Generated;
-import javax.persistence.metamodel.SingularAttribute;
-import javax.persistence.metamodel.StaticMetamodel;
-
-@Generated(value="Dali", date="2014-02-04T07:25:42.940-0800")
-@StaticMetamodel(XXBaseAuditEvent.class)
-public class XXBaseAuditEvent_ {
- public static volatile SingularAttribute<XXBaseAuditEvent, Long> auditId;
- public static volatile SingularAttribute<XXBaseAuditEvent, String> agentId;
- public static volatile SingularAttribute<XXBaseAuditEvent, String> user;
- public static volatile SingularAttribute<XXBaseAuditEvent, Date> timeStamp;
- public static volatile SingularAttribute<XXBaseAuditEvent, Long> policyId;
- public static volatile SingularAttribute<XXBaseAuditEvent, String> accessType;
- public static volatile SingularAttribute<XXBaseAuditEvent, Short> accessResult;
- public static volatile SingularAttribute<XXBaseAuditEvent, String> resultReason;
- public static volatile SingularAttribute<XXBaseAuditEvent, String> aclEnforcer;
- public static volatile SingularAttribute<XXBaseAuditEvent, EnumRepositoryType> repositoryType;
- public static volatile SingularAttribute<XXBaseAuditEvent, String> repositoryName;
- public static volatile SingularAttribute<XXBaseAuditEvent, String> sessionId;
- public static volatile SingularAttribute<XXBaseAuditEvent, String> clientType;
- public static volatile SingularAttribute<XXBaseAuditEvent, String> clientIP;
- public static volatile SingularAttribute<XXBaseAuditEvent, String> action;
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/entity/XXHBaseAuditEvent.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/entity/XXHBaseAuditEvent.java b/agents-audit/src/main/java/com/xasecure/audit/entity/XXHBaseAuditEvent.java
deleted file mode 100644
index 0a02e7e..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/entity/XXHBaseAuditEvent.java
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * 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.audit.entity;
-
-import java.io.Serializable;
-
-import javax.persistence.Column;
-import javax.persistence.DiscriminatorValue;
-import javax.persistence.Entity;
-
-import com.xasecure.audit.model.EnumRepositoryType;
-import com.xasecure.audit.model.HBaseAuditEvent;
-
-/**
- * Entity implementation class for Entity: XAHBaseAuditEvent
- *
- */
-@Entity
-@DiscriminatorValue("1")
-public class XXHBaseAuditEvent extends XXBaseAuditEvent implements Serializable {
- private static final long serialVersionUID = 1L;
-
- private String resourcePath;
- private String resourceType;
- private String requestData;
-
-
- public XXHBaseAuditEvent() {
- super();
- }
-
- public XXHBaseAuditEvent(HBaseAuditEvent event) {
- super(event);
-
- this.resourcePath = event.getResourcePath();
- this.resourceType = event.getResourceType();
- this.requestData = event.getRequestData();
- }
-
- @Column(name = "resource_path")
- public String getResourcePath() {
- return this.resourcePath;
- }
-
- public void setResourcePath(String resourcePath) {
- this.resourcePath = resourcePath;
- }
-
- @Column(name = "resource_type")
- public String getResourceType() {
- return this.resourceType;
- }
-
- public void setResourceType(String resourceType) {
- this.resourceType = resourceType;
- }
-
- @Column(name = "request_data")
- public String getRequestData() {
- return this.requestData;
- }
-
- public void setRequestData(String requestData) {
- this.requestData = requestData;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/entity/XXHBaseAuditEvent_.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/entity/XXHBaseAuditEvent_.java b/agents-audit/src/main/java/com/xasecure/audit/entity/XXHBaseAuditEvent_.java
deleted file mode 100644
index 03e704f..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/entity/XXHBaseAuditEvent_.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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.audit.entity;
-
-import javax.annotation.Generated;
-import javax.persistence.metamodel.SingularAttribute;
-import javax.persistence.metamodel.StaticMetamodel;
-
-@Generated(value="Dali", date="2014-02-02T14:05:13.483-0800")
-@StaticMetamodel(XXHBaseAuditEvent.class)
-public class XXHBaseAuditEvent_ extends XXBaseAuditEvent_ {
- public static volatile SingularAttribute<XXHBaseAuditEvent, String> resourcePath;
- public static volatile SingularAttribute<XXHBaseAuditEvent, String> resourceType;
- public static volatile SingularAttribute<XXHBaseAuditEvent, String> requestData;
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/entity/XXHdfsAuditEvent.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/entity/XXHdfsAuditEvent.java b/agents-audit/src/main/java/com/xasecure/audit/entity/XXHdfsAuditEvent.java
deleted file mode 100644
index 3afc395..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/entity/XXHdfsAuditEvent.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * 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.audit.entity;
-
-import java.io.Serializable;
-
-import javax.persistence.Column;
-import javax.persistence.DiscriminatorValue;
-import javax.persistence.Entity;
-import javax.persistence.Inheritance;
-import javax.persistence.InheritanceType;
-import javax.persistence.Table;
-
-import com.xasecure.audit.model.HdfsAuditEvent;
-
-/**
- * Entity implementation class for Entity: XXHdfsAuditEvent
- *
- */
-@Entity
-@DiscriminatorValue("2")
-public class XXHdfsAuditEvent extends XXBaseAuditEvent implements Serializable {
- private static final long serialVersionUID = 1L;
-
- private String resourcePath;
- private String resourceType;
-
-
- public XXHdfsAuditEvent() {
- super();
- }
-
- public XXHdfsAuditEvent(HdfsAuditEvent event) {
- super(event);
-
- this.resourcePath = event.getResourcePath();
- this.resourceType = event.getResourceType();
- }
-
- @Column(name = "resource_path")
- public String getResourcePath() {
- return this.resourcePath;
- }
-
- public void setResourcePath(String resourcePath) {
- this.resourcePath = resourcePath;
- }
-
- @Column(name = "resource_type")
- public String getResourceType() {
- return this.resourceType;
- }
-
- public void setResourceType(String resourceType) {
- this.resourceType = resourceType;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/entity/XXHdfsAuditEvent_.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/entity/XXHdfsAuditEvent_.java b/agents-audit/src/main/java/com/xasecure/audit/entity/XXHdfsAuditEvent_.java
deleted file mode 100644
index c7f2d71..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/entity/XXHdfsAuditEvent_.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * 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.audit.entity;
-
-import javax.annotation.Generated;
-import javax.persistence.metamodel.SingularAttribute;
-import javax.persistence.metamodel.StaticMetamodel;
-
-@Generated(value="Dali", date="2014-02-02T14:05:13.489-0800")
-@StaticMetamodel(XXHdfsAuditEvent.class)
-public class XXHdfsAuditEvent_ extends XXBaseAuditEvent_ {
- public static volatile SingularAttribute<XXHdfsAuditEvent, String> resourcePath;
- public static volatile SingularAttribute<XXHdfsAuditEvent, String> resourceType;
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/agents-audit/src/main/java/com/xasecure/audit/entity/XXHiveAuditEvent.java
----------------------------------------------------------------------
diff --git a/agents-audit/src/main/java/com/xasecure/audit/entity/XXHiveAuditEvent.java b/agents-audit/src/main/java/com/xasecure/audit/entity/XXHiveAuditEvent.java
deleted file mode 100644
index 4d0b12d..0000000
--- a/agents-audit/src/main/java/com/xasecure/audit/entity/XXHiveAuditEvent.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * 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.audit.entity;
-
-import java.io.Serializable;
-
-import javax.persistence.Column;
-import javax.persistence.DiscriminatorValue;
-import javax.persistence.Entity;
-import javax.persistence.Inheritance;
-import javax.persistence.InheritanceType;
-import javax.persistence.Table;
-
-import com.xasecure.audit.model.HiveAuditEvent;
-
-/**
- * Entity implementation class for Entity: XXHiveAuditEvent
- *
- */
-@Entity
-@DiscriminatorValue("3")
-public class XXHiveAuditEvent extends XXBaseAuditEvent implements Serializable {
- private static final long serialVersionUID = 1L;
-
- private String resourcePath;
- private String resourceType;
- private String requestData;
-
-
- public XXHiveAuditEvent() {
- super();
- }
-
- public XXHiveAuditEvent(HiveAuditEvent event) {
- super(event);
-
- this.resourcePath = event.getResourcePath();
- this.resourceType = event.getResourceType();
- this.requestData = event.getRequestData();
- }
-
- @Column(name = "resource_path")
- public String getResourcePath() {
- return this.resourcePath;
- }
-
- public void setResourcePath(String resourcePath) {
- this.resourcePath = resourcePath;
- }
-
- @Column(name = "resource_type")
- public String getResourceType() {
- return this.resourceType;
- }
-
- public void setResourceType(String resourceType) {
- this.resourceType = resourceType;
- }
-
- @Column(name = "request_data")
- public String getRequestData() {
- return this.requestData;
- }
-
- public void setRequestData(String requestData) {
- this.requestData = requestData;
- }
-
-}