public class RangerPolicy extends RangerBaseModelObject implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
RangerPolicy.RangerDataMaskPolicyItem
RangerDataMaskPolicyItem class.
|
static class |
RangerPolicy.RangerPolicyItem
RangerPolicyItem class contains ranger policy items like access and permissions.
|
static class |
RangerPolicy.RangerPolicyItemAccess
RangerPolicyItemAccess class.
|
static class |
RangerPolicy.RangerPolicyItemCondition
RangerPolicyItemCondition class to store policy conditions.
|
static class |
RangerPolicy.RangerPolicyItemDataMaskInfo
RangerPolicyItemDataMaskInfo store policy having datamasking.
|
static class |
RangerPolicy.RangerPolicyItemRowFilterInfo
Ranger policyItem Row-filter info class.
|
static class |
RangerPolicy.RangerPolicyResource
RangerPolicyResource class to store the resource path values.
|
static class |
RangerPolicy.RangerRowFilterPolicyItem
RangerRowFilterPolicyItem class.
|
Modifier and Type | Field and Description |
---|---|
static String |
MASK_TYPE_CUSTOM |
static String |
MASK_TYPE_NONE |
static String |
MASK_TYPE_NULL |
static int |
POLICY_TYPE_ACCESS |
static int |
POLICY_TYPE_DATAMASK |
static int |
POLICY_TYPE_ROWFILTER |
static int[] |
POLICY_TYPES |
Constructor and Description |
---|
RangerPolicy()
Ranger Policy default constructor.
|
RangerPolicy(String service,
String name,
Integer policyType,
String description,
Map<String,RangerPolicy.RangerPolicyResource> resources,
List<RangerPolicy.RangerPolicyItem> policyItems,
String resourceSignature) |
getCreatedBy, getCreateTime, getGuid, getId, getIsEnabled, getUpdatedBy, getUpdateTime, getVersion, setCreatedBy, setCreateTime, setGuid, setId, setIsEnabled, setUpdatedBy, setUpdateTime, setVersion, updateFrom
public static final int POLICY_TYPE_ACCESS
public static final int POLICY_TYPE_DATAMASK
public static final int POLICY_TYPE_ROWFILTER
public static final int[] POLICY_TYPES
public static final String MASK_TYPE_NULL
public static final String MASK_TYPE_NONE
public static final String MASK_TYPE_CUSTOM
public RangerPolicy()
public RangerPolicy(String service, String name, Integer policyType, String description, Map<String,RangerPolicy.RangerPolicyResource> resources, List<RangerPolicy.RangerPolicyItem> policyItems, String resourceSignature)
service
- name
- policyType
- description
- resources
- policyItems
- resourceSignature
- TODOpublic void updateFrom(RangerPolicy other)
other
- public String getService()
public void setService(String service)
service
- the type to setpublic String getName()
public void setName(String name)
name
- the name to setpublic Integer getPolicyType()
public void setPolicyType(Integer policyType)
policyType
- the policyType to setpublic String getDescription()
public void setDescription(String description)
description
- the description to setpublic String getResourceSignature()
public void setResourceSignature(String resourceSignature)
resourceSignature
- the resourceSignature to setpublic Boolean getIsAuditEnabled()
public void setIsAuditEnabled(Boolean isAuditEnabled)
isAuditEnabled
- the isEnabled to setpublic Map<String,RangerPolicy.RangerPolicyResource> getResources()
public void setResources(Map<String,RangerPolicy.RangerPolicyResource> resources)
resources
- the resources to setpublic List<RangerPolicy.RangerPolicyItem> getPolicyItems()
public void setPolicyItems(List<RangerPolicy.RangerPolicyItem> policyItems)
policyItems
- the policyItems to setpublic List<RangerPolicy.RangerPolicyItem> getDenyPolicyItems()
public void setDenyPolicyItems(List<RangerPolicy.RangerPolicyItem> denyPolicyItems)
denyPolicyItems
- the denyPolicyItems to setpublic List<RangerPolicy.RangerPolicyItem> getAllowExceptions()
public void setAllowExceptions(List<RangerPolicy.RangerPolicyItem> allowExceptions)
allowExceptions
- the allowExceptions to setpublic List<RangerPolicy.RangerPolicyItem> getDenyExceptions()
public void setDenyExceptions(List<RangerPolicy.RangerPolicyItem> denyExceptions)
denyExceptions
- the denyExceptions to setpublic List<RangerPolicy.RangerDataMaskPolicyItem> getDataMaskPolicyItems()
public void setDataMaskPolicyItems(List<RangerPolicy.RangerDataMaskPolicyItem> dataMaskPolicyItems)
public List<RangerPolicy.RangerRowFilterPolicyItem> getRowFilterPolicyItems()
public void setRowFilterPolicyItems(List<RangerPolicy.RangerRowFilterPolicyItem> rowFilterPolicyItems)
public String toString()
toString
in class RangerBaseModelObject
public StringBuilder toString(StringBuilder sb)
toString
in class RangerBaseModelObject
Copyright © 2022 The Apache Software Foundation. All rights reserved.