com.atlassian.jira.appconsistency.integrity.check
Class AbstractEntityRelation<T extends Amendment>

java.lang.Object
  extended by com.atlassian.jira.appconsistency.integrity.check.CheckImpl<T>
      extended by com.atlassian.jira.appconsistency.integrity.check.EntityCheckImpl<T>
          extended by com.atlassian.jira.appconsistency.integrity.check.AbstractEntityRelation<T>
All Implemented Interfaces:
Check<T>, EntityCheck<T>
Direct Known Subclasses:
PrimaryEntityRelationCreate, PrimaryEntityRelationDelete

public abstract class AbstractEntityRelation<T extends Amendment>
extends EntityCheckImpl<T>


Field Summary
 
Fields inherited from class com.atlassian.jira.appconsistency.integrity.check.CheckImpl
id, ofBizDelegator
 
Constructor Summary
AbstractEntityRelation(OfBizDelegator ofBizDelegator, int id, String relationType, String relationName)
           
 
Method Summary
protected  String getRelationName()
           
protected  String getRelationType()
           
 List<T> preview()
           
protected abstract  T previewAmendment(org.ofbiz.core.entity.GenericValue entity)
           
 String toString()
           
 
Methods inherited from class com.atlassian.jira.appconsistency.integrity.check.EntityCheckImpl
getEntities, getEntityIntegrityCheck, getEntityName, getIntegrityCheck, getUnavailableMessage, setEntityIntegrityCheck, setIntegrityCheck
 
Methods inherited from class com.atlassian.jira.appconsistency.integrity.check.CheckImpl
getI18NBean, getId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.appconsistency.integrity.check.Check
correct, getDescription, getId, isAvailable
 

Constructor Detail

AbstractEntityRelation

public AbstractEntityRelation(OfBizDelegator ofBizDelegator,
                              int id,
                              String relationType,
                              String relationName)
Method Detail

getRelationType

protected String getRelationType()

getRelationName

protected String getRelationName()

preview

public List<T> preview()
                                  throws IntegrityException
Throws:
IntegrityException

previewAmendment

protected abstract T previewAmendment(org.ofbiz.core.entity.GenericValue entity)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2014 Atlassian. All Rights Reserved.