com.atlassian.jira.mock.issue.fields.screen.issuetype
Class MockIssueTypeScreenScheme

java.lang.Object
  extended by com.atlassian.jira.mock.issue.fields.screen.issuetype.MockIssueTypeScreenScheme
All Implemented Interfaces:
IssueTypeScreenScheme

public class MockIssueTypeScreenScheme
extends Object
implements IssueTypeScreenScheme

Mock for IssueTypeScreenScheme that only compares equality based on id and name. Throws UnsupportedOperationException for store() and remove().

Since:
v4.4

Field Summary
 
Fields inherited from interface com.atlassian.jira.issue.fields.screen.issuetype.IssueTypeScreenScheme
DEFAULT_SCHEME_ID
 
Constructor Summary
MockIssueTypeScreenScheme(Long id, String name, String description)
           
 
Method Summary
 void addEntity(IssueTypeScreenSchemeEntity issueTypeScreenSchemeEntity)
           
 boolean containsEntity(String issueTypeId)
           
 boolean equals(Object o)
           
 String getDescription()
           
 Collection getEntities()
           
 IssueTypeScreenSchemeEntity getEntity(String issueTypeId)
           
 org.ofbiz.core.entity.GenericValue getGenericValue()
           
 Long getId()
           
 String getName()
           
 Collection getProjects()
           
 int hashCode()
           
 boolean isDefault()
           
 void remove()
           
 void removeEntity(String issueTypeId)
           
 MockIssueTypeScreenScheme setDefault(boolean isDefaultEntity)
           
 void setDescription(String description)
           
 MockIssueTypeScreenScheme setEntities(Map<String,IssueTypeScreenSchemeEntity> entities)
           
 void setGenericValue(org.ofbiz.core.entity.GenericValue genericValue)
           
 void setId(Long id)
           
 void setName(String name)
           
 MockIssueTypeScreenScheme setProjects(Collection<org.ofbiz.core.entity.GenericValue> projects)
           
 void store()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockIssueTypeScreenScheme

public MockIssueTypeScreenScheme(Long id,
                                 String name,
                                 String description)
Method Detail

getId

public Long getId()
Specified by:
getId in interface IssueTypeScreenScheme

setId

public void setId(Long id)
Specified by:
setId in interface IssueTypeScreenScheme

getName

public String getName()
Specified by:
getName in interface IssueTypeScreenScheme

setName

public void setName(String name)
Specified by:
setName in interface IssueTypeScreenScheme

getDescription

public String getDescription()
Specified by:
getDescription in interface IssueTypeScreenScheme

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface IssueTypeScreenScheme

getGenericValue

public org.ofbiz.core.entity.GenericValue getGenericValue()
Specified by:
getGenericValue in interface IssueTypeScreenScheme

setGenericValue

public void setGenericValue(org.ofbiz.core.entity.GenericValue genericValue)
Specified by:
setGenericValue in interface IssueTypeScreenScheme

store

public void store()
Specified by:
store in interface IssueTypeScreenScheme

remove

public void remove()
Specified by:
remove in interface IssueTypeScreenScheme

getEntities

public Collection getEntities()
Specified by:
getEntities in interface IssueTypeScreenScheme

getEntity

public IssueTypeScreenSchemeEntity getEntity(String issueTypeId)
Specified by:
getEntity in interface IssueTypeScreenScheme

addEntity

public void addEntity(IssueTypeScreenSchemeEntity issueTypeScreenSchemeEntity)
Specified by:
addEntity in interface IssueTypeScreenScheme

setEntities

public MockIssueTypeScreenScheme setEntities(Map<String,IssueTypeScreenSchemeEntity> entities)

removeEntity

public void removeEntity(String issueTypeId)
Specified by:
removeEntity in interface IssueTypeScreenScheme

containsEntity

public boolean containsEntity(String issueTypeId)
Specified by:
containsEntity in interface IssueTypeScreenScheme

getProjects

public Collection getProjects()
Specified by:
getProjects in interface IssueTypeScreenScheme

setProjects

public MockIssueTypeScreenScheme setProjects(Collection<org.ofbiz.core.entity.GenericValue> projects)

isDefault

public boolean isDefault()
Specified by:
isDefault in interface IssueTypeScreenScheme

setDefault

public MockIssueTypeScreenScheme setDefault(boolean isDefaultEntity)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2012 Atlassian. All Rights Reserved.