com.atlassian.jira.mock.issue.fields.screen.issuetype
Class MockIssueTypeScreenScheme
java.lang.Object
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
MockIssueTypeScreenScheme
public MockIssueTypeScreenScheme(Long id,
String name,
String description)
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.