@Entity public class Policy extends Object
| Constructor and Description |
|---|
Policy()
Required for JPA.
|
Policy(PolicyId id,
String policy)
Deprecated.
|
Policy(PolicyId id,
String policy,
String description)
Deprecated.
|
Policy(String policy)
Instantiates a new policy.
|
Policy(String policy,
String description)
Instantiates a new policy.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addMeta(String key,
String value)
Adds the meta.
|
boolean |
equals(Object o) |
void |
extractIdAndDescription() |
String |
getDescription()
Gets the description.
|
PolicyId |
getId()
Gets the id.
|
InvalidPolicyException |
getInvalidPolicyException() |
Map<String,String> |
getMetaData()
Gets the meta data.
|
String |
getPolicy()
Gets the policy.
|
PolicyType |
getType()
Gets the type.
|
int |
hashCode() |
boolean |
isDeployed()
Checks if is deployed.
|
boolean |
isScopeValid() |
boolean |
isXmlValid() |
void |
setDeployed(boolean status)
Sets the deployed.
|
void |
setDescription(String description)
Sets the description.
|
void |
setId(PolicyId id)
Sets the id.
|
void |
setMetaData(Map<String,String> metaData)
Sets the meta data.
|
void |
setPolicy(String policy)
Sets the policy.
|
boolean |
validateXML() |
public Policy()
@Deprecated public Policy(PolicyId id, String policy)
id - the idpolicy - the policy@Deprecated public Policy(PolicyId id, String policy, String description)
id - the idpolicy - the policydescription - the descriptionpublic Policy(String policy)
policy - the policyInvalidPolicyExceptionpublic Policy(String policy, String description)
policy - the policydescription - the descriptionInvalidPolicyExceptionpublic boolean isScopeValid()
public InvalidPolicyException getInvalidPolicyException()
public boolean isXmlValid()
public void extractIdAndDescription()
public boolean validateXML()
public void addMeta(String key, String value)
key - the keyvalue - the valuepublic String getDescription()
public PolicyId getId()
public String getPolicy()
public PolicyType getType()
public boolean isDeployed()
public void setDeployed(boolean status)
status - the status to setpublic void setDescription(String description)
description - the descriptionpublic void setId(PolicyId id)
id - the new idpublic void setMetaData(Map<String,String> metaData)
metaData - the meta datapublic void setPolicy(String policy)
policy - the new policyCopyright © 2018. All rights reserved.