http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXGroupUser.java ---------------------------------------------------------------------- diff --git a/security-admin/src/main/java/com/xasecure/view/VXGroupUser.java b/security-admin/src/main/java/com/xasecure/view/VXGroupUser.java deleted file mode 100644 index fa58f61..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXGroupUser.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 users - * - */ - -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 VXGroupUser extends VXDataObject implements java.io.Serializable { - private static final long serialVersionUID = 1L; - - - /** - * Name - */ - protected String name; - /** - * Id of the group - */ - protected Long parentGroupId; - /** - * Id of the user - */ - protected Long userId; - - /** - * Default constructor. This will set all the attributes to default value. - */ - public VXGroupUser ( ) { - } - - /** - * 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>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; - } - - @Override - public int getMyClassType( ) { - return AppConstants.CLASS_TYPE_XA_GROUP_USER; - } - - /** - * This return the bean content in string format - * @return formatedStr - */ - public String toString( ) { - String str = "VXGroupUser={"; - str += super.toString(); - str += "name={" + name + "} "; - str += "parentGroupId={" + parentGroupId + "} "; - str += "userId={" + userId + "} "; - str += "}"; - return str; - } -}
http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXGroupUserList.java ---------------------------------------------------------------------- diff --git a/security-admin/src/main/java/com/xasecure/view/VXGroupUserList.java b/security-admin/src/main/java/com/xasecure/view/VXGroupUserList.java deleted file mode 100644 index 75858ed..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXGroupUserList.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 VXGroupUser - * - */ - -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 VXGroupUserList extends VList { - private static final long serialVersionUID = 1L; - List<VXGroupUser> vXGroupUsers = new ArrayList<VXGroupUser>(); - - public VXGroupUserList() { - super(); - } - - public VXGroupUserList(List<VXGroupUser> objList) { - super(objList); - this.vXGroupUsers = objList; - } - - /** - * @return the vXGroupUsers - */ - public List<VXGroupUser> getVXGroupUsers() { - return vXGroupUsers; - } - - /** - * @param vXGroupUsers - * the vXGroupUsers to set - */ - public void setVXGroupUsers(List<VXGroupUser> vXGroupUsers) { - this.vXGroupUsers = vXGroupUsers; - } - - @Override - public int getListSize() { - if (vXGroupUsers != null) { - return vXGroupUsers.size(); - } - return 0; - } - - @Override - public List<VXGroupUser> getList() { - return vXGroupUsers; - } - -} http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXLong.java ---------------------------------------------------------------------- diff --git a/security-admin/src/main/java/com/xasecure/view/VXLong.java b/security-admin/src/main/java/com/xasecure/view/VXLong.java deleted file mode 100644 index a7abab7..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXLong.java +++ /dev/null @@ -1,96 +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; - -/** - * Long - * - */ - -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 VXLong extends ViewBaseBean implements java.io.Serializable { - private static final long serialVersionUID = 1L; - - - /** - * Value - */ - protected long value; - - /** - * Default constructor. This will set all the attributes to default value. - */ - public VXLong ( ) { - } - - /** - * This method sets the value to the member attribute <b>value</b>. - * You cannot set null to the attribute. - * @param value Value to set member attribute <b>value</b> - */ - public void setValue( long value ) { - this.value = value; - } - - /** - * Returns the value for the member attribute <b>value</b> - * @return long - value of member attribute <b>value</b>. - */ - public long getValue( ) { - return this.value; - } - - @Override - public int getMyClassType( ) { - return AppConstants.CLASS_TYPE_LONG; - } - - /** - * This return the bean content in string format - * @return formatedStr - */ - public String toString( ) { - String str = "VXLong={"; - str += super.toString(); - str += "value={" + value + "} "; - str += "}"; - return str; - } -} http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXMessage.java ---------------------------------------------------------------------- diff --git a/security-admin/src/main/java/com/xasecure/view/VXMessage.java b/security-admin/src/main/java/com/xasecure/view/VXMessage.java deleted file mode 100644 index c53f5c8..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXMessage.java +++ /dev/null @@ -1,184 +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; - -/** - * Message 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 VXMessage extends ViewBaseBean implements java.io.Serializable { - private static final long serialVersionUID = 1L; - - - /** - * Message key - */ - protected String name; - /** - * Resource bundle key - */ - protected String rbKey; - /** - * Message description. Use rbKey for doing localized lookup - */ - protected String message; - /** - * Id of the object to which this message is related to - */ - protected Long objectId; - /** - * Name of the field or attribute to which this message is related to - */ - protected String fieldName; - - /** - * Default constructor. This will set all the attributes to default value. - */ - public VXMessage ( ) { - } - - /** - * 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>rbKey</b>. - * You cannot set null to the attribute. - * @param rbKey Value to set member attribute <b>rbKey</b> - */ - public void setRbKey( String rbKey ) { - this.rbKey = rbKey; - } - - /** - * Returns the value for the member attribute <b>rbKey</b> - * @return String - value of member attribute <b>rbKey</b>. - */ - public String getRbKey( ) { - return this.rbKey; - } - - /** - * This method sets the value to the member attribute <b>message</b>. - * You cannot set null to the attribute. - * @param message Value to set member attribute <b>message</b> - */ - public void setMessage( String message ) { - this.message = message; - } - - /** - * Returns the value for the member attribute <b>message</b> - * @return String - value of member attribute <b>message</b>. - */ - public String getMessage( ) { - return this.message; - } - - /** - * This method sets the value to the member attribute <b>objectId</b>. - * You cannot set null to the attribute. - * @param objectId Value to set member attribute <b>objectId</b> - */ - public void setObjectId( Long objectId ) { - this.objectId = objectId; - } - - /** - * Returns the value for the member attribute <b>objectId</b> - * @return Long - value of member attribute <b>objectId</b>. - */ - public Long getObjectId( ) { - return this.objectId; - } - - /** - * This method sets the value to the member attribute <b>fieldName</b>. - * You cannot set null to the attribute. - * @param fieldName Value to set member attribute <b>fieldName</b> - */ - public void setFieldName( String fieldName ) { - this.fieldName = fieldName; - } - - /** - * Returns the value for the member attribute <b>fieldName</b> - * @return String - value of member attribute <b>fieldName</b>. - */ - public String getFieldName( ) { - return this.fieldName; - } - - @Override - public int getMyClassType( ) { - return AppConstants.CLASS_TYPE_MESSAGE; - } - - /** - * This return the bean content in string format - * @return formatedStr - */ - public String toString( ) { - String str = "VXMessage={"; - str += super.toString(); - str += "name={" + name + "} "; - str += "rbKey={" + rbKey + "} "; - str += "message={" + message + "} "; - str += "objectId={" + objectId + "} "; - str += "fieldName={" + fieldName + "} "; - str += "}"; - return str; - } -} http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/security-admin/src/main/java/com/xasecure/view/VXPasswordChange.java ---------------------------------------------------------------------- diff --git a/security-admin/src/main/java/com/xasecure/view/VXPasswordChange.java b/security-admin/src/main/java/com/xasecure/view/VXPasswordChange.java deleted file mode 100644 index df1d0db..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXPasswordChange.java +++ /dev/null @@ -1,206 +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; - -/** - * Change password structure - * - */ - -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 VXPasswordChange extends ViewBaseBean implements java.io.Serializable { - private static final long serialVersionUID = 1L; - - - /** - * Id of the user - */ - protected Long id; - /** - * Login ID of the user - */ - protected String loginId; - /** - * Email address of the user - */ - protected String emailAddress; - /** - * Reset Code - */ - protected String resetCode; - /** - * Old Password - */ - protected String oldPassword; - /** - * Updated Password - */ - protected String updPassword; - - /** - * Default constructor. This will set all the attributes to default value. - */ - public VXPasswordChange ( ) { - } - - /** - * 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>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>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>resetCode</b>. - * You cannot set null to the attribute. - * @param resetCode Value to set member attribute <b>resetCode</b> - */ - public void setResetCode( String resetCode ) { - this.resetCode = resetCode; - } - - /** - * Returns the value for the member attribute <b>resetCode</b> - * @return String - value of member attribute <b>resetCode</b>. - */ - public String getResetCode( ) { - return this.resetCode; - } - - /** - * This method sets the value to the member attribute <b>oldPassword</b>. - * You cannot set null to the attribute. - * @param oldPassword Value to set member attribute <b>oldPassword</b> - */ - public void setOldPassword( String oldPassword ) { - this.oldPassword = oldPassword; - } - - /** - * Returns the value for the member attribute <b>oldPassword</b> - * @return String - value of member attribute <b>oldPassword</b>. - */ - public String getOldPassword( ) { - return this.oldPassword; - } - - /** - * This method sets the value to the member attribute <b>updPassword</b>. - * You cannot set null to the attribute. - * @param updPassword Value to set member attribute <b>updPassword</b> - */ - public void setUpdPassword( String updPassword ) { - this.updPassword = updPassword; - } - - /** - * Returns the value for the member attribute <b>updPassword</b> - * @return String - value of member attribute <b>updPassword</b>. - */ - public String getUpdPassword( ) { - return this.updPassword; - } - - @Override - public int getMyClassType( ) { - return AppConstants.CLASS_TYPE_PASSWORD_CHANGE; - } - - /** - * This return the bean content in string format - * @return formatedStr - */ - public String toString( ) { - String str = "VXPasswordChange={"; - str += super.toString(); - str += "id={" + id + "} "; - str += "loginId={" + loginId + "} "; - str += "emailAddress={" + emailAddress + "} "; - str += "resetCode={" + resetCode + "} "; - str += "oldPassword={***length=" + (oldPassword == null? 0 : oldPassword.length()) + "***} "; - str += "updPassword={***length=" + (updPassword == null? 0 : updPassword.length()) + "***} "; - str += "}"; - return str; - } -} http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/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 deleted file mode 100644 index 7730719..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXPermMap.java +++ /dev/null @@ -1,334 +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; - -/** - * 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-ranger/blob/413fcb68/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 deleted file mode 100644 index 22d5ea1..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXPermMapList.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 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-ranger/blob/413fcb68/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 deleted file mode 100644 index 03b9d2f..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXPermObj.java +++ /dev/null @@ -1,142 +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; - - -/** - * Permission map - */ - -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-ranger/blob/413fcb68/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 deleted file mode 100644 index 5fa82dc..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXPermObjList.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 VXPermObj - */ - -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-ranger/blob/413fcb68/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 deleted file mode 100644 index 21e78c2..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXPolicy.java +++ /dev/null @@ -1,577 +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; - - -/** - * Policy - */ - -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; - /** - * Description - */ - protected String description; - /** - * 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; - /** - * Version No of Project - */ - protected String version; - - protected String grantor; - protected boolean replacePerm; - - /** - * Default constructor. This will set all the attributes to default value. - */ - public VXPolicy() { - isRecursive = false; - replacePerm=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>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>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 setIsEnabled(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 getIsEnabled() { - 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 setIsRecursive(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 getIsRecursive() { - 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 setIsAuditEnabled(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 getIsAuditEnabled() { - return this.isAuditEnabled; - } - - /** - * 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; - } - - public String getGrantor() { - return grantor; - } - - public void setGrantor(String grantor) { - this.grantor = grantor; - } - - public boolean isReplacePerm() { - return replacePerm; - } - - public void setReplacePerm(boolean replacePerm) { - this.replacePerm = replacePerm; - } - - @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 += "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 += "version={" + version + "} "; - str += "}"; - return str; - } - - //function should be used from grant/revoke rest call only - public void syncResponseWithJsonRequest() { - this.setGrantor(this.getOwner()); - this.setOwner(null); - this.setId(null); - this.setUpdatedBy(null); - this.setPolicyName(null); - this.setResourceName(null); - this.setRepositoryType(null); - this.setVersion(null); - this.setIsRecursive(new Boolean(null)); - } -} http://git-wip-us.apache.org/repos/asf/incubator-ranger/blob/413fcb68/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 deleted file mode 100644 index 9be5f4f..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXPolicyExportAudit.java +++ /dev/null @@ -1,229 +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; - -/** - * 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-ranger/blob/413fcb68/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 deleted file mode 100644 index 3ccd95c..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXPolicyExportAuditList.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 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-ranger/blob/413fcb68/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 deleted file mode 100644 index 4f189eb..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXPolicyList.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 VXPolicy - */ - -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-ranger/blob/413fcb68/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 deleted file mode 100644 index afa3267..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXPortalUser.java +++ /dev/null @@ -1,293 +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 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-ranger/blob/413fcb68/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 deleted file mode 100644 index c21d22d..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXPortalUserList.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 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-ranger/blob/413fcb68/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 deleted file mode 100644 index 04f0d24..0000000 --- a/security-admin/src/main/java/com/xasecure/view/VXRepository.java +++ /dev/null @@ -1,219 +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; - - -/** - * Repository - */ - -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 setIsActive(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 getIsActive() { - 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; - } -}
