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:29:55 UTC
[12/51] [partial] incubator-ranger git commit: RANGER-194: Rename
packages from xasecure to apache ranger
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXAccessAudit.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXAccessAudit.java b/security-admin/src/main/java/com/xasecure/view/VXAccessAudit.java
deleted file mode 100644
index 688534c..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXAccessAudit.java
+++ /dev/null
@@ -1,473 +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.view;
-
-/**
- * Access Audit
- *
- */
-
-import java.util.*;
-
-import com.xasecure.common.*;
-import com.xasecure.common.view.*;
-
-import com.xasecure.common.*;
-import com.xasecure.json.JsonDateSerializer;
-
-import com.xasecure.view.*;
-
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.annotate.JsonIgnoreProperties;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@JsonIgnoreProperties(ignoreUnknown=true)
-@XmlRootElement
-public class VXAccessAudit extends VXDataObject implements java.io.Serializable {
- private static final long serialVersionUID = 1L;
-
-
- /**
- * Repository Type
- */
- protected int auditType;
- /**
- * Access Result
- * This attribute is of type enum CommonEnums::AccessResult
- */
- protected int accessResult = XAConstants.ACCESS_RESULT_DENIED;
- /**
- * Access Type
- */
- protected String accessType;
- /**
- * Acl Enforcer
- */
- protected String aclEnforcer;
- /**
- * Agent Id
- */
- protected String agentId;
- /**
- * Client Ip
- */
- protected String clientIP;
- /**
- * Client Type
- */
- protected String clientType;
- /**
- * Policy Id
- */
- protected long policyId;
- /**
- * Repository Name
- */
- protected String repoName;
- /**
- * Repository Type
- */
- protected int repoType;
- /**
- * Reason of result
- */
- protected String resultReason;
- /**
- * Session Id
- */
- protected String sessionId;
- /**
- * Event Time
- */
- @JsonSerialize(using=JsonDateSerializer.class)
- protected Date eventTime = DateUtil.getUTCDate();
- /**
- * Requesting User
- */
- protected String requestUser;
- /**
- * Action
- */
- protected String action;
- /**
- * Requesting Data
- */
- protected String requestData;
- /**
- * Resource Path
- */
- protected String resourcePath;
- /**
- * Resource Type
- */
- protected String resourceType;
-
- /**
- * Default constructor. This will set all the attributes to default value.
- */
- public VXAccessAudit ( ) {
- accessResult = XAConstants.ACCESS_RESULT_DENIED;
- }
-
- /**
- * This method sets the value to the member attribute <b>auditType</b>.
- * You cannot set null to the attribute.
- * @param auditType Value to set member attribute <b>auditType</b>
- */
- public void setAuditType( int auditType ) {
- this.auditType = auditType;
- }
-
- /**
- * Returns the value for the member attribute <b>auditType</b>
- * @return int - value of member attribute <b>auditType</b>.
- */
- public int getAuditType( ) {
- return this.auditType;
- }
-
- /**
- * This method sets the value to the member attribute <b>accessResult</b>.
- * You cannot set null to the attribute.
- * @param accessResult Value to set member attribute <b>accessResult</b>
- */
- public void setAccessResult( int accessResult ) {
- this.accessResult = accessResult;
- }
-
- /**
- * Returns the value for the member attribute <b>accessResult</b>
- * @return int - value of member attribute <b>accessResult</b>.
- */
- public int getAccessResult( ) {
- return this.accessResult;
- }
-
- /**
- * This method sets the value to the member attribute <b>accessType</b>.
- * You cannot set null to the attribute.
- * @param accessType Value to set member attribute <b>accessType</b>
- */
- public void setAccessType( String accessType ) {
- this.accessType = accessType;
- }
-
- /**
- * Returns the value for the member attribute <b>accessType</b>
- * @return String - value of member attribute <b>accessType</b>.
- */
- public String getAccessType( ) {
- return this.accessType;
- }
-
- /**
- * This method sets the value to the member attribute <b>aclEnforcer</b>.
- * You cannot set null to the attribute.
- * @param aclEnforcer Value to set member attribute <b>aclEnforcer</b>
- */
- public void setAclEnforcer( String aclEnforcer ) {
- this.aclEnforcer = aclEnforcer;
- }
-
- /**
- * Returns the value for the member attribute <b>aclEnforcer</b>
- * @return String - value of member attribute <b>aclEnforcer</b>.
- */
- public String getAclEnforcer( ) {
- return this.aclEnforcer;
- }
-
- /**
- * This method sets the value to the member attribute <b>agentId</b>.
- * You cannot set null to the attribute.
- * @param agentId Value to set member attribute <b>agentId</b>
- */
- public void setAgentId( String agentId ) {
- this.agentId = agentId;
- }
-
- /**
- * Returns the value for the member attribute <b>agentId</b>
- * @return String - value of member attribute <b>agentId</b>.
- */
- public String getAgentId( ) {
- return this.agentId;
- }
-
- /**
- * This method sets the value to the member attribute <b>clientIP</b>.
- * You cannot set null to the attribute.
- * @param clientIP Value to set member attribute <b>clientIP</b>
- */
- public void setClientIP( String clientIP ) {
- this.clientIP = clientIP;
- }
-
- /**
- * Returns the value for the member attribute <b>clientIP</b>
- * @return String - value of member attribute <b>clientIP</b>.
- */
- public String getClientIP( ) {
- return this.clientIP;
- }
-
- /**
- * This method sets the value to the member attribute <b>clientType</b>.
- * You cannot set null to the attribute.
- * @param clientType Value to set member attribute <b>clientType</b>
- */
- public void setClientType( String clientType ) {
- this.clientType = clientType;
- }
-
- /**
- * Returns the value for the member attribute <b>clientType</b>
- * @return String - value of member attribute <b>clientType</b>.
- */
- public String getClientType( ) {
- return this.clientType;
- }
-
- /**
- * This method sets the value to the member attribute <b>policyId</b>.
- * You cannot set null to the attribute.
- * @param policyId Value to set member attribute <b>policyId</b>
- */
- public void setPolicyId( long policyId ) {
- this.policyId = policyId;
- }
-
- /**
- * Returns the value for the member attribute <b>policyId</b>
- * @return long - value of member attribute <b>policyId</b>.
- */
- public long getPolicyId( ) {
- return this.policyId;
- }
-
- /**
- * This method sets the value to the member attribute <b>repoName</b>.
- * You cannot set null to the attribute.
- * @param repoName Value to set member attribute <b>repoName</b>
- */
- public void setRepoName( String repoName ) {
- this.repoName = repoName;
- }
-
- /**
- * Returns the value for the member attribute <b>repoName</b>
- * @return String - value of member attribute <b>repoName</b>.
- */
- public String getRepoName( ) {
- return this.repoName;
- }
-
- /**
- * This method sets the value to the member attribute <b>repoType</b>.
- * You cannot set null to the attribute.
- * @param repoType Value to set member attribute <b>repoType</b>
- */
- public void setRepoType( int repoType ) {
- this.repoType = repoType;
- }
-
- /**
- * Returns the value for the member attribute <b>repoType</b>
- * @return int - value of member attribute <b>repoType</b>.
- */
- public int getRepoType( ) {
- return this.repoType;
- }
-
- /**
- * This method sets the value to the member attribute <b>resultReason</b>.
- * You cannot set null to the attribute.
- * @param resultReason Value to set member attribute <b>resultReason</b>
- */
- public void setResultReason( String resultReason ) {
- this.resultReason = resultReason;
- }
-
- /**
- * Returns the value for the member attribute <b>resultReason</b>
- * @return String - value of member attribute <b>resultReason</b>.
- */
- public String getResultReason( ) {
- return this.resultReason;
- }
-
- /**
- * This method sets the value to the member attribute <b>sessionId</b>.
- * You cannot set null to the attribute.
- * @param sessionId Value to set member attribute <b>sessionId</b>
- */
- public void setSessionId( String sessionId ) {
- this.sessionId = sessionId;
- }
-
- /**
- * Returns the value for the member attribute <b>sessionId</b>
- * @return String - value of member attribute <b>sessionId</b>.
- */
- public String getSessionId( ) {
- return this.sessionId;
- }
-
- /**
- * This method sets the value to the member attribute <b>eventTime</b>.
- * You cannot set null to the attribute.
- * @param eventTime Value to set member attribute <b>eventTime</b>
- */
- public void setEventTime( Date eventTime ) {
- this.eventTime = eventTime;
- }
-
- /**
- * Returns the value for the member attribute <b>eventTime</b>
- * @return Date - value of member attribute <b>eventTime</b>.
- */
- public Date getEventTime( ) {
- return this.eventTime;
- }
-
- /**
- * This method sets the value to the member attribute <b>requestUser</b>.
- * You cannot set null to the attribute.
- * @param requestUser Value to set member attribute <b>requestUser</b>
- */
- public void setRequestUser( String requestUser ) {
- this.requestUser = requestUser;
- }
-
- /**
- * Returns the value for the member attribute <b>requestUser</b>
- * @return String - value of member attribute <b>requestUser</b>.
- */
- public String getRequestUser( ) {
- return this.requestUser;
- }
-
- /**
- * This method sets the value to the member attribute <b>action</b>.
- * You cannot set null to the attribute.
- * @param action Value to set member attribute <b>action</b>
- */
- public void setAction( String action ) {
- this.action = action;
- }
-
- /**
- * Returns the value for the member attribute <b>action</b>
- * @return String - value of member attribute <b>action</b>.
- */
- public String getAction( ) {
- return this.action;
- }
-
- /**
- * This method sets the value to the member attribute <b>requestData</b>.
- * You cannot set null to the attribute.
- * @param requestData Value to set member attribute <b>requestData</b>
- */
- public void setRequestData( String requestData ) {
- this.requestData = requestData;
- }
-
- /**
- * Returns the value for the member attribute <b>requestData</b>
- * @return String - value of member attribute <b>requestData</b>.
- */
- public String getRequestData( ) {
- return this.requestData;
- }
-
- /**
- * This method sets the value to the member attribute <b>resourcePath</b>.
- * You cannot set null to the attribute.
- * @param resourcePath Value to set member attribute <b>resourcePath</b>
- */
- public void setResourcePath( String resourcePath ) {
- this.resourcePath = resourcePath;
- }
-
- /**
- * Returns the value for the member attribute <b>resourcePath</b>
- * @return String - value of member attribute <b>resourcePath</b>.
- */
- public String getResourcePath( ) {
- return this.resourcePath;
- }
-
- /**
- * This method sets the value to the member attribute <b>resourceType</b>.
- * You cannot set null to the attribute.
- * @param resourceType Value to set member attribute <b>resourceType</b>
- */
- public void setResourceType( String resourceType ) {
- this.resourceType = resourceType;
- }
-
- /**
- * Returns the value for the member attribute <b>resourceType</b>
- * @return String - value of member attribute <b>resourceType</b>.
- */
- public String getResourceType( ) {
- return this.resourceType;
- }
-
- @Override
- public int getMyClassType( ) {
- return AppConstants.CLASS_TYPE_XA_ACCESS_AUDIT;
- }
-
- /**
- * This return the bean content in string format
- * @return formatedStr
- */
- public String toString( ) {
- String str = "VXAccessAudit={";
- str += super.toString();
- str += "auditType={" + auditType + "} ";
- str += "accessResult={" + accessResult + "} ";
- str += "accessType={" + accessType + "} ";
- str += "aclEnforcer={" + aclEnforcer + "} ";
- str += "agentId={" + agentId + "} ";
- str += "clientIP={" + clientIP + "} ";
- str += "clientType={" + clientType + "} ";
- str += "policyId={" + policyId + "} ";
- str += "repoName={" + repoName + "} ";
- str += "repoType={" + repoType + "} ";
- str += "resultReason={" + resultReason + "} ";
- str += "sessionId={" + sessionId + "} ";
- str += "eventTime={" + eventTime + "} ";
- str += "requestUser={" + requestUser + "} ";
- str += "action={" + action + "} ";
- str += "requestData={" + requestData + "} ";
- str += "resourcePath={" + resourcePath + "} ";
- str += "resourceType={" + resourceType + "} ";
- str += "}";
- return str;
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXAccessAuditList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXAccessAuditList.java b/security-admin/src/main/java/com/xasecure/view/VXAccessAuditList.java
deleted file mode 100644
index 1e2a59e..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXAccessAuditList.java
+++ /dev/null
@@ -1,81 +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.view;
-
-/**
- * List wrapper class for VXAccessAudit
- *
- */
-
-import java.util.*;
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-import com.xasecure.common.view.*;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@XmlRootElement
-@XmlAccessorType(XmlAccessType.FIELD)
-public class VXAccessAuditList extends VList {
- private static final long serialVersionUID = 1L;
- List<VXAccessAudit> vXAccessAudits = new ArrayList<VXAccessAudit>();
-
- public VXAccessAuditList() {
- super();
- }
-
- public VXAccessAuditList(List<VXAccessAudit> objList) {
- super(objList);
- this.vXAccessAudits = objList;
- }
-
- /**
- * @return the vXAccessAudits
- */
- public List<VXAccessAudit> getVXAccessAudits() {
- return vXAccessAudits;
- }
-
- /**
- * @param vXAccessAudits
- * the vXAccessAudits to set
- */
- public void setVXAccessAudits(List<VXAccessAudit> vXAccessAudits) {
- this.vXAccessAudits = vXAccessAudits;
- }
-
- @Override
- public int getListSize() {
- if (vXAccessAudits != null) {
- return vXAccessAudits.size();
- }
- return 0;
- }
-
- @Override
- public List<VXAccessAudit> getList() {
- return vXAccessAudits;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXAsset.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXAsset.java b/security-admin/src/main/java/com/xasecure/view/VXAsset.java
deleted file mode 100644
index 8875684..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXAsset.java
+++ /dev/null
@@ -1,210 +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.view;
-
-/**
- * Asset
- *
- */
-
-import java.util.*;
-
-import com.xasecure.common.*;
-import com.xasecure.common.view.*;
-
-import com.xasecure.common.*;
-import com.xasecure.json.JsonDateSerializer;
-
-import com.xasecure.view.*;
-
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.annotate.JsonIgnoreProperties;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@JsonIgnoreProperties(ignoreUnknown=true)
-@XmlRootElement
-public class VXAsset extends VXDataObject implements java.io.Serializable {
- private static final long serialVersionUID = 1L;
-
-
- /**
- * Name
- */
- protected String name;
- /**
- * Description
- */
- protected String description;
- /**
- * Status
- * This attribute is of type enum CommonEnums::ActiveStatus
- */
- protected int activeStatus;
- /**
- * Type of asset
- * This attribute is of type enum CommonEnums::AssetType
- */
- protected int assetType = AppConstants.ASSET_UNKNOWN;
- /**
- * Config in json format
- */
- protected String config;
- /**
- * Support native authorization
- */
- protected boolean supportNative = false;
-
- /**
- * Default constructor. This will set all the attributes to default value.
- */
- public VXAsset ( ) {
- activeStatus = 0;
- assetType = AppConstants.ASSET_UNKNOWN;
- }
-
- /**
- * This method sets the value to the member attribute <b>name</b>.
- * You cannot set null to the attribute.
- * @param name Value to set member attribute <b>name</b>
- */
- public void setName( String name ) {
- this.name = name;
- }
-
- /**
- * Returns the value for the member attribute <b>name</b>
- * @return String - value of member attribute <b>name</b>.
- */
- public String getName( ) {
- return this.name;
- }
-
- /**
- * This method sets the value to the member attribute <b>description</b>.
- * You cannot set null to the attribute.
- * @param description Value to set member attribute <b>description</b>
- */
- public void setDescription( String description ) {
- this.description = description;
- }
-
- /**
- * Returns the value for the member attribute <b>description</b>
- * @return String - value of member attribute <b>description</b>.
- */
- public String getDescription( ) {
- return this.description;
- }
-
- /**
- * This method sets the value to the member attribute <b>activeStatus</b>.
- * You cannot set null to the attribute.
- * @param activeStatus Value to set member attribute <b>activeStatus</b>
- */
- public void setActiveStatus( int activeStatus ) {
- this.activeStatus = activeStatus;
- }
-
- /**
- * Returns the value for the member attribute <b>activeStatus</b>
- * @return int - value of member attribute <b>activeStatus</b>.
- */
- public int getActiveStatus( ) {
- return this.activeStatus;
- }
-
- /**
- * This method sets the value to the member attribute <b>assetType</b>.
- * You cannot set null to the attribute.
- * @param assetType Value to set member attribute <b>assetType</b>
- */
- public void setAssetType( int assetType ) {
- this.assetType = assetType;
- }
-
- /**
- * Returns the value for the member attribute <b>assetType</b>
- * @return int - value of member attribute <b>assetType</b>.
- */
- public int getAssetType( ) {
- return this.assetType;
- }
-
- /**
- * This method sets the value to the member attribute <b>config</b>.
- * You cannot set null to the attribute.
- * @param config Value to set member attribute <b>config</b>
- */
- public void setConfig( String config ) {
- this.config = config;
- }
-
- /**
- * Returns the value for the member attribute <b>config</b>
- * @return String - value of member attribute <b>config</b>.
- */
- public String getConfig( ) {
- return this.config;
- }
-
- /**
- * This method sets the value to the member attribute <b>supportNative</b>.
- * You cannot set null to the attribute.
- * @param supportNative Value to set member attribute <b>supportNative</b>
- */
- public void setSupportNative( boolean supportNative ) {
- this.supportNative = supportNative;
- }
-
- /**
- * Returns the value for the member attribute <b>supportNative</b>
- * @return boolean - value of member attribute <b>supportNative</b>.
- */
- public boolean isSupportNative( ) {
- return this.supportNative;
- }
-
- @Override
- public int getMyClassType( ) {
- return AppConstants.CLASS_TYPE_XA_ASSET;
- }
-
- /**
- * This return the bean content in string format
- * @return formatedStr
- */
- public String toString( ) {
- String str = "VXAsset={";
- str += super.toString();
- str += "name={" + name + "} ";
- str += "description={" + description + "} ";
- str += "activeStatus={" + activeStatus + "} ";
- str += "assetType={" + assetType + "} ";
- str += "config={" + config + "} ";
- str += "supportNative={" + supportNative + "} ";
- str += "}";
- return str;
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXAssetList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXAssetList.java b/security-admin/src/main/java/com/xasecure/view/VXAssetList.java
deleted file mode 100644
index 2d954bf..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXAssetList.java
+++ /dev/null
@@ -1,81 +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.view;
-
-/**
- * List wrapper class for VXAsset
- *
- */
-
-import java.util.*;
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-import com.xasecure.common.view.*;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@XmlRootElement
-@XmlAccessorType(XmlAccessType.FIELD)
-public class VXAssetList extends VList {
- private static final long serialVersionUID = 1L;
- List<VXAsset> vXAssets = new ArrayList<VXAsset>();
-
- public VXAssetList() {
- super();
- }
-
- public VXAssetList(List<VXAsset> objList) {
- super(objList);
- this.vXAssets = objList;
- }
-
- /**
- * @return the vXAssets
- */
- public List<VXAsset> getVXAssets() {
- return vXAssets;
- }
-
- /**
- * @param vXAssets
- * the vXAssets to set
- */
- public void setVXAssets(List<VXAsset> vXAssets) {
- this.vXAssets = vXAssets;
- }
-
- @Override
- public int getListSize() {
- if (vXAssets != null) {
- return vXAssets.size();
- }
- return 0;
- }
-
- @Override
- public List<VXAsset> getList() {
- return vXAssets;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXAuditMap.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXAuditMap.java b/security-admin/src/main/java/com/xasecure/view/VXAuditMap.java
deleted file mode 100644
index 184cca3..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXAuditMap.java
+++ /dev/null
@@ -1,164 +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.view;
-
-/**
- * Audi map
- *
- */
-
-import java.util.*;
-
-import com.xasecure.common.*;
-import com.xasecure.common.view.*;
-
-import com.xasecure.common.*;
-import com.xasecure.json.JsonDateSerializer;
-
-import com.xasecure.view.*;
-
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.annotate.JsonIgnoreProperties;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@JsonIgnoreProperties(ignoreUnknown=true)
-@XmlRootElement
-public class VXAuditMap extends VXDataObject implements java.io.Serializable {
- private static final long serialVersionUID = 1L;
-
-
- /**
- * Id of the resource
- */
- protected Long resourceId;
- /**
- * Id of the group
- */
- protected Long groupId;
- /**
- * Id of the user
- */
- protected Long userId;
- /**
- * Type of audit
- * This attribute is of type enum CommonEnums::XAAuditType
- */
- protected int auditType = AppConstants.XA_AUDIT_TYPE_UNKNOWN;
-
- /**
- * Default constructor. This will set all the attributes to default value.
- */
- public VXAuditMap ( ) {
- auditType = AppConstants.XA_AUDIT_TYPE_UNKNOWN;
- }
-
- /**
- * This method sets the value to the member attribute <b>resourceId</b>.
- * You cannot set null to the attribute.
- * @param resourceId Value to set member attribute <b>resourceId</b>
- */
- public void setResourceId( Long resourceId ) {
- this.resourceId = resourceId;
- }
-
- /**
- * Returns the value for the member attribute <b>resourceId</b>
- * @return Long - value of member attribute <b>resourceId</b>.
- */
- public Long getResourceId( ) {
- return this.resourceId;
- }
-
- /**
- * This method sets the value to the member attribute <b>groupId</b>.
- * You cannot set null to the attribute.
- * @param groupId Value to set member attribute <b>groupId</b>
- */
- public void setGroupId( Long groupId ) {
- this.groupId = groupId;
- }
-
- /**
- * Returns the value for the member attribute <b>groupId</b>
- * @return Long - value of member attribute <b>groupId</b>.
- */
- public Long getGroupId( ) {
- return this.groupId;
- }
-
- /**
- * This method sets the value to the member attribute <b>userId</b>.
- * You cannot set null to the attribute.
- * @param userId Value to set member attribute <b>userId</b>
- */
- public void setUserId( Long userId ) {
- this.userId = userId;
- }
-
- /**
- * Returns the value for the member attribute <b>userId</b>
- * @return Long - value of member attribute <b>userId</b>.
- */
- public Long getUserId( ) {
- return this.userId;
- }
-
- /**
- * This method sets the value to the member attribute <b>auditType</b>.
- * You cannot set null to the attribute.
- * @param auditType Value to set member attribute <b>auditType</b>
- */
- public void setAuditType( int auditType ) {
- this.auditType = auditType;
- }
-
- /**
- * Returns the value for the member attribute <b>auditType</b>
- * @return int - value of member attribute <b>auditType</b>.
- */
- public int getAuditType( ) {
- return this.auditType;
- }
-
- @Override
- public int getMyClassType( ) {
- return AppConstants.CLASS_TYPE_XA_AUDIT_MAP;
- }
-
- /**
- * This return the bean content in string format
- * @return formatedStr
- */
- public String toString( ) {
- String str = "VXAuditMap={";
- str += super.toString();
- str += "resourceId={" + resourceId + "} ";
- str += "groupId={" + groupId + "} ";
- str += "userId={" + userId + "} ";
- str += "auditType={" + auditType + "} ";
- str += "}";
- return str;
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXAuditMapList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXAuditMapList.java b/security-admin/src/main/java/com/xasecure/view/VXAuditMapList.java
deleted file mode 100644
index faf4500..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXAuditMapList.java
+++ /dev/null
@@ -1,81 +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.view;
-
-/**
- * List wrapper class for VXAuditMap
- *
- */
-
-import java.util.*;
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-import com.xasecure.common.view.*;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@XmlRootElement
-@XmlAccessorType(XmlAccessType.FIELD)
-public class VXAuditMapList extends VList {
- private static final long serialVersionUID = 1L;
- List<VXAuditMap> vXAuditMaps = new ArrayList<VXAuditMap>();
-
- public VXAuditMapList() {
- super();
- }
-
- public VXAuditMapList(List<VXAuditMap> objList) {
- super(objList);
- this.vXAuditMaps = objList;
- }
-
- /**
- * @return the vXAuditMaps
- */
- public List<VXAuditMap> getVXAuditMaps() {
- return vXAuditMaps;
- }
-
- /**
- * @param vXAuditMaps
- * the vXAuditMaps to set
- */
- public void setVXAuditMaps(List<VXAuditMap> vXAuditMaps) {
- this.vXAuditMaps = vXAuditMaps;
- }
-
- @Override
- public int getListSize() {
- if (vXAuditMaps != null) {
- return vXAuditMaps.size();
- }
- return 0;
- }
-
- @Override
- public List<VXAuditMap> getList() {
- return vXAuditMaps;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXAuditRecord.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXAuditRecord.java b/security-admin/src/main/java/com/xasecure/view/VXAuditRecord.java
deleted file mode 100644
index cf6c778..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXAuditRecord.java
+++ /dev/null
@@ -1,239 +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.view;
-
-import java.util.Date;
-
-import javax.xml.bind.annotation.XmlRootElement;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-import com.xasecure.common.AppConstants;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@XmlRootElement
-public class VXAuditRecord {
-
- /**
- * Date of audit log
- */
- protected Date date;
-
- /**
- * Name of the resource
- */
- protected String resource;
-
- /**
- * Action which was audited
- */
- protected String action;
-
- /**
- * Result of the policy enforced
- */
- protected String result;
-
- /**
- * User name whose action was audited
- */
- protected String user;
-
- /**
- * Name of the policy enforcer
- */
- protected String enforcer;
-
- /**
- * Type of resource for which the audit was done
- */
- protected int resourceType = AppConstants.RESOURCE_UNKNOWN;
-
- /**
- * Type of asset for which the audit was done
- * This attribute is of type enum AppCommonEnums::AssetType
- */
- protected int assetType = AppConstants.ASSET_UNKNOWN;
-
- /**
- * Default constructor. This will set all the attributes to default value.
- */
- public VXAuditRecord() {
- resourceType = AppConstants.RESOURCE_UNKNOWN;
- assetType = AppConstants.ASSET_UNKNOWN;
- }
-
- /**
- * Returns the value for the member attribute <b>date</b>
- * @return Date - value of member attribute <b>date</b>.
- */
- public Date getDate() {
- return date;
- }
-
- /**
- * This method sets the value to the member attribute <b>date</b>.
- * You cannot set null to the attribute.
- * @param date Value to set member attribute <b>date</b>
- */
- public void setDate(Date date) {
- this.date = date;
- }
-
- /**
- * Returns the value for the member attribute <b>resource</b>
- * @return String - value of member attribute <b>resource</b>.
- */
- public String getResource() {
- return resource;
- }
-
- /**
- * This method sets the value to the member attribute <b>resource</b>.
- * You cannot set null to the attribute.
- * @param resource Value to set member attribute <b>resource</b>
- */
- public void setResource(String resource) {
- this.resource = resource;
- }
-
- /**
- * Returns the value for the member attribute <b>action</b>
- * @return String - value of member attribute <b>action</b>.
- */
- public String getAction() {
- return action;
- }
-
- /**
- * This method sets the value to the member attribute <b>action</b>.
- * You cannot set null to the attribute.
- * @param action Value to set member attribute <b>action</b>
- */
- public void setAction(String action) {
- this.action = action;
- }
-
- /**
- * Returns the value for the member attribute <b>result</b>
- * @return String - value of member attribute <b>result</b>.
- */
- public String getResult() {
- return result;
- }
-
- /**
- * This method sets the value to the member attribute <b>result</b>.
- * You cannot set null to the attribute.
- * @param result Value to set member attribute <b>result</b>
- */
- public void setResult(String result) {
- this.result = result;
- }
-
- /**
- * Returns the value for the member attribute <b>user</b>
- * @return String - value of member attribute <b>user</b>.
- */
- public String getUser() {
- return user;
- }
-
- /**
- * This method sets the value to the member attribute <b>user</b>.
- * You cannot set null to the attribute.
- * @param user Value to set member attribute <b>user</b>
- */
- public void setUser(String user) {
- this.user = user;
- }
-
- public String getEnforcer() {
- return enforcer;
- }
-
- /**
- * This method sets the value to the member attribute <b>enforcer</b>.
- * You cannot set null to the attribute.
- * @param enforcer Value to set member attribute <b>enforcer</b>
- */
- public void setEnforcer(String enforcer) {
- this.enforcer = enforcer;
- }
-
- /**
- * Returns the value for the member attribute <b>resourceType</b>
- * @return int - value of member attribute <b>resourceType</b>.
- */
- public int getResourceType( ) {
- return this.resourceType;
- }
-
- /**
- * This method sets the value to the member attribute <b>resourceType</b>.
- * You cannot set null to the attribute.
- * @param resourceType Value to set member attribute <b>resourceType</b>
- */
- public void setResourceType( int resourceType ) {
- this.resourceType = resourceType;
- }
-
- /**
- * Returns the value for the member attribute <b>assetType</b>
- * @return int - value of member attribute <b>assetType</b>.
- */
- public int getAssetType() {
- return assetType;
- }
-
- /**
- * This method sets the value to the member attribute <b>assetType</b>.
- * You cannot set null to the attribute.
- * @param assetType Value to set member attribute <b>assetType</b>
- */
- public void setAssetType(int assetType) {
- this.assetType = assetType;
- }
-
- /**
- * This return the bean content in string format
- *
- * @return formatedStr
- */
-
- public String toString() {
- String str = "XVAuditRecord={";
- str += super.toString();
- str += "date={" + date + "} ";
- str += "resource={" + resource + "} ";
- str += "action={" + action + "} ";
- str += "result={" + result + "} ";
- str += "user={" + user + "} ";
- str += "enforcer={" + enforcer + "} ";
- str += "resourceType={" + resourceType + "} ";
- str += "assetType={" + assetType + "} ";
- str += "}";
- return str;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXAuditRecordList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXAuditRecordList.java b/security-admin/src/main/java/com/xasecure/view/VXAuditRecordList.java
deleted file mode 100644
index 5ed75a8..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXAuditRecordList.java
+++ /dev/null
@@ -1,69 +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.view;
-
-import java.util.*;
-
-import javax.xml.bind.annotation.XmlAccessType;
-import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlRootElement;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-import com.xasecure.common.view.VList;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@XmlRootElement
-@XmlAccessorType(XmlAccessType.FIELD)
-public class VXAuditRecordList extends VList {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
- List<VXAuditRecord> vXAuditRecords = new ArrayList<VXAuditRecord>();
-
- public List<VXAuditRecord> getvAudits() {
- return vXAuditRecords;
- }
-
- public void setvAudits(List<VXAuditRecord> vXAuditRecords) {
- this.vXAuditRecords = vXAuditRecords;
- }
-
- public VXAuditRecordList() {
- super();
- }
-
- @Override
- public int getListSize() {
- // TODO Auto-generated method stub
- return 0;
- }
-
- @Override
- public List<?> getList() {
- // TODO Auto-generated method stub
- return null;
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXAuthSession.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXAuthSession.java b/security-admin/src/main/java/com/xasecure/view/VXAuthSession.java
deleted file mode 100644
index 5239ece..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXAuthSession.java
+++ /dev/null
@@ -1,501 +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.view;
-
-/**
- * Authentication sessions
- *
- */
-
-import java.util.*;
-
-import com.xasecure.common.*;
-import com.xasecure.common.view.*;
-
-import com.xasecure.common.*;
-import com.xasecure.json.JsonDateSerializer;
-
-import com.xasecure.view.*;
-
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.annotate.JsonIgnoreProperties;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@JsonIgnoreProperties(ignoreUnknown=true)
-@XmlRootElement
-public class VXAuthSession extends VXDataObject implements java.io.Serializable {
- private static final long serialVersionUID = 1L;
-
-
- /**
- * Login ID of the user
- */
- protected String loginId;
- /**
- * Id of the user
- */
- protected Long userId;
- /**
- * Email address of the user
- */
- protected String emailAddress;
- /**
- * Is this user a test user?
- */
- protected boolean isTestUser = false;
- /**
- * First name of the user
- */
- protected String firstName;
- /**
- * Last name of the user
- */
- protected String lastName;
- /**
- * Public name of the user
- */
- protected String publicScreenName;
- /**
- * Family name of the user
- */
- protected String familyScreenName;
- /**
- * External session id. Mostly Spring/HTTP session
- */
- protected String extSessionId;
- /**
- * Date and time of authentication
- */
- @JsonSerialize(using=JsonDateSerializer.class)
- protected Date authTime;
- /**
- * Authentication status
- * This attribute is of type enum XXAuthSession::AuthStatus
- */
- protected int authStatus;
- /**
- * Authentication type
- * This attribute is of type enum XXAuthSession::AuthType
- */
- protected int authType;
- /**
- * Authentication provider
- * This attribute is of type enum XXAuthSession::AuthType
- */
- protected int authProvider;
- /**
- * Type of the device
- * This attribute is of type enum CommonEnums::DeviceType
- */
- protected int deviceType;
- /**
- * IP where the request came from
- */
- protected String requestIP;
- /**
- * City name
- */
- protected String cityName;
- /**
- * State name
- */
- protected String stateName;
- /**
- * Country name
- */
- protected String countryName;
- /**
- * UserAgent of the requesting device
- */
- protected String requestUserAgent;
-
- /**
- * Default constructor. This will set all the attributes to default value.
- */
- public VXAuthSession ( ) {
- authStatus = 0;
- authType = 0;
- authProvider = 0;
- deviceType = 0;
- }
-
- /**
- * This method sets the value to the member attribute <b>loginId</b>.
- * You cannot set null to the attribute.
- * @param loginId Value to set member attribute <b>loginId</b>
- */
- public void setLoginId( String loginId ) {
- this.loginId = loginId;
- }
-
- /**
- * Returns the value for the member attribute <b>loginId</b>
- * @return String - value of member attribute <b>loginId</b>.
- */
- public String getLoginId( ) {
- return this.loginId;
- }
-
- /**
- * This method sets the value to the member attribute <b>userId</b>.
- * You cannot set null to the attribute.
- * @param userId Value to set member attribute <b>userId</b>
- */
- public void setUserId( Long userId ) {
- this.userId = userId;
- }
-
- /**
- * Returns the value for the member attribute <b>userId</b>
- * @return Long - value of member attribute <b>userId</b>.
- */
- public Long getUserId( ) {
- return this.userId;
- }
-
- /**
- * This method sets the value to the member attribute <b>emailAddress</b>.
- * You cannot set null to the attribute.
- * @param emailAddress Value to set member attribute <b>emailAddress</b>
- */
- public void setEmailAddress( String emailAddress ) {
- this.emailAddress = emailAddress;
- }
-
- /**
- * Returns the value for the member attribute <b>emailAddress</b>
- * @return String - value of member attribute <b>emailAddress</b>.
- */
- public String getEmailAddress( ) {
- return this.emailAddress;
- }
-
- /**
- * This method sets the value to the member attribute <b>isTestUser</b>.
- * You cannot set null to the attribute.
- * @param isTestUser Value to set member attribute <b>isTestUser</b>
- */
- public void setIsTestUser( boolean isTestUser ) {
- this.isTestUser = isTestUser;
- }
-
- /**
- * Returns the value for the member attribute <b>isTestUser</b>
- * @return boolean - value of member attribute <b>isTestUser</b>.
- */
- public boolean isIsTestUser( ) {
- return this.isTestUser;
- }
-
- /**
- * This method sets the value to the member attribute <b>firstName</b>.
- * You cannot set null to the attribute.
- * @param firstName Value to set member attribute <b>firstName</b>
- */
- public void setFirstName( String firstName ) {
- this.firstName = firstName;
- }
-
- /**
- * Returns the value for the member attribute <b>firstName</b>
- * @return String - value of member attribute <b>firstName</b>.
- */
- public String getFirstName( ) {
- return this.firstName;
- }
-
- /**
- * This method sets the value to the member attribute <b>lastName</b>.
- * You cannot set null to the attribute.
- * @param lastName Value to set member attribute <b>lastName</b>
- */
- public void setLastName( String lastName ) {
- this.lastName = lastName;
- }
-
- /**
- * Returns the value for the member attribute <b>lastName</b>
- * @return String - value of member attribute <b>lastName</b>.
- */
- public String getLastName( ) {
- return this.lastName;
- }
-
- /**
- * This method sets the value to the member attribute <b>publicScreenName</b>.
- * You cannot set null to the attribute.
- * @param publicScreenName Value to set member attribute <b>publicScreenName</b>
- */
- public void setPublicScreenName( String publicScreenName ) {
- this.publicScreenName = publicScreenName;
- }
-
- /**
- * Returns the value for the member attribute <b>publicScreenName</b>
- * @return String - value of member attribute <b>publicScreenName</b>.
- */
- public String getPublicScreenName( ) {
- return this.publicScreenName;
- }
-
- /**
- * This method sets the value to the member attribute <b>familyScreenName</b>.
- * You cannot set null to the attribute.
- * @param familyScreenName Value to set member attribute <b>familyScreenName</b>
- */
- public void setFamilyScreenName( String familyScreenName ) {
- this.familyScreenName = familyScreenName;
- }
-
- /**
- * Returns the value for the member attribute <b>familyScreenName</b>
- * @return String - value of member attribute <b>familyScreenName</b>.
- */
- public String getFamilyScreenName( ) {
- return this.familyScreenName;
- }
-
- /**
- * This method sets the value to the member attribute <b>extSessionId</b>.
- * You cannot set null to the attribute.
- * @param extSessionId Value to set member attribute <b>extSessionId</b>
- */
- public void setExtSessionId( String extSessionId ) {
- this.extSessionId = extSessionId;
- }
-
- /**
- * Returns the value for the member attribute <b>extSessionId</b>
- * @return String - value of member attribute <b>extSessionId</b>.
- */
- public String getExtSessionId( ) {
- return this.extSessionId;
- }
-
- /**
- * This method sets the value to the member attribute <b>authTime</b>.
- * You cannot set null to the attribute.
- * @param authTime Value to set member attribute <b>authTime</b>
- */
- public void setAuthTime( Date authTime ) {
- this.authTime = authTime;
- }
-
- /**
- * Returns the value for the member attribute <b>authTime</b>
- * @return Date - value of member attribute <b>authTime</b>.
- */
- public Date getAuthTime( ) {
- return this.authTime;
- }
-
- /**
- * This method sets the value to the member attribute <b>authStatus</b>.
- * You cannot set null to the attribute.
- * @param authStatus Value to set member attribute <b>authStatus</b>
- */
- public void setAuthStatus( int authStatus ) {
- this.authStatus = authStatus;
- }
-
- /**
- * Returns the value for the member attribute <b>authStatus</b>
- * @return int - value of member attribute <b>authStatus</b>.
- */
- public int getAuthStatus( ) {
- return this.authStatus;
- }
-
- /**
- * This method sets the value to the member attribute <b>authType</b>.
- * You cannot set null to the attribute.
- * @param authType Value to set member attribute <b>authType</b>
- */
- public void setAuthType( int authType ) {
- this.authType = authType;
- }
-
- /**
- * Returns the value for the member attribute <b>authType</b>
- * @return int - value of member attribute <b>authType</b>.
- */
- public int getAuthType( ) {
- return this.authType;
- }
-
- /**
- * This method sets the value to the member attribute <b>authProvider</b>.
- * You cannot set null to the attribute.
- * @param authProvider Value to set member attribute <b>authProvider</b>
- */
- public void setAuthProvider( int authProvider ) {
- this.authProvider = authProvider;
- }
-
- /**
- * Returns the value for the member attribute <b>authProvider</b>
- * @return int - value of member attribute <b>authProvider</b>.
- */
- public int getAuthProvider( ) {
- return this.authProvider;
- }
-
- /**
- * This method sets the value to the member attribute <b>deviceType</b>.
- * You cannot set null to the attribute.
- * @param deviceType Value to set member attribute <b>deviceType</b>
- */
- public void setDeviceType( int deviceType ) {
- this.deviceType = deviceType;
- }
-
- /**
- * Returns the value for the member attribute <b>deviceType</b>
- * @return int - value of member attribute <b>deviceType</b>.
- */
- public int getDeviceType( ) {
- return this.deviceType;
- }
-
- /**
- * This method sets the value to the member attribute <b>requestIP</b>.
- * You cannot set null to the attribute.
- * @param requestIP Value to set member attribute <b>requestIP</b>
- */
- public void setRequestIP( String requestIP ) {
- this.requestIP = requestIP;
- }
-
- /**
- * Returns the value for the member attribute <b>requestIP</b>
- * @return String - value of member attribute <b>requestIP</b>.
- */
- public String getRequestIP( ) {
- return this.requestIP;
- }
-
- /**
- * This method sets the value to the member attribute <b>cityName</b>.
- * You cannot set null to the attribute.
- * @param cityName Value to set member attribute <b>cityName</b>
- */
- public void setCityName( String cityName ) {
- this.cityName = cityName;
- }
-
- /**
- * Returns the value for the member attribute <b>cityName</b>
- * @return String - value of member attribute <b>cityName</b>.
- */
- public String getCityName( ) {
- return this.cityName;
- }
-
- /**
- * This method sets the value to the member attribute <b>stateName</b>.
- * You cannot set null to the attribute.
- * @param stateName Value to set member attribute <b>stateName</b>
- */
- public void setStateName( String stateName ) {
- this.stateName = stateName;
- }
-
- /**
- * Returns the value for the member attribute <b>stateName</b>
- * @return String - value of member attribute <b>stateName</b>.
- */
- public String getStateName( ) {
- return this.stateName;
- }
-
- /**
- * This method sets the value to the member attribute <b>countryName</b>.
- * You cannot set null to the attribute.
- * @param countryName Value to set member attribute <b>countryName</b>
- */
- public void setCountryName( String countryName ) {
- this.countryName = countryName;
- }
-
- /**
- * Returns the value for the member attribute <b>countryName</b>
- * @return String - value of member attribute <b>countryName</b>.
- */
- public String getCountryName( ) {
- return this.countryName;
- }
-
- /**
- * This method sets the value to the member attribute <b>requestUserAgent</b>.
- * You cannot set null to the attribute.
- * @param requestUserAgent Value to set member attribute <b>requestUserAgent</b>
- */
- public void setRequestUserAgent( String requestUserAgent ) {
- this.requestUserAgent = requestUserAgent;
- }
-
- /**
- * Returns the value for the member attribute <b>requestUserAgent</b>
- * @return String - value of member attribute <b>requestUserAgent</b>.
- */
- public String getRequestUserAgent( ) {
- return this.requestUserAgent;
- }
-
- @Override
- public int getMyClassType( ) {
- return AppConstants.CLASS_TYPE_AUTH_SESS;
- }
-
- /**
- * This return the bean content in string format
- * @return formatedStr
- */
- public String toString( ) {
- String str = "VXAuthSession={";
- str += super.toString();
- str += "loginId={" + loginId + "} ";
- str += "userId={" + userId + "} ";
- str += "emailAddress={" + emailAddress + "} ";
- str += "isTestUser={" + isTestUser + "} ";
- str += "firstName={" + firstName + "} ";
- str += "lastName={" + lastName + "} ";
- str += "publicScreenName={" + publicScreenName + "} ";
- str += "familyScreenName={" + familyScreenName + "} ";
- str += "extSessionId={" + extSessionId + "} ";
- str += "authTime={" + authTime + "} ";
- str += "authStatus={" + authStatus + "} ";
- str += "authType={" + authType + "} ";
- str += "authProvider={" + authProvider + "} ";
- str += "deviceType={" + deviceType + "} ";
- str += "requestIP={" + requestIP + "} ";
- str += "cityName={" + cityName + "} ";
- str += "stateName={" + stateName + "} ";
- str += "countryName={" + countryName + "} ";
- str += "requestUserAgent={" + requestUserAgent + "} ";
- str += "}";
- return str;
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXAuthSessionList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXAuthSessionList.java b/security-admin/src/main/java/com/xasecure/view/VXAuthSessionList.java
deleted file mode 100644
index b4cb86f..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXAuthSessionList.java
+++ /dev/null
@@ -1,81 +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.view;
-
-/**
- * List wrapper class for VXAuthSession
- *
- */
-
-import java.util.*;
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-import com.xasecure.common.view.*;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@XmlRootElement
-@XmlAccessorType(XmlAccessType.FIELD)
-public class VXAuthSessionList extends VList {
- private static final long serialVersionUID = 1L;
- List<VXAuthSession> vXAuthSessions = new ArrayList<VXAuthSession>();
-
- public VXAuthSessionList() {
- super();
- }
-
- public VXAuthSessionList(List<VXAuthSession> objList) {
- super(objList);
- this.vXAuthSessions = objList;
- }
-
- /**
- * @return the vXAuthSessions
- */
- public List<VXAuthSession> getVXAuthSessions() {
- return vXAuthSessions;
- }
-
- /**
- * @param vXAuthSessions
- * the vXAuthSessions to set
- */
- public void setVXAuthSessions(List<VXAuthSession> vXAuthSessions) {
- this.vXAuthSessions = vXAuthSessions;
- }
-
- @Override
- public int getListSize() {
- if (vXAuthSessions != null) {
- return vXAuthSessions.size();
- }
- return 0;
- }
-
- @Override
- public List<VXAuthSession> getList() {
- return vXAuthSessions;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXCredentialStore.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXCredentialStore.java b/security-admin/src/main/java/com/xasecure/view/VXCredentialStore.java
deleted file mode 100644
index 1350da4..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXCredentialStore.java
+++ /dev/null
@@ -1,118 +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.view;
-
-/**
- * Credential Store
-
- */
-
-import java.util.*;
-
-import com.xasecure.common.*;
-import com.xasecure.common.view.*;
-
-import com.xasecure.common.*;
-import com.xasecure.json.JsonDateSerializer;
-
-import com.xasecure.view.*;
-
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.annotate.JsonIgnoreProperties;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@JsonIgnoreProperties(ignoreUnknown=true)
-@XmlRootElement
-public class VXCredentialStore extends VXDataObject implements java.io.Serializable {
- private static final long serialVersionUID = 1L;
-
-
- /**
- * Name
- */
- protected String name;
- /**
- * Description
- */
- protected String description;
-
- /**
- * Default constructor. This will set all the attributes to default value.
- */
- public VXCredentialStore ( ) {
- }
-
- /**
- * This method sets the value to the member attribute <b>name</b>.
- * You cannot set null to the attribute.
- * @param name Value to set member attribute <b>name</b>
- */
- public void setName( String name ) {
- this.name = name;
- }
-
- /**
- * Returns the value for the member attribute <b>name</b>
- * @return String - value of member attribute <b>name</b>.
- */
- public String getName( ) {
- return this.name;
- }
-
- /**
- * This method sets the value to the member attribute <b>description</b>.
- * You cannot set null to the attribute.
- * @param description Value to set member attribute <b>description</b>
- */
- public void setDescription( String description ) {
- this.description = description;
- }
-
- /**
- * Returns the value for the member attribute <b>description</b>
- * @return String - value of member attribute <b>description</b>.
- */
- public String getDescription( ) {
- return this.description;
- }
-
- @Override
- public int getMyClassType( ) {
- return AppConstants.CLASS_TYPE_XA_CRED_STORE;
- }
-
- /**
- * This return the bean content in string format
- * @return formatedStr
- */
- public String toString( ) {
- String str = "VXCredentialStore={";
- str += super.toString();
- str += "name={" + name + "} ";
- str += "description={" + description + "} ";
- str += "}";
- return str;
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXCredentialStoreList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXCredentialStoreList.java b/security-admin/src/main/java/com/xasecure/view/VXCredentialStoreList.java
deleted file mode 100644
index 290aaf5..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXCredentialStoreList.java
+++ /dev/null
@@ -1,81 +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.view;
-
-/**
- * List wrapper class for VXCredentialStore
-
- */
-
-import java.util.*;
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-import com.xasecure.common.view.*;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@XmlRootElement
-@XmlAccessorType(XmlAccessType.FIELD)
-public class VXCredentialStoreList extends VList {
- private static final long serialVersionUID = 1L;
- List<VXCredentialStore> vXCredentialStores = new ArrayList<VXCredentialStore>();
-
- public VXCredentialStoreList() {
- super();
- }
-
- public VXCredentialStoreList(List<VXCredentialStore> objList) {
- super(objList);
- this.vXCredentialStores = objList;
- }
-
- /**
- * @return the vXCredentialStores
- */
- public List<VXCredentialStore> getVXCredentialStores() {
- return vXCredentialStores;
- }
-
- /**
- * @param vXCredentialStores
- * the vXCredentialStores to set
- */
- public void setVXCredentialStores(List<VXCredentialStore> vXCredentialStores) {
- this.vXCredentialStores = vXCredentialStores;
- }
-
- @Override
- public int getListSize() {
- if (vXCredentialStores != null) {
- return vXCredentialStores.size();
- }
- return 0;
- }
-
- @Override
- public List<VXCredentialStore> getList() {
- return vXCredentialStores;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXDataObject.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXDataObject.java b/security-admin/src/main/java/com/xasecure/view/VXDataObject.java
deleted file mode 100644
index 90c287c..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXDataObject.java
+++ /dev/null
@@ -1,186 +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.view;
-
-/**
- * Base object class
- *
- */
-
-import java.util.*;
-
-import com.xasecure.common.*;
-import com.xasecure.common.view.*;
-
-import com.xasecure.common.*;
-import com.xasecure.json.JsonDateSerializer;
-
-import com.xasecure.view.*;
-
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.annotate.JsonIgnoreProperties;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@JsonIgnoreProperties(ignoreUnknown=true)
-@XmlRootElement
-public class VXDataObject extends ViewBaseBean implements java.io.Serializable {
- private static final long serialVersionUID = 1L;
-
-
- /**
- * Id of the data
- */
- protected Long id;
- /**
- * Date when this data was created
- */
- @JsonSerialize(using=JsonDateSerializer.class)
- protected Date createDate;
- /**
- * Date when this data was updated
- */
- @JsonSerialize(using=JsonDateSerializer.class)
- protected Date updateDate;
- /**
- * Owner
- */
- protected String owner;
- /**
- * Updated By
- */
- protected String updatedBy;
-
- /**
- * Default constructor. This will set all the attributes to default value.
- */
- public VXDataObject ( ) {
- }
-
- /**
- * This method sets the value to the member attribute <b>id</b>.
- * You cannot set null to the attribute.
- * @param id Value to set member attribute <b>id</b>
- */
- public void setId( Long id ) {
- this.id = id;
- }
-
- /**
- * Returns the value for the member attribute <b>id</b>
- * @return Long - value of member attribute <b>id</b>.
- */
- public Long getId( ) {
- return this.id;
- }
-
- /**
- * This method sets the value to the member attribute <b>createDate</b>.
- * You cannot set null to the attribute.
- * @param createDate Value to set member attribute <b>createDate</b>
- */
- public void setCreateDate( Date createDate ) {
- this.createDate = createDate;
- }
-
- /**
- * Returns the value for the member attribute <b>createDate</b>
- * @return Date - value of member attribute <b>createDate</b>.
- */
- public Date getCreateDate( ) {
- return this.createDate;
- }
-
- /**
- * This method sets the value to the member attribute <b>updateDate</b>.
- * You cannot set null to the attribute.
- * @param updateDate Value to set member attribute <b>updateDate</b>
- */
- public void setUpdateDate( Date updateDate ) {
- this.updateDate = updateDate;
- }
-
- /**
- * Returns the value for the member attribute <b>updateDate</b>
- * @return Date - value of member attribute <b>updateDate</b>.
- */
- public Date getUpdateDate( ) {
- return this.updateDate;
- }
-
- /**
- * This method sets the value to the member attribute <b>owner</b>.
- * You cannot set null to the attribute.
- * @param owner Value to set member attribute <b>owner</b>
- */
- public void setOwner( String owner ) {
- this.owner = owner;
- }
-
- /**
- * Returns the value for the member attribute <b>owner</b>
- * @return String - value of member attribute <b>owner</b>.
- */
- public String getOwner( ) {
- return this.owner;
- }
-
- /**
- * This method sets the value to the member attribute <b>updatedBy</b>.
- * You cannot set null to the attribute.
- * @param updatedBy Value to set member attribute <b>updatedBy</b>
- */
- public void setUpdatedBy( String updatedBy ) {
- this.updatedBy = updatedBy;
- }
-
- /**
- * Returns the value for the member attribute <b>updatedBy</b>
- * @return String - value of member attribute <b>updatedBy</b>.
- */
- public String getUpdatedBy( ) {
- return this.updatedBy;
- }
-
- @Override
- public int getMyClassType( ) {
- return AppConstants.CLASS_TYPE_DATA_OBJECT;
- }
-
- /**
- * This return the bean content in string format
- * @return formatedStr
- */
- public String toString( ) {
- String str = "VXDataObject={";
- str += super.toString();
- str += "id={" + id + "} ";
- str += "createDate={" + createDate + "} ";
- str += "updateDate={" + updateDate + "} ";
- str += "owner={" + owner + "} ";
- str += "updatedBy={" + updatedBy + "} ";
- str += "}";
- return str;
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXGroup.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXGroup.java b/security-admin/src/main/java/com/xasecure/view/VXGroup.java
deleted file mode 100644
index bfd5b8c..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXGroup.java
+++ /dev/null
@@ -1,179 +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.view;
-
-/**
- * Group
- *
- */
-
-import java.util.*;
-
-import com.xasecure.common.*;
-import com.xasecure.common.view.*;
-
-import com.xasecure.common.*;
-import com.xasecure.json.JsonDateSerializer;
-
-import com.xasecure.view.*;
-
-import javax.persistence.Column;
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.annotate.JsonIgnoreProperties;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@JsonIgnoreProperties(ignoreUnknown=true)
-@XmlRootElement
-public class VXGroup extends VXDataObject implements java.io.Serializable {
- private static final long serialVersionUID = 1L;
-
-
- /**
- * Name
- */
- protected String name;
- /**
- * Description
- */
- protected String description;
- /**
- * Type of group
- * This attribute is of type enum CommonEnums::XAGroupType
- */
- protected int groupType = AppConstants.XA_GROUP_UNKNOWN;
-
- protected int groupSource = XACommonEnums.GROUP_INTERNAL;
- /**
- * Id of the credential store
- */
- protected Long credStoreId;
-
- /**
- * Default constructor. This will set all the attributes to default value.
- */
- public VXGroup ( ) {
- groupType = AppConstants.XA_GROUP_UNKNOWN;
- }
-
- /**
- * This method sets the value to the member attribute <b>name</b>.
- * You cannot set null to the attribute.
- * @param name Value to set member attribute <b>name</b>
- */
- public void setName( String name ) {
- this.name = name;
- }
-
- /**
- * Returns the value for the member attribute <b>name</b>
- * @return String - value of member attribute <b>name</b>.
- */
- public String getName( ) {
- return this.name;
- }
-
- /**
- * This method sets the value to the member attribute <b>description</b>.
- * You cannot set null to the attribute.
- * @param description Value to set member attribute <b>description</b>
- */
- public void setDescription( String description ) {
- this.description = description;
- }
-
- /**
- * Returns the value for the member attribute <b>description</b>
- * @return String - value of member attribute <b>description</b>.
- */
- public String getDescription( ) {
- return this.description;
- }
-
- /**
- * This method sets the value to the member attribute <b>groupType</b>.
- * You cannot set null to the attribute.
- * @param groupType Value to set member attribute <b>groupType</b>
- */
- public void setGroupType( int groupType ) {
- this.groupType = groupType;
- }
-
- /**
- * Returns the value for the member attribute <b>groupType</b>
- * @return int - value of member attribute <b>groupType</b>.
- */
- public int getGroupType( ) {
- return this.groupType;
- }
-
- /**
- * This method sets the value to the member attribute <b>credStoreId</b>.
- * You cannot set null to the attribute.
- * @param credStoreId Value to set member attribute <b>credStoreId</b>
- */
- public void setCredStoreId( Long credStoreId ) {
- this.credStoreId = credStoreId;
- }
-
- /**
- * Returns the value for the member attribute <b>credStoreId</b>
- * @return Long - value of member attribute <b>credStoreId</b>.
- */
- public Long getCredStoreId( ) {
- return this.credStoreId;
- }
-
- @Override
- public int getMyClassType( ) {
- return AppConstants.CLASS_TYPE_XA_GROUP;
- }
-
-
-
-
- public int getGroupSource() {
- return groupSource;
- }
-
- public void setGroupSource(int groupSource) {
- this.groupSource = groupSource;
- }
-
- /**
- * This return the bean content in string format
- * @return formatedStr
- */
- public String toString( ) {
- String str = "VXGroup={";
- str += super.toString();
- str += "name={" + name + "} ";
- str += "description={" + description + "} ";
- str += "groupType={" + groupType + "} ";
- str += "credStoreId={" + credStoreId + "} ";
- str += "groupSrc={" + groupSource + "} ";
- str += "}";
- return str;
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXGroupGroup.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXGroupGroup.java b/security-admin/src/main/java/com/xasecure/view/VXGroupGroup.java
deleted file mode 100644
index 6edb8bf..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXGroupGroup.java
+++ /dev/null
@@ -1,140 +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.view;
-
-/**
- * Group of groups
- *
- */
-
-import java.util.*;
-
-import com.xasecure.common.*;
-import com.xasecure.common.view.*;
-
-import com.xasecure.common.*;
-import com.xasecure.json.JsonDateSerializer;
-
-import com.xasecure.view.*;
-
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.annotate.JsonIgnoreProperties;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@JsonIgnoreProperties(ignoreUnknown=true)
-@XmlRootElement
-public class VXGroupGroup extends VXDataObject implements java.io.Serializable {
- private static final long serialVersionUID = 1L;
-
-
- /**
- * Name
- */
- protected String name;
- /**
- * Id of the parent group
- */
- protected Long parentGroupId;
- /**
- * Id of the group
- */
- protected Long groupId;
-
- /**
- * Default constructor. This will set all the attributes to default value.
- */
- public VXGroupGroup ( ) {
- }
-
- /**
- * This method sets the value to the member attribute <b>name</b>.
- * You cannot set null to the attribute.
- * @param name Value to set member attribute <b>name</b>
- */
- public void setName( String name ) {
- this.name = name;
- }
-
- /**
- * Returns the value for the member attribute <b>name</b>
- * @return String - value of member attribute <b>name</b>.
- */
- public String getName( ) {
- return this.name;
- }
-
- /**
- * This method sets the value to the member attribute <b>parentGroupId</b>.
- * You cannot set null to the attribute.
- * @param parentGroupId Value to set member attribute <b>parentGroupId</b>
- */
- public void setParentGroupId( Long parentGroupId ) {
- this.parentGroupId = parentGroupId;
- }
-
- /**
- * Returns the value for the member attribute <b>parentGroupId</b>
- * @return Long - value of member attribute <b>parentGroupId</b>.
- */
- public Long getParentGroupId( ) {
- return this.parentGroupId;
- }
-
- /**
- * This method sets the value to the member attribute <b>groupId</b>.
- * You cannot set null to the attribute.
- * @param groupId Value to set member attribute <b>groupId</b>
- */
- public void setGroupId( Long groupId ) {
- this.groupId = groupId;
- }
-
- /**
- * Returns the value for the member attribute <b>groupId</b>
- * @return Long - value of member attribute <b>groupId</b>.
- */
- public Long getGroupId( ) {
- return this.groupId;
- }
-
- @Override
- public int getMyClassType( ) {
- return AppConstants.CLASS_TYPE_XA_GROUP_GROUP;
- }
-
- /**
- * This return the bean content in string format
- * @return formatedStr
- */
- public String toString( ) {
- String str = "VXGroupGroup={";
- str += super.toString();
- str += "name={" + name + "} ";
- str += "parentGroupId={" + parentGroupId + "} ";
- str += "groupId={" + groupId + "} ";
- str += "}";
- return str;
- }
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXGroupGroupList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXGroupGroupList.java b/security-admin/src/main/java/com/xasecure/view/VXGroupGroupList.java
deleted file mode 100644
index 72a77ca..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXGroupGroupList.java
+++ /dev/null
@@ -1,81 +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.view;
-
-/**
- * List wrapper class for VXGroupGroup
- *
- */
-
-import java.util.*;
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-import com.xasecure.common.view.*;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@XmlRootElement
-@XmlAccessorType(XmlAccessType.FIELD)
-public class VXGroupGroupList extends VList {
- private static final long serialVersionUID = 1L;
- List<VXGroupGroup> vXGroupGroups = new ArrayList<VXGroupGroup>();
-
- public VXGroupGroupList() {
- super();
- }
-
- public VXGroupGroupList(List<VXGroupGroup> objList) {
- super(objList);
- this.vXGroupGroups = objList;
- }
-
- /**
- * @return the vXGroupGroups
- */
- public List<VXGroupGroup> getVXGroupGroups() {
- return vXGroupGroups;
- }
-
- /**
- * @param vXGroupGroups
- * the vXGroupGroups to set
- */
- public void setVXGroupGroups(List<VXGroupGroup> vXGroupGroups) {
- this.vXGroupGroups = vXGroupGroups;
- }
-
- @Override
- public int getListSize() {
- if (vXGroupGroups != null) {
- return vXGroupGroups.size();
- }
- return 0;
- }
-
- @Override
- public List<VXGroupGroup> getList() {
- return vXGroupGroups;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXGroupList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXGroupList.java b/security-admin/src/main/java/com/xasecure/view/VXGroupList.java
deleted file mode 100644
index 442ad19..0000000
--- a/security-admin/src/main/java/com/xasecure/view/VXGroupList.java
+++ /dev/null
@@ -1,81 +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.view;
-
-/**
- * List wrapper class for VXGroup
- *
- */
-
-import java.util.*;
-import javax.xml.bind.annotation.*;
-
-import org.codehaus.jackson.annotate.JsonAutoDetect;
-import org.codehaus.jackson.annotate.JsonAutoDetect.Visibility;
-import org.codehaus.jackson.map.annotate.JsonSerialize;
-
-import com.xasecure.common.view.*;
-
-@JsonAutoDetect(getterVisibility=Visibility.NONE, setterVisibility=Visibility.NONE, fieldVisibility=Visibility.ANY)
-@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL )
-@XmlRootElement
-@XmlAccessorType(XmlAccessType.FIELD)
-public class VXGroupList extends VList {
- private static final long serialVersionUID = 1L;
- List<VXGroup> vXGroups = new ArrayList<VXGroup>();
-
- public VXGroupList() {
- super();
- }
-
- public VXGroupList(List<VXGroup> objList) {
- super(objList);
- this.vXGroups = objList;
- }
-
- /**
- * @return the vXGroups
- */
- public List<VXGroup> getVXGroups() {
- return vXGroups;
- }
-
- /**
- * @param vXGroups
- * the vXGroups to set
- */
- public void setVXGroups(List<VXGroup> vXGroups) {
- this.vXGroups = vXGroups;
- }
-
- @Override
- public int getListSize() {
- if (vXGroups != null) {
- return vXGroups.size();
- }
- return 0;
- }
-
- @Override
- public List<VXGroup> getList() {
- return vXGroups;
- }
-
-}