You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ranger.apache.org by om...@apache.org on 2014/08/14 22:50:29 UTC
[18/44] ARGUS-1. Initial code commit (Selvamohan Neethiraj via
omalley)
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXPermMap.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXPermMap.java b/security-admin/src/main/java/com/xasecure/view/VXPermMap.java
new file mode 100644
index 0000000..1f7ee86
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXPermMap.java
@@ -0,0 +1,325 @@
+package com.xasecure.view;
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * Permission 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 VXPermMap extends VXDataObject implements java.io.Serializable {
+ private static final long serialVersionUID = 1L;
+
+
+ /**
+ * Group to which the permission belongs to
+ */
+ protected String permGroup;
+ /**
+ * Id of the resource
+ */
+ protected Long resourceId;
+ /**
+ * Id of the group
+ */
+ protected Long groupId;
+ /**
+ * Id of the user
+ */
+ protected Long userId;
+ /**
+ * Permission for user or group
+ * This attribute is of type enum CommonEnums::XAPermForType
+ */
+ protected int permFor = AppConstants.XA_PERM_FOR_UNKNOWN;
+ /**
+ * Type of permission
+ * This attribute is of type enum CommonEnums::XAPermType
+ */
+ protected int permType = AppConstants.XA_PERM_TYPE_UNKNOWN;
+ /**
+ * Grant is true and revoke is false
+ */
+ protected boolean grantOrRevoke = true;
+ /**
+ * Name of the group
+ */
+ protected String groupName;
+ /**
+ * Name of the user
+ */
+ protected String userName;
+ /**
+ * Is recursive
+ * This attribute is of type enum CommonEnums::BooleanValue
+ */
+ protected int isRecursive = XAConstants.BOOL_NONE;
+ /**
+ * Is wild card
+ */
+ protected boolean isWildCard = true;
+ /**
+ * IP address for groups
+ */
+ protected String ipAddress;
+
+ /**
+ * Default constructor. This will set all the attributes to default value.
+ */
+ public VXPermMap ( ) {
+ permFor = AppConstants.XA_PERM_FOR_UNKNOWN;
+ permType = AppConstants.XA_PERM_TYPE_UNKNOWN;
+ isRecursive = XAConstants.BOOL_NONE;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>permGroup</b>.
+ * You cannot set null to the attribute.
+ * @param permGroup Value to set member attribute <b>permGroup</b>
+ */
+ public void setPermGroup( String permGroup ) {
+ this.permGroup = permGroup;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>permGroup</b>
+ * @return String - value of member attribute <b>permGroup</b>.
+ */
+ public String getPermGroup( ) {
+ return this.permGroup;
+ }
+
+ /**
+ * 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>permFor</b>.
+ * You cannot set null to the attribute.
+ * @param permFor Value to set member attribute <b>permFor</b>
+ */
+ public void setPermFor( int permFor ) {
+ this.permFor = permFor;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>permFor</b>
+ * @return int - value of member attribute <b>permFor</b>.
+ */
+ public int getPermFor( ) {
+ return this.permFor;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>permType</b>.
+ * You cannot set null to the attribute.
+ * @param permType Value to set member attribute <b>permType</b>
+ */
+ public void setPermType( int permType ) {
+ this.permType = permType;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>permType</b>
+ * @return int - value of member attribute <b>permType</b>.
+ */
+ public int getPermType( ) {
+ return this.permType;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>grantOrRevoke</b>.
+ * You cannot set null to the attribute.
+ * @param grantOrRevoke Value to set member attribute <b>grantOrRevoke</b>
+ */
+ public void setGrantOrRevoke( boolean grantOrRevoke ) {
+ this.grantOrRevoke = grantOrRevoke;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>grantOrRevoke</b>
+ * @return boolean - value of member attribute <b>grantOrRevoke</b>.
+ */
+ public boolean isGrantOrRevoke( ) {
+ return this.grantOrRevoke;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>groupName</b>.
+ * You cannot set null to the attribute.
+ * @param groupName Value to set member attribute <b>groupName</b>
+ */
+ public void setGroupName( String groupName ) {
+ this.groupName = groupName;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>groupName</b>
+ * @return String - value of member attribute <b>groupName</b>.
+ */
+ public String getGroupName( ) {
+ return this.groupName;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>userName</b>.
+ * You cannot set null to the attribute.
+ * @param userName Value to set member attribute <b>userName</b>
+ */
+ public void setUserName( String userName ) {
+ this.userName = userName;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>userName</b>
+ * @return String - value of member attribute <b>userName</b>.
+ */
+ public String getUserName( ) {
+ return this.userName;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>isRecursive</b>.
+ * You cannot set null to the attribute.
+ * @param isRecursive Value to set member attribute <b>isRecursive</b>
+ */
+ public void setIsRecursive( int isRecursive ) {
+ this.isRecursive = isRecursive;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>isRecursive</b>
+ * @return int - value of member attribute <b>isRecursive</b>.
+ */
+ public int getIsRecursive( ) {
+ return this.isRecursive;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>isWildCard</b>.
+ * You cannot set null to the attribute.
+ * @param isWildCard Value to set member attribute <b>isWildCard</b>
+ */
+ public void setIsWildCard( boolean isWildCard ) {
+ this.isWildCard = isWildCard;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>isWildCard</b>
+ * @return boolean - value of member attribute <b>isWildCard</b>.
+ */
+ public boolean isIsWildCard( ) {
+ return this.isWildCard;
+ }
+
+ public String getIpAddress() {
+ return ipAddress;
+ }
+
+ public void setIpAddress(String ipAddress) {
+ this.ipAddress = ipAddress;
+ }
+
+ @Override
+ public int getMyClassType( ) {
+ return AppConstants.CLASS_TYPE_XA_PERM_MAP;
+ }
+
+ /**
+ * This return the bean content in string format
+ * @return formatedStr
+ */
+ public String toString( ) {
+ String str = "VXPermMap={";
+ str += super.toString();
+ str += "permGroup={" + permGroup + "} ";
+ str += "resourceId={" + resourceId + "} ";
+ str += "groupId={" + groupId + "} ";
+ str += "userId={" + userId + "} ";
+ str += "permFor={" + permFor + "} ";
+ str += "permType={" + permType + "} ";
+ str += "grantOrRevoke={" + grantOrRevoke + "} ";
+ str += "groupName={" + groupName + "} ";
+ str += "userName={" + userName + "} ";
+ str += "isRecursive={" + isRecursive + "} ";
+ str += "isWildCard={" + isWildCard + "} ";
+ str += "}";
+ return str;
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXPermMapList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXPermMapList.java b/security-admin/src/main/java/com/xasecure/view/VXPermMapList.java
new file mode 100644
index 0000000..b916706
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXPermMapList.java
@@ -0,0 +1,72 @@
+package com.xasecure.view;
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * List wrapper class for VXPermMap
+ *
+ */
+
+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 VXPermMapList extends VList {
+ private static final long serialVersionUID = 1L;
+ List<VXPermMap> vXPermMaps = new ArrayList<VXPermMap>();
+
+ public VXPermMapList() {
+ super();
+ }
+
+ public VXPermMapList(List<VXPermMap> objList) {
+ super(objList);
+ this.vXPermMaps = objList;
+ }
+
+ /**
+ * @return the vXPermMaps
+ */
+ public List<VXPermMap> getVXPermMaps() {
+ return vXPermMaps;
+ }
+
+ /**
+ * @param vXPermMaps
+ * the vXPermMaps to set
+ */
+ public void setVXPermMaps(List<VXPermMap> vXPermMaps) {
+ this.vXPermMaps = vXPermMaps;
+ }
+
+ @Override
+ public int getListSize() {
+ if (vXPermMaps != null) {
+ return vXPermMaps.size();
+ }
+ return 0;
+ }
+
+ @Override
+ public List<VXPermMap> getList() {
+ return vXPermMaps;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXPermObj.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXPermObj.java b/security-admin/src/main/java/com/xasecure/view/VXPermObj.java
new file mode 100644
index 0000000..5f9b278
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXPermObj.java
@@ -0,0 +1,134 @@
+package com.xasecure.view;
+
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * Permission map
+ * @author tushar
+ */
+
+import java.util.List;
+
+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 VXPermObj implements java.io.Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * List of userName
+ */
+ protected List<String> userList;
+ /**
+ * List of groupName
+ */
+ protected List<String> groupList;
+ /**
+ * List of permission
+ */
+ protected List<String> permList;
+ /**
+ * IP address for groups
+ */
+ protected String ipAddress;
+
+ /**
+ * Default constructor. This will set all the attributes to default value.
+ */
+ public VXPermObj() {
+
+ }
+
+ /**
+ * @return the userList
+ */
+ public List<String> getUserList() {
+ return userList;
+ }
+
+ /**
+ * @param userList
+ * the userList to set
+ */
+ public void setUserList(List<String> userList) {
+ this.userList = userList;
+ }
+
+ /**
+ * @return the groupList
+ */
+ public List<String> getGroupList() {
+ return groupList;
+ }
+
+ /**
+ * @param groupList
+ * the groupList to set
+ */
+ public void setGroupList(List<String> groupList) {
+ this.groupList = groupList;
+ }
+
+ /**
+ * @return the permList
+ */
+ public List<String> getPermList() {
+ return permList;
+ }
+
+ /**
+ * @param permList
+ * the permList to set
+ */
+ public void setPermList(List<String> permList) {
+ this.permList = permList;
+ }
+
+ /**
+ * @return the ipAddress
+ */
+ public String getIpAddress() {
+ return ipAddress;
+ }
+
+ /**
+ * @param ipAddress
+ * the ipAddress to set
+ */
+ public void setIpAddress(String ipAddress) {
+ this.ipAddress = ipAddress;
+ }
+
+ /**
+ * This return the bean content in string format
+ *
+ * @return formatedStr
+ */
+ public String toString() {
+ String str = "VXPermMap={";
+ str += super.toString();
+ str += "userList={" + userList + "} ";
+ str += "groupList={" + groupList + "} ";
+ str += "permList={" + permList + "} ";
+ str += "ipAddress={" + ipAddress + "} ";
+ str += "}";
+ return str;
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXPermObjList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXPermObjList.java b/security-admin/src/main/java/com/xasecure/view/VXPermObjList.java
new file mode 100644
index 0000000..88f4af9
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXPermObjList.java
@@ -0,0 +1,73 @@
+package com.xasecure.view;
+
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * List wrapper class for VXPermObj
+ * @author tushar
+ */
+
+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 VXPermObjList extends VList {
+ private static final long serialVersionUID = 1L;
+ List<VXPermObj> vXPermObjs = new ArrayList<VXPermObj>();
+
+ public VXPermObjList() {
+ super();
+ }
+
+ public VXPermObjList(List<VXPermObj> objList) {
+ super(objList);
+ this.vXPermObjs = objList;
+ }
+
+ /**
+ * @return the vXPermObjs
+ */
+ public List<VXPermObj> getVXPermObjs() {
+ return vXPermObjs;
+ }
+
+ /**
+ * @param vXPermObjs
+ * the vXPermObjs to set
+ */
+ public void setVXPermObjs(List<VXPermObj> vXPermObjs) {
+ this.vXPermObjs = vXPermObjs;
+ }
+
+ @Override
+ public int getListSize() {
+ if (vXPermObjs != null) {
+ return vXPermObjs.size();
+ }
+ return 0;
+ }
+
+ @Override
+ public List<VXPermObj> getList() {
+ return vXPermObjs;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXPolicy.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXPolicy.java b/security-admin/src/main/java/com/xasecure/view/VXPolicy.java
new file mode 100644
index 0000000..52b96e6
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXPolicy.java
@@ -0,0 +1,609 @@
+package com.xasecure.view;
+
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * Policy
+ * @author tushar
+ */
+
+import java.util.*;
+
+import com.xasecure.common.*;
+
+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 VXPolicy extends VXDataObject implements java.io.Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * PolicyName
+ */
+ protected String policyName;
+ /**
+ * resourceName
+ */
+ protected String resourceName;
+ /**
+ * ResourceType : Label of EnumType : ResourceType
+ */
+ protected String resourceType;
+ /**
+ * Description
+ */
+ protected String description;
+ /**
+ * Id of the repository
+ */
+ protected Long repositoryId;
+ /**
+ * Repository Name
+ */
+ protected String repositoryName;
+ /**
+ * Repository Type
+ */
+ protected String repositoryType;
+ /**
+ * List of permissions maps
+ */
+ protected List<VXPermObj> permMapList;
+ /**
+ * Tables
+ */
+ protected String tables;
+ /**
+ * Column families
+ */
+ protected String columnFamilies;
+ /**
+ * Columns
+ */
+ protected String columns;
+ /**
+ * Databases
+ */
+ protected String databases;
+ /**
+ * UDFs
+ */
+ protected String udfs;
+ /**
+ * Table Type
+ */
+ protected String tableType;
+ /**
+ * Resource Status
+ */
+ protected String columnType;
+ /**
+ * Topologoies
+ */
+ protected String topologies;
+ /**
+ * Services
+ */
+ protected String services;
+ /**
+ * Resource/Policy Status, boolean values : true/false
+ *
+ */
+ protected boolean isEnabled;
+ /**
+ * Is recursive This attribute is of type enum CommonEnums::BooleanValue
+ */
+ protected boolean isRecursive;
+ /**
+ * Audit is enable or not.
+ */
+ protected boolean isAuditEnabled;
+ /**
+ * Check parent permission This attribute is of type enum
+ * CommonEnums::BooleanValue
+ */
+ protected boolean checkParentPermission;
+ /**
+ * Version No of Project
+ */
+ protected String version;
+
+ /**
+ * Default constructor. This will set all the attributes to default value.
+ */
+ public VXPolicy() {
+ resourceType = AppConstants
+ .getLabelFor_ResourceType(AppConstants.RESOURCE_PATH);
+ isRecursive = false;
+ checkParentPermission = false;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>policyName</b>
+ *
+ * @return String - value of member attribute <b>policyName</b>.
+ */
+ public String getPolicyName() {
+ return policyName;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>policyName</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param policyName
+ * Value to set member attribute <b>policyName</b>
+ */
+ public void setPolicyName(String policyName) {
+ this.policyName = policyName;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>resourceName</b>.
+ * You cannot set null to the attribute.
+ *
+ * @param name
+ * Value to set member attribute <b>resourceName</b>
+ */
+ public void setResourceName(String resourceName) {
+ this.resourceName = resourceName;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>resourceName</b>
+ *
+ * @return String - value of member attribute <b>resourceName</b>.
+ */
+ public String getResourceName() {
+ return this.resourceName;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * 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;
+ }
+
+ /**
+ * @return the repositoryId
+ */
+ public Long getRepositoryId() {
+ return repositoryId;
+ }
+
+ /**
+ * @param repositoryId
+ * the repositoryId to set
+ */
+ public void setRepositoryId(Long repositoryId) {
+ this.repositoryId = repositoryId;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>assetName</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param assetName
+ * Value to set member attribute <b>assetName</b>
+ */
+ public void setRepositoryName(String repositoryName) {
+ this.repositoryName = repositoryName;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>repositoryName</b>
+ *
+ * @return String - value of member attribute <b>repositoryName</b>.
+ */
+ public String getRepositoryName() {
+ return this.repositoryName;
+ }
+
+ /**
+ * 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 setRepositoryType(String repositoryType) {
+ this.repositoryType = repositoryType;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>repositoryType</b>
+ *
+ * @return String - value of member attribute <b>repositoryType</b>.
+ */
+ public String getRepositoryType() {
+ return this.repositoryType;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>permMapList</b>.
+ * You cannot set null to the attribute.
+ *
+ * @param permMapList
+ * Value to set member attribute <b>permMapList</b>
+ */
+ public void setPermMapList(List<VXPermObj> permMapList) {
+ this.permMapList = permMapList;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>userPermList</b>
+ *
+ * @return List<VXPermObj> - value of member attribute <b>permMapList</b>.
+ */
+ public List<VXPermObj> getPermMapList() {
+ return this.permMapList;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>tables</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param tables
+ * Value to set member attribute <b>tables</b>
+ */
+ public void setTables(String tables) {
+ this.tables = tables;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>tables</b>
+ *
+ * @return String - value of member attribute <b>tables</b>.
+ */
+ public String getTables() {
+ return this.tables;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>columnFamilies</b>.
+ * You cannot set null to the attribute.
+ *
+ * @param columnFamilies
+ * Value to set member attribute <b>columnFamilies</b>
+ */
+ public void setColumnFamilies(String columnFamilies) {
+ this.columnFamilies = columnFamilies;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>columnFamilies</b>
+ *
+ * @return String - value of member attribute <b>columnFamilies</b>.
+ */
+ public String getColumnFamilies() {
+ return this.columnFamilies;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>columns</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param columns
+ * Value to set member attribute <b>columns</b>
+ */
+ public void setColumns(String columns) {
+ this.columns = columns;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>columns</b>
+ *
+ * @return String - value of member attribute <b>columns</b>.
+ */
+ public String getColumns() {
+ return this.columns;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>databases</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param databases
+ * Value to set member attribute <b>databases</b>
+ */
+ public void setDatabases(String databases) {
+ this.databases = databases;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>databases</b>
+ *
+ * @return String - value of member attribute <b>databases</b>.
+ */
+ public String getDatabases() {
+ return this.databases;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>udfs</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param udfs
+ * Value to set member attribute <b>udfs</b>
+ */
+ public void setUdfs(String udfs) {
+ this.udfs = udfs;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>udfs</b>
+ *
+ * @return String - value of member attribute <b>udfs</b>.
+ */
+ public String getUdfs() {
+ return this.udfs;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>tableType</b>
+ *
+ * @return String - value of member attribute <b>tableType</b>.
+ */
+ public String getTableType() {
+ return tableType;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>tableType</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param tableType
+ * Value to set member attribute <b>tableType</b>
+ */
+ public void setTableType(String tableType) {
+ this.tableType = tableType;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>columnType</b>
+ *
+ * @return String - value of member attribute <b>columnType</b>.
+ */
+ public String getColumnType() {
+ return columnType;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>columnType</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param columnType
+ * Value to set member attribute <b>columnType</b>
+ */
+ public void setColumnType(String columnType) {
+ this.columnType = columnType;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>topologies</b>
+ *
+ * @return String - value of member attribute <b>topologies</b>.
+ */
+ public String getTopologies() {
+ return topologies;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>topologies</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param topologies
+ * Value to set member attribute <b>topologies</b>
+ */
+ public void setTopologies(String topologies) {
+ this.topologies = topologies;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>services</b>
+ *
+ * @return String - value of member attribute <b>services</b>.
+ */
+ public String getServices() {
+ return services;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>services</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param services
+ * Value to set member attribute <b>services</b>
+ */
+ public void setServices(String services) {
+ this.services = services;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>resourceStatus</b>.
+ * You cannot set null to the attribute.
+ *
+ * @param isEnabled
+ * Value to set member attribute <b>isEnable</b>
+ */
+ public void setEnabled(boolean isEnabled) {
+ this.isEnabled = isEnabled;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>isEnable</b>
+ *
+ * @return boolean - value of member attribute <b>isEnable</b>.
+ */
+ public boolean isEnabled() {
+ return this.isEnabled;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>isRecursive</b>.
+ * You cannot set null to the attribute.
+ *
+ * @param isRecursive
+ * Value to set member attribute <b>isRecursive</b>
+ */
+ public void setRecursive(boolean isRecursive) {
+ this.isRecursive = isRecursive;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>isRecursive</b>
+ *
+ * @return boolean - value of member attribute <b>isRecursive</b>.
+ */
+ public boolean isRecursive() {
+ return this.isRecursive;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>isAuditEnabled</b>.
+ * You cannot set null to the attribute.
+ *
+ * @param isAuditEnabled
+ * Value to set member attribute <b>isAuditEnabled</b>
+ */
+ public void setAuditEnabled(boolean isAuditEnabled) {
+ this.isAuditEnabled = isAuditEnabled;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>isAuditEnabled</b>
+ *
+ * @return boolean - value of member attribute <b>isAuditEnabled</b>.
+ */
+ public boolean isAuditEnabled() {
+ return this.isAuditEnabled;
+ }
+
+ /**
+ * This method sets the value to the member attribute
+ * <b>checkParentPermission</b>.
+ *
+ * @param checkParentPermission
+ * Value to set member attribute <b>checkParentPermission</b>
+ */
+ public void setCheckParentPermission(boolean checkParentPermission) {
+ this.checkParentPermission = checkParentPermission;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>checkParentPermission</b>
+ *
+ * @return boolean - value of member attribute <b>checkParentPermission</b>.
+ */
+ public boolean getCheckParentPermission() {
+ return this.checkParentPermission;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>version</b>
+ *
+ * @return String - value of member attribute <b>version</b>.
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>version</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param version
+ * Value to set member attribute <b>version</b>
+ */
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ @Override
+ public int getMyClassType() {
+ return AppConstants.CLASS_TYPE_XA_RESOURCE;
+ }
+
+ /**
+ * This return the bean content in string format
+ *
+ * @return formatedStr
+ */
+ public String toString() {
+ String str = "VXResource={";
+ str += super.toString();
+ str += "policyName={" + policyName + "} ";
+ str += "resourceName={" + resourceName + "} ";
+ str += "resourceType={" + resourceType + "} ";
+ str += "description={" + description + "} ";
+ str += "repositoryName={" + repositoryName + "} ";
+ str += "repositoryType={" + repositoryType + "} ";
+ str += "tables={" + tables + "} ";
+ str += "columnFamilies={" + columnFamilies + "} ";
+ str += "columns={" + columns + "} ";
+ str += "databases={" + databases + "} ";
+ str += "udfs={" + udfs + "} ";
+ str += "tableType={" + tableType + "} ";
+ str += "columnType={" + columnType + "} ";
+ str += "topologies={" + topologies + "} ";
+ str += "services={" + services + "} ";
+ str += "isEnable={" + isEnabled + "} ";
+ str += "isRecursive={" + isRecursive + "} ";
+ str += "isAuditEnabled={" + isAuditEnabled + "} ";
+ str += "checkParentPermission={" + checkParentPermission + "} ";
+ str += "version={" + version + "} ";
+ str += "}";
+ return str;
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXPolicyExportAudit.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXPolicyExportAudit.java b/security-admin/src/main/java/com/xasecure/view/VXPolicyExportAudit.java
new file mode 100644
index 0000000..607891f
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXPolicyExportAudit.java
@@ -0,0 +1,220 @@
+package com.xasecure.view;
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * Audit Log for Policy Export
+ *
+ */
+
+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 VXPolicyExportAudit extends VXDataObject implements java.io.Serializable {
+ private static final long serialVersionUID = 1L;
+
+
+ /**
+ * XA Agent IP Address
+ */
+ protected String clientIP;
+ /**
+ * XA Agent Id
+ */
+ protected String agentId;
+ /**
+ * Last update timestamp in request
+ */
+ protected Long requestedEpoch;
+ /**
+ * Date and time of the last policy update
+ */
+ @JsonSerialize(using=JsonDateSerializer.class)
+ protected Date lastUpdated;
+ /**
+ * Id of the Asset
+ */
+ protected String repositoryName;
+ /**
+ * JSON of the policies exported
+ */
+ protected String exportedJson;
+ /**
+ * HTTP Response Code
+ */
+ protected int httpRetCode;
+
+ /**
+ * Default constructor. This will set all the attributes to default value.
+ */
+ public VXPolicyExportAudit ( ) {
+ }
+
+ /**
+ * 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>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>requestedEpoch</b>.
+ * You cannot set null to the attribute.
+ * @param requestedEpoch Value to set member attribute <b>requestedEpoch</b>
+ */
+ public void setRequestedEpoch( Long requestedEpoch ) {
+ this.requestedEpoch = requestedEpoch;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>requestedEpoch</b>
+ * @return Long - value of member attribute <b>requestedEpoch</b>.
+ */
+ public Long getRequestedEpoch( ) {
+ return this.requestedEpoch;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>lastUpdated</b>.
+ * You cannot set null to the attribute.
+ * @param lastUpdated Value to set member attribute <b>lastUpdated</b>
+ */
+ public void setLastUpdated( Date lastUpdated ) {
+ this.lastUpdated = lastUpdated;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>lastUpdated</b>
+ * @return Date - value of member attribute <b>lastUpdated</b>.
+ */
+ public Date getLastUpdated( ) {
+ return this.lastUpdated;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>repositoryName</b>.
+ * You cannot set null to the attribute.
+ * @param repositoryName Value to set member attribute <b>repositoryName</b>
+ */
+ public void setRepositoryName( String repositoryName ) {
+ this.repositoryName = repositoryName;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>repositoryName</b>
+ * @return String - value of member attribute <b>repositoryName</b>.
+ */
+ public String getRepositoryName( ) {
+ return this.repositoryName;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>exportedJson</b>.
+ * You cannot set null to the attribute.
+ * @param exportedJson Value to set member attribute <b>exportedJson</b>
+ */
+ public void setExportedJson( String exportedJson ) {
+ this.exportedJson = exportedJson;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>exportedJson</b>
+ * @return String - value of member attribute <b>exportedJson</b>.
+ */
+ public String getExportedJson( ) {
+ return this.exportedJson;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>httpRetCode</b>.
+ * You cannot set null to the attribute.
+ * @param httpRetCode Value to set member attribute <b>httpRetCode</b>
+ */
+ public void setHttpRetCode( int httpRetCode ) {
+ this.httpRetCode = httpRetCode;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>httpRetCode</b>
+ * @return int - value of member attribute <b>httpRetCode</b>.
+ */
+ public int getHttpRetCode( ) {
+ return this.httpRetCode;
+ }
+
+ @Override
+ public int getMyClassType( ) {
+ return AppConstants.CLASS_TYPE_XA_POLICY_EXPORT_AUDIT;
+ }
+
+ /**
+ * This return the bean content in string format
+ * @return formatedStr
+ */
+ public String toString( ) {
+ String str = "VXPolicyExportAudit={";
+ str += super.toString();
+ str += "clientIP={" + clientIP + "} ";
+ str += "agentId={" + agentId + "} ";
+ str += "requestedEpoch={" + requestedEpoch + "} ";
+ str += "lastUpdated={" + lastUpdated + "} ";
+ str += "repositoryName={" + repositoryName + "} ";
+ str += "exportedJson={" + exportedJson + "} ";
+ str += "httpRetCode={" + httpRetCode + "} ";
+ str += "}";
+ return str;
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXPolicyExportAuditList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXPolicyExportAuditList.java b/security-admin/src/main/java/com/xasecure/view/VXPolicyExportAuditList.java
new file mode 100644
index 0000000..b2493ac
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXPolicyExportAuditList.java
@@ -0,0 +1,72 @@
+package com.xasecure.view;
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * List wrapper class for VXPolicyExportAudit
+ *
+ */
+
+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 VXPolicyExportAuditList extends VList {
+ private static final long serialVersionUID = 1L;
+ List<VXPolicyExportAudit> vXPolicyExportAudits = new ArrayList<VXPolicyExportAudit>();
+
+ public VXPolicyExportAuditList() {
+ super();
+ }
+
+ public VXPolicyExportAuditList(List<VXPolicyExportAudit> objList) {
+ super(objList);
+ this.vXPolicyExportAudits = objList;
+ }
+
+ /**
+ * @return the vXPolicyExportAudits
+ */
+ public List<VXPolicyExportAudit> getVXPolicyExportAudits() {
+ return vXPolicyExportAudits;
+ }
+
+ /**
+ * @param vXPolicyExportAudits
+ * the vXPolicyExportAudits to set
+ */
+ public void setVXPolicyExportAudits(List<VXPolicyExportAudit> vXPolicyExportAudits) {
+ this.vXPolicyExportAudits = vXPolicyExportAudits;
+ }
+
+ @Override
+ public int getListSize() {
+ if (vXPolicyExportAudits != null) {
+ return vXPolicyExportAudits.size();
+ }
+ return 0;
+ }
+
+ @Override
+ public List<VXPolicyExportAudit> getList() {
+ return vXPolicyExportAudits;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXPolicyList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXPolicyList.java b/security-admin/src/main/java/com/xasecure/view/VXPolicyList.java
new file mode 100644
index 0000000..281cb3f
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXPolicyList.java
@@ -0,0 +1,73 @@
+package com.xasecure.view;
+
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * List wrapper class for VXPolicy
+ * @author tushar
+ */
+
+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 VXPolicyList extends VList {
+ private static final long serialVersionUID = 1L;
+ List<VXPolicy> vXPolicies = new ArrayList<VXPolicy>();
+
+ public VXPolicyList() {
+ super();
+ }
+
+ public VXPolicyList(List<VXPolicy> objList) {
+ super(objList);
+ this.vXPolicies = objList;
+ }
+
+ /**
+ * @return the vXPolicies
+ */
+ public List<VXPolicy> getVXPolicies() {
+ return vXPolicies;
+ }
+
+ /**
+ * @param vXPolicies
+ * the vXPolicies to set
+ */
+ public void setVXPolicies(List<VXPolicy> vXPolicies) {
+ this.vXPolicies = vXPolicies;
+ }
+
+ @Override
+ public int getListSize() {
+ if (vXPolicies != null) {
+ return vXPolicies.size();
+ }
+ return 0;
+ }
+
+ @Override
+ public List<VXPolicy> getList() {
+ return vXPolicies;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXPortalUser.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXPortalUser.java b/security-admin/src/main/java/com/xasecure/view/VXPortalUser.java
new file mode 100644
index 0000000..d4da23b
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXPortalUser.java
@@ -0,0 +1,284 @@
+package com.xasecure.view;
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+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 VXPortalUser extends VXDataObject implements java.io.Serializable {
+ private static final long serialVersionUID = 1L;
+
+
+ /**
+ * Login Id for the user
+ */
+ protected String loginId;
+ /**
+ * Password
+ */
+ protected String password;
+ /**
+ * Status
+ * This attribute is of type enum CommonEnums::ActivationStatus
+ */
+ protected int status;
+ /**
+ * Email address of the user
+ */
+ protected String emailAddress;
+ /**
+ * First name of the user
+ */
+ protected String firstName;
+ /**
+ * Last name of the user
+ */
+ protected String lastName;
+ /**
+ * Public name of the user
+ */
+ protected String publicScreenName;
+ /**
+ * Source of the user
+ * This attribute is of type enum CommonEnums::UserSource
+ */
+ protected int userSource;
+ /**
+ * Notes for the user
+ */
+ protected String notes;
+ /**
+ * List of roles for this user
+ */
+ protected Collection<String> userRoleList;
+
+ /**
+ * Default constructor. This will set all the attributes to default value.
+ */
+ public VXPortalUser ( ) {
+ status = 0;
+ userSource = 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>password</b>.
+ * You cannot set null to the attribute.
+ * @param password Value to set member attribute <b>password</b>
+ */
+ public void setPassword( String password ) {
+ this.password = password;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>password</b>
+ * @return String - value of member attribute <b>password</b>.
+ */
+ public String getPassword( ) {
+ return this.password;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>status</b>.
+ * You cannot set null to the attribute.
+ * @param status Value to set member attribute <b>status</b>
+ */
+ public void setStatus( int status ) {
+ this.status = status;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>status</b>
+ * @return int - value of member attribute <b>status</b>.
+ */
+ public int getStatus( ) {
+ return this.status;
+ }
+
+ /**
+ * 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>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>userSource</b>.
+ * You cannot set null to the attribute.
+ * @param userSource Value to set member attribute <b>userSource</b>
+ */
+ public void setUserSource( int userSource ) {
+ this.userSource = userSource;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>userSource</b>
+ * @return int - value of member attribute <b>userSource</b>.
+ */
+ public int getUserSource( ) {
+ return this.userSource;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>notes</b>.
+ * You cannot set null to the attribute.
+ * @param notes Value to set member attribute <b>notes</b>
+ */
+ public void setNotes( String notes ) {
+ this.notes = notes;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>notes</b>
+ * @return String - value of member attribute <b>notes</b>.
+ */
+ public String getNotes( ) {
+ return this.notes;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>userRoleList</b>.
+ * You cannot set null to the attribute.
+ * @param userRoleList Value to set member attribute <b>userRoleList</b>
+ */
+ public void setUserRoleList( Collection<String> userRoleList ) {
+ this.userRoleList = userRoleList;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>userRoleList</b>
+ * @return Collection<String> - value of member attribute <b>userRoleList</b>.
+ */
+ public Collection<String> getUserRoleList( ) {
+ return this.userRoleList;
+ }
+
+ @Override
+ public int getMyClassType( ) {
+ return AppConstants.CLASS_TYPE_USER_PROFILE;
+ }
+
+ /**
+ * This return the bean content in string format
+ * @return formatedStr
+ */
+ public String toString( ) {
+ String str = "VXPortalUser={";
+ str += super.toString();
+ str += "loginId={" + loginId + "} ";
+ str += "password={***length=" + (password == null? 0 : password.length()) + "***} ";
+ str += "status={" + status + "} ";
+ str += "emailAddress={" + emailAddress + "} ";
+ str += "firstName={" + firstName + "} ";
+ str += "lastName={" + lastName + "} ";
+ str += "publicScreenName={" + publicScreenName + "} ";
+ str += "userSource={" + userSource + "} ";
+ str += "notes={" + notes + "} ";
+ str += "userRoleList={" + userRoleList + "} ";
+ str += "}";
+ return str;
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXPortalUserList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXPortalUserList.java b/security-admin/src/main/java/com/xasecure/view/VXPortalUserList.java
new file mode 100644
index 0000000..3b1131d
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXPortalUserList.java
@@ -0,0 +1,72 @@
+package com.xasecure.view;
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * List wrapper class for VXPortalUser
+ *
+ */
+
+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 VXPortalUserList extends VList {
+ private static final long serialVersionUID = 1L;
+ List<VXPortalUser> vXPortalUsers = new ArrayList<VXPortalUser>();
+
+ public VXPortalUserList() {
+ super();
+ }
+
+ public VXPortalUserList(List<VXPortalUser> objList) {
+ super(objList);
+ this.vXPortalUsers = objList;
+ }
+
+ /**
+ * @return the vXPortalUsers
+ */
+ public List<VXPortalUser> getVXPortalUsers() {
+ return vXPortalUsers;
+ }
+
+ /**
+ * @param vXPortalUsers
+ * the vXPortalUsers to set
+ */
+ public void setVXPortalUsers(List<VXPortalUser> vXPortalUsers) {
+ this.vXPortalUsers = vXPortalUsers;
+ }
+
+ @Override
+ public int getListSize() {
+ if (vXPortalUsers != null) {
+ return vXPortalUsers.size();
+ }
+ return 0;
+ }
+
+ @Override
+ public List<VXPortalUser> getList() {
+ return vXPortalUsers;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXRepository.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXRepository.java b/security-admin/src/main/java/com/xasecure/view/VXRepository.java
new file mode 100644
index 0000000..57e3935
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXRepository.java
@@ -0,0 +1,211 @@
+package com.xasecure.view;
+
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * Repository
+ * @author tushar
+ */
+
+import com.xasecure.common.*;
+
+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 VXRepository extends VXDataObject implements java.io.Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Name
+ */
+ protected String name;
+ /**
+ * Description
+ */
+ protected String description;
+ /**
+ * Type of asset. i.e HDFS, HIVE, HBASE, KNOX
+ */
+ protected String repositoryType;
+ /**
+ * Config in json format
+ */
+ protected String config;
+ /**
+ * Status This attribute is of type boolean : true/false
+ */
+ protected boolean isActive;
+ /**
+ * Version No of Project
+ */
+ protected String version;
+
+ /**
+ * Default constructor. This will set all the attributes to default value.
+ */
+ public VXRepository() {
+ isActive = false;
+ repositoryType = "";
+
+ }
+
+ /**
+ * 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>repositoryType</b>.
+ * You cannot set null to the attribute.
+ *
+ * @param repositoryType
+ * Value to set member attribute <b>repositoryType</b>
+ */
+ public void setRepositoryType(String repositoryType) {
+ this.repositoryType = repositoryType;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>repositoryType</b>
+ *
+ * @return String - value of member attribute <b>repositoryType</b>.
+ */
+ public String getRepositoryType() {
+ return this.repositoryType;
+ }
+
+ /**
+ * 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>isActive</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param isActive
+ * Value to set member attribute <b>isActive</b>
+ */
+ public void setActive(boolean isActive) {
+ this.isActive = isActive;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>isActive</b>
+ *
+ * @return boolean - value of member attribute <b>isActive</b>.
+ */
+ public boolean isActive() {
+ return this.isActive;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>version</b>
+ *
+ * @return String - value of member attribute <b>version</b>.
+ */
+ public String getVersion() {
+ return version;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>version</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param version
+ * Value to set member attribute <b>version</b>
+ */
+ public void setVersion(String version) {
+ this.version = version;
+ }
+
+ @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 += "isActive={" + isActive + "} ";
+ str += "repositoryType={" + repositoryType + "} ";
+ str += "config={" + config + "} ";
+ str += "version={" + version + "} ";
+ str += "}";
+ return str;
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXRepositoryList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXRepositoryList.java b/security-admin/src/main/java/com/xasecure/view/VXRepositoryList.java
new file mode 100644
index 0000000..5f88f16
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXRepositoryList.java
@@ -0,0 +1,73 @@
+package com.xasecure.view;
+
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * List wrapper class for VXRepository
+ * @author tushar
+ */
+
+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 VXRepositoryList extends VList {
+ private static final long serialVersionUID = 1L;
+ List<VXRepository> vXRepositories = new ArrayList<VXRepository>();
+
+ public VXRepositoryList() {
+ super();
+ }
+
+ public VXRepositoryList(List<VXRepository> objList) {
+ super(objList);
+ this.vXRepositories = objList;
+ }
+
+ /**
+ * @return the vXRepositories
+ */
+ public List<VXRepository> getVXRepositories() {
+ return vXRepositories;
+ }
+
+ /**
+ * @param vXRepositories
+ * the vXRepositories to set
+ */
+ public void setVXRepositories(List<VXRepository> vXRepositories) {
+ this.vXRepositories = vXRepositories;
+ }
+
+ @Override
+ public int getListSize() {
+ if (vXRepositories != null) {
+ return vXRepositories.size();
+ }
+ return 0;
+ }
+
+ @Override
+ public List<VXRepository> getList() {
+ return vXRepositories;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXResource.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXResource.java b/security-admin/src/main/java/com/xasecure/view/VXResource.java
new file mode 100644
index 0000000..9887d6e
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXResource.java
@@ -0,0 +1,615 @@
+package com.xasecure.view;
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * Resource
+ *
+ */
+
+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 VXResource extends VXDataObject implements java.io.Serializable {
+ private static final long serialVersionUID = 1L;
+
+
+ /**
+ * Name
+ */
+ protected String name;
+ protected String policyName;
+ /**
+ * Description
+ */
+ protected String description;
+ /**
+ * Status
+ * This attribute is of type enum CommonEnums::ResourceType
+ */
+ protected int resourceType;
+ /**
+ * Id of the asset
+ */
+ protected Long assetId;
+ /**
+ * Id of the parent
+ */
+ protected Long parentId;
+ /**
+ * Path for the parent
+ */
+ protected String parentPath;
+ /**
+ * Whether to encrypt this resource
+ * This attribute is of type enum CommonEnums::BooleanValue
+ */
+ protected int isEncrypt = XAConstants.BOOL_FALSE;
+ /**
+ * List of permissions maps
+ */
+ protected List<VXPermMap> permMapList;
+ /**
+ * List of audits
+ */
+ protected List<VXAuditMap> auditList;
+ /**
+ * Is recursive
+ * This attribute is of type enum CommonEnums::BooleanValue
+ */
+ protected int isRecursive = XAConstants.BOOL_NONE;
+ /**
+ * Group to which this resource belongs to
+ */
+ protected String resourceGroup;
+ /**
+ * Databases
+ */
+ protected String databases;
+ /**
+ * Tables
+ */
+ protected String tables;
+ /**
+ * Column families
+ */
+ protected String columnFamilies;
+ /**
+ * Columns
+ */
+ protected String columns;
+ /**
+ * UDFs
+ */
+ protected String udfs;
+ /**
+ * Asset Name
+ */
+ protected String assetName;
+ /**
+ * Asset Type
+ */
+ protected int assetType;
+ /**
+ * Resource Status
+ */
+ protected int resourceStatus;
+ /**
+ * Table Type
+ */
+ protected int tableType;
+ /**
+ * Resource Status
+ */
+ protected int columnType;
+ /**
+ * Check parent permission
+ * This attribute is of type enum CommonEnums::BooleanValue
+ */
+ protected int checkParentPermission = XAConstants.BOOL_NONE;
+ /**
+ * Topologoies
+ */
+ protected String topologies;
+ /**
+ * Services
+ */
+ protected String services;
+
+ /**
+ * Default constructor. This will set all the attributes to default value.
+ */
+ public VXResource ( ) {
+ resourceType = AppConstants.RESOURCE_PATH;
+ isEncrypt = XAConstants.BOOL_FALSE;
+ isRecursive = XAConstants.BOOL_NONE;
+ checkParentPermission = XAConstants.BOOL_NONE;
+ }
+
+ /**
+ * 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;
+ }
+
+ public String getPolicyName() {
+ return policyName;
+ }
+
+ public void setPolicyName(String policyName) {
+ this.policyName = policyName;
+ }
+
+ /**
+ * 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>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>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>assetId</b>.
+ * You cannot set null to the attribute.
+ * @param assetId Value to set member attribute <b>assetId</b>
+ */
+ public void setAssetId( Long assetId ) {
+ this.assetId = assetId;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>assetId</b>
+ * @return Long - value of member attribute <b>assetId</b>.
+ */
+ public Long getAssetId( ) {
+ return this.assetId;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>parentId</b>.
+ * You cannot set null to the attribute.
+ * @param parentId Value to set member attribute <b>parentId</b>
+ */
+ public void setParentId( Long parentId ) {
+ this.parentId = parentId;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>parentId</b>
+ * @return Long - value of member attribute <b>parentId</b>.
+ */
+ public Long getParentId( ) {
+ return this.parentId;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>parentPath</b>.
+ * You cannot set null to the attribute.
+ * @param parentPath Value to set member attribute <b>parentPath</b>
+ */
+ public void setParentPath( String parentPath ) {
+ this.parentPath = parentPath;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>parentPath</b>
+ * @return String - value of member attribute <b>parentPath</b>.
+ */
+ public String getParentPath( ) {
+ return this.parentPath;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>isEncrypt</b>.
+ * You cannot set null to the attribute.
+ * @param isEncrypt Value to set member attribute <b>isEncrypt</b>
+ */
+ public void setIsEncrypt( int isEncrypt ) {
+ this.isEncrypt = isEncrypt;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>isEncrypt</b>
+ * @return int - value of member attribute <b>isEncrypt</b>.
+ */
+ public int getIsEncrypt( ) {
+ return this.isEncrypt;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>permMapList</b>.
+ * You cannot set null to the attribute.
+ * @param permMapList Value to set member attribute <b>permMapList</b>
+ */
+ public void setPermMapList( List<VXPermMap> permMapList ) {
+ this.permMapList = permMapList;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>permMapList</b>
+ * @return List<VXPermMap> - value of member attribute <b>permMapList</b>.
+ */
+ public List<VXPermMap> getPermMapList( ) {
+ return this.permMapList;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>auditList</b>.
+ * You cannot set null to the attribute.
+ * @param auditList Value to set member attribute <b>auditList</b>
+ */
+ public void setAuditList( List<VXAuditMap> auditList ) {
+ this.auditList = auditList;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>auditList</b>
+ * @return List<VXAuditMap> - value of member attribute <b>auditList</b>.
+ */
+ public List<VXAuditMap> getAuditList( ) {
+ return this.auditList;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>isRecursive</b>.
+ * You cannot set null to the attribute.
+ * @param isRecursive Value to set member attribute <b>isRecursive</b>
+ */
+ public void setIsRecursive( int isRecursive ) {
+ this.isRecursive = isRecursive;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>isRecursive</b>
+ * @return int - value of member attribute <b>isRecursive</b>.
+ */
+ public int getIsRecursive( ) {
+ return this.isRecursive;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>resourceGroup</b>.
+ * You cannot set null to the attribute.
+ * @param resourceGroup Value to set member attribute <b>resourceGroup</b>
+ */
+ public void setResourceGroup( String resourceGroup ) {
+ this.resourceGroup = resourceGroup;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>resourceGroup</b>
+ * @return String - value of member attribute <b>resourceGroup</b>.
+ */
+ public String getResourceGroup( ) {
+ return this.resourceGroup;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>databases</b>.
+ * You cannot set null to the attribute.
+ * @param databases Value to set member attribute <b>databases</b>
+ */
+ public void setDatabases( String databases ) {
+ this.databases = databases;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>databases</b>
+ * @return String - value of member attribute <b>databases</b>.
+ */
+ public String getDatabases( ) {
+ return this.databases;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>tables</b>.
+ * You cannot set null to the attribute.
+ * @param tables Value to set member attribute <b>tables</b>
+ */
+ public void setTables( String tables ) {
+ this.tables = tables;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>tables</b>
+ * @return String - value of member attribute <b>tables</b>.
+ */
+ public String getTables( ) {
+ return this.tables;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>columnFamilies</b>.
+ * You cannot set null to the attribute.
+ * @param columnFamilies Value to set member attribute <b>columnFamilies</b>
+ */
+ public void setColumnFamilies( String columnFamilies ) {
+ this.columnFamilies = columnFamilies;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>columnFamilies</b>
+ * @return String - value of member attribute <b>columnFamilies</b>.
+ */
+ public String getColumnFamilies( ) {
+ return this.columnFamilies;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>columns</b>.
+ * You cannot set null to the attribute.
+ * @param columns Value to set member attribute <b>columns</b>
+ */
+ public void setColumns( String columns ) {
+ this.columns = columns;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>columns</b>
+ * @return String - value of member attribute <b>columns</b>.
+ */
+ public String getColumns( ) {
+ return this.columns;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>udfs</b>.
+ * You cannot set null to the attribute.
+ * @param udfs Value to set member attribute <b>udfs</b>
+ */
+ public void setUdfs( String udfs ) {
+ this.udfs = udfs;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>udfs</b>
+ * @return String - value of member attribute <b>udfs</b>.
+ */
+ public String getUdfs( ) {
+ return this.udfs;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>assetName</b>.
+ * You cannot set null to the attribute.
+ * @param assetName Value to set member attribute <b>assetName</b>
+ */
+ public void setAssetName( String assetName ) {
+ this.assetName = assetName;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>assetName</b>
+ * @return String - value of member attribute <b>assetName</b>.
+ */
+ public String getAssetName( ) {
+ return this.assetName;
+ }
+
+ /**
+ * 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>resourceStatus</b>.
+ * You cannot set null to the attribute.
+ * @param resourceStatus Value to set member attribute <b>resourceStatus</b>
+ */
+ public void setResourceStatus( int resourceStatus ) {
+ this.resourceStatus = resourceStatus;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>resourceStatus</b>
+ * @return int - value of member attribute <b>resourceStatus</b>.
+ */
+ public int getResourceStatus( ) {
+ return this.resourceStatus;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>tableType</b>.
+ * You cannot set null to the attribute.
+ * @param tableType Value to set member attribute <b>tableType</b>
+ */
+ public void setTableType( int tableType ) {
+ this.tableType = tableType;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>tableType</b>
+ * @return int - value of member attribute <b>tableType</b>.
+ */
+ public int getTableType( ) {
+ return this.tableType;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>columnType</b>.
+ * You cannot set null to the attribute.
+ * @param columnType Value to set member attribute <b>columnType</b>
+ */
+ public void setColumnType( int columnType ) {
+ this.columnType = columnType;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>columnType</b>
+ * @return int - value of member attribute <b>columnType</b>.
+ */
+ public int getColumnType( ) {
+ return this.columnType;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>topologies</b>
+ *
+ * @return String - value of member attribute <b>topologies</b>.
+ */
+ public String getTopologies() {
+ return topologies;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>topologies</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param topologies
+ * Value to set member attribute <b>topologies</b>
+ */
+ public void setTopologies(String topologies) {
+ this.topologies = topologies;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>services</b>
+ *
+ * @return String - value of member attribute <b>services</b>.
+ */
+ public String getServices() {
+ return services;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>services</b>. You
+ * cannot set null to the attribute.
+ *
+ * @param services
+ * Value to set member attribute <b>services</b>
+ */
+ public void setServices(String services) {
+ this.services = services;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>checkParentPermission</b>.
+ * You cannot set null to the attribute.
+ * @param checkParentPermission Value to set member attribute <b>checkParentPermission</b>
+ */
+ public void setCheckParentPermission( int checkParentPermission ) {
+ this.checkParentPermission = checkParentPermission;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>checkParentPermission</b>
+ * @return int - value of member attribute <b>checkParentPermission</b>.
+ */
+ public int getCheckParentPermission( ) {
+ return this.checkParentPermission;
+ }
+
+ @Override
+ public int getMyClassType( ) {
+ return AppConstants.CLASS_TYPE_XA_RESOURCE;
+ }
+
+ /**
+ * This return the bean content in string format
+ * @return formatedStr
+ */
+ public String toString( ) {
+ String str = "VXResource={";
+ str += super.toString();
+ str += "name={" + name + "} ";
+ str += "policyName={" + policyName + "} ";
+ str += "description={" + description + "} ";
+ str += "resourceType={" + resourceType + "} ";
+ str += "assetId={" + assetId + "} ";
+ str += "parentId={" + parentId + "} ";
+ str += "parentPath={" + parentPath + "} ";
+ str += "isEncrypt={" + isEncrypt + "} ";
+ str += "permMapList={" + permMapList + "} ";
+ str += "auditList={" + auditList + "} ";
+ str += "isRecursive={" + isRecursive + "} ";
+ str += "resourceGroup={" + resourceGroup + "} ";
+ str += "databases={" + databases + "} ";
+ str += "tables={" + tables + "} ";
+ str += "columnFamilies={" + columnFamilies + "} ";
+ str += "columns={" + columns + "} ";
+ str += "udfs={" + udfs + "} ";
+ str += "assetName={" + assetName + "} ";
+ str += "assetType={" + assetType + "} ";
+ str += "resourceStatus={" + resourceStatus + "} ";
+ str += "tableType={" + tableType + "} ";
+ str += "columnType={" + columnType + "} ";
+ str += "checkParentPermission={" + checkParentPermission + "} ";
+ str += "topologies={" + topologies + "} ";
+ str += "services={" + services + "} ";
+ str += "}";
+ return str;
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXResourceList.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXResourceList.java b/security-admin/src/main/java/com/xasecure/view/VXResourceList.java
new file mode 100644
index 0000000..65a620d
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXResourceList.java
@@ -0,0 +1,72 @@
+package com.xasecure.view;
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * List wrapper class for VXResource
+ *
+ */
+
+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 VXResourceList extends VList {
+ private static final long serialVersionUID = 1L;
+ List<VXResource> vXResources = new ArrayList<VXResource>();
+
+ public VXResourceList() {
+ super();
+ }
+
+ public VXResourceList(List<VXResource> objList) {
+ super(objList);
+ this.vXResources = objList;
+ }
+
+ /**
+ * @return the vXResources
+ */
+ public List<VXResource> getVXResources() {
+ return vXResources;
+ }
+
+ /**
+ * @param vXResources
+ * the vXResources to set
+ */
+ public void setVXResources(List<VXResource> vXResources) {
+ this.vXResources = vXResources;
+ }
+
+ @Override
+ public int getListSize() {
+ if (vXResources != null) {
+ return vXResources.size();
+ }
+ return 0;
+ }
+
+ @Override
+ public List<VXResource> getList() {
+ return vXResources;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/7defc061/security-admin/src/main/java/com/xasecure/view/VXResponse.java
----------------------------------------------------------------------
diff --git a/security-admin/src/main/java/com/xasecure/view/VXResponse.java b/security-admin/src/main/java/com/xasecure/view/VXResponse.java
new file mode 100644
index 0000000..9b913b2
--- /dev/null
+++ b/security-admin/src/main/java/com/xasecure/view/VXResponse.java
@@ -0,0 +1,166 @@
+package com.xasecure.view;
+/*
+ * Copyright (c) 2014 XASecure
+ * All rights reserved.
+ *
+ * This software is the confidential and proprietary information of
+ * XASecure ("Confidential Information"). You shall not
+ * disclose such Confidential Information and shall use it only in
+ * accordance with the terms of the license agreement you entered into
+ * with XASecure
+ */
+
+/**
+ * Response
+ *
+ */
+
+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 VXResponse extends ViewBaseBean implements java.io.Serializable {
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Enum values for ResponseStatus
+ */
+ /**
+ * STATUS_SUCCESS is an element of enum ResponseStatus. Its value is "STATUS_SUCCESS".
+ */
+ public static final int STATUS_SUCCESS = 0;
+ /**
+ * STATUS_ERROR is an element of enum ResponseStatus. Its value is "STATUS_ERROR".
+ */
+ public static final int STATUS_ERROR = 1;
+ /**
+ * STATUS_VALIDATION is an element of enum ResponseStatus. Its value is "STATUS_VALIDATION".
+ */
+ public static final int STATUS_VALIDATION = 2;
+ /**
+ * STATUS_WARN is an element of enum ResponseStatus. Its value is "STATUS_WARN".
+ */
+ public static final int STATUS_WARN = 3;
+ /**
+ * STATUS_INFO is an element of enum ResponseStatus. Its value is "STATUS_INFO".
+ */
+ public static final int STATUS_INFO = 4;
+ /**
+ * STATUS_PARTIAL_SUCCESS is an element of enum ResponseStatus. Its value is "STATUS_PARTIAL_SUCCESS".
+ */
+ public static final int STATUS_PARTIAL_SUCCESS = 5;
+
+ /**
+ * Max value for enum ResponseStatus_MAX
+ */
+ public static final int ResponseStatus_MAX = 5;
+
+
+ /**
+ * Status code
+ * This attribute is of type enum XResponse::ResponseStatus
+ */
+ protected int statusCode;
+ /**
+ * Message description
+ */
+ protected String msgDesc;
+ /**
+ * List of messages
+ */
+ protected List<VXMessage> messageList;
+
+ /**
+ * Default constructor. This will set all the attributes to default value.
+ */
+ public VXResponse ( ) {
+ statusCode = 0;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>statusCode</b>.
+ * You cannot set null to the attribute.
+ * @param statusCode Value to set member attribute <b>statusCode</b>
+ */
+ public void setStatusCode( int statusCode ) {
+ this.statusCode = statusCode;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>statusCode</b>
+ * @return int - value of member attribute <b>statusCode</b>.
+ */
+ public int getStatusCode( ) {
+ return this.statusCode;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>msgDesc</b>.
+ * You cannot set null to the attribute.
+ * @param msgDesc Value to set member attribute <b>msgDesc</b>
+ */
+ public void setMsgDesc( String msgDesc ) {
+ this.msgDesc = msgDesc;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>msgDesc</b>
+ * @return String - value of member attribute <b>msgDesc</b>.
+ */
+ public String getMsgDesc( ) {
+ return this.msgDesc;
+ }
+
+ /**
+ * This method sets the value to the member attribute <b>messageList</b>.
+ * You cannot set null to the attribute.
+ * @param messageList Value to set member attribute <b>messageList</b>
+ */
+ public void setMessageList( List<VXMessage> messageList ) {
+ this.messageList = messageList;
+ }
+
+ /**
+ * Returns the value for the member attribute <b>messageList</b>
+ * @return List<VXMessage> - value of member attribute <b>messageList</b>.
+ */
+ public List<VXMessage> getMessageList( ) {
+ return this.messageList;
+ }
+
+ @Override
+ public int getMyClassType( ) {
+ return AppConstants.CLASS_TYPE_RESPONSE;
+ }
+
+ /**
+ * This return the bean content in string format
+ * @return formatedStr
+ */
+ public String toString( ) {
+ String str = "VXResponse={";
+ str += super.toString();
+ str += "statusCode={" + statusCode + "} ";
+ str += "msgDesc={" + msgDesc + "} ";
+ str += "messageList={" + messageList + "} ";
+ str += "}";
+ return str;
+ }
+}