@Entity(name="RelationshipRuleSet") public class RelationshipRuleSetImpl extends DomainObjectSupport implements RelationshipRuleSet
MAP_DOMAIN_OBJECT_TO_ID_FUNCTION, ORGANIZATION_COLUMN_NAME
Constructor and Description |
---|
RelationshipRuleSetImpl() |
Modifier and Type | Method and Description |
---|---|
Integer |
getId() |
Boolean |
getIsExclusive() |
String |
getName() |
Integer |
getOrganizationId() |
RelationshipRule |
getRule(DocumentType fromDocType,
DocumentType toDocType)
Find a specific rule in the rule set per the given parameters.
|
RelationshipRule |
getRule(DocumentType fromDocType,
DocumentType toDocType,
RelationshipType relationshipType)
Find a specific rule in the rule set per the given parameters.
|
List<RelationshipRule> |
getRules() |
List<RelationshipRule> |
getRules(DocumentType fromDocType,
DocumentType toDocType)
Find rules in the rule set per the given parameters.
|
String |
getXmlToString() |
boolean |
hasRule(DocumentType docType)
Determine if any rules configured for the given parameter.
|
void |
setId(Integer id) |
void |
setIsExclusive(Boolean isExclusive) |
void |
setName(String name) |
void |
setOrganizationId(Integer organizationId) |
void |
setRules(List<RelationshipRule> rules) |
getCreatedBy, getCreatedDate, getModifiedBy, getModifiedDate, setCreatedBy, setCreatedDate, setModifiedBy, setModifiedDate
equals, hashCode, isNewObject, obtainAclObjectIdentity
public Integer getId()
getId
in interface DomainObjectBase
public void setId(Integer id)
setId
in interface DomainObjectBase
public String getName()
getName
in interface RelationshipRuleSet
public void setName(String name)
setName
in interface RelationshipRuleSet
public Boolean getIsExclusive()
getIsExclusive
in interface RelationshipRuleSet
public void setIsExclusive(Boolean isExclusive)
setIsExclusive
in interface RelationshipRuleSet
public List<RelationshipRule> getRules()
getRules
in interface RelationshipRuleSet
public void setRules(List<RelationshipRule> rules)
setRules
in interface RelationshipRuleSet
public RelationshipRule getRule(DocumentType fromDocType, DocumentType toDocType, RelationshipType relationshipType)
RelationshipRuleSet
getRule
in interface RelationshipRuleSet
null
if there is no rule in the
rule set that matches the given parameterspublic List<RelationshipRule> getRules(DocumentType fromDocType, DocumentType toDocType)
RelationshipRuleSet
getRules
in interface RelationshipRuleSet
null
public boolean hasRule(DocumentType docType)
RelationshipRuleSet
hasRule
in interface RelationshipRuleSet
public RelationshipRule getRule(DocumentType fromDocType, DocumentType toDocType)
RelationshipRuleSet
getRule
in interface RelationshipRuleSet
null
if there is no rule in the
rule set that matches the given parameters; if there's multiple rules matching a random first one is returned; at
the time of writing this was not possible, and thus a singular return type was more convenient, but in the future
different relationship types may be supported for the given parameterspublic Integer getOrganizationId()
getOrganizationId
in interface DomainObjectBase
getOrganizationId
in interface OrganizationAware
public void setOrganizationId(Integer organizationId)
setOrganizationId
in interface DomainObjectBase
public String getXmlToString()
getXmlToString
in interface DomainObject
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.