com.atlassian.jira.scheme
Class SchemeEntity

java.lang.Object
  extended by com.atlassian.jira.scheme.SchemeEntity
All Implemented Interfaces:
Comparable

public class SchemeEntity
extends Object
implements Comparable

This objected is used to hold the values of an entity which is part of a scheme. This could be a permission, notification etc.


Constructor Summary
SchemeEntity(Long id, String type, String parameter, Object entityTypeId, Object templateId, Long schemeId)
          Create a new SchemeEntity object
SchemeEntity(String type, Object entityTypeId)
          Create a new SchemeEntity object
SchemeEntity(String type, String parameter, Object entityTypeId)
          Create a new SchemeEntity object
SchemeEntity(String type, String parameter, Object entityTypeId, Object templateId)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 Object getEntityTypeId()
           
 Long getId()
           
 String getParameter()
           
 Long getSchemeId()
           
 Object getTemplateId()
           
 String getType()
           
 int hashCode()
           
 void setEntityTypeId(Object entityTypeId)
           
 void setId(Long id)
           
 void setParameter(String parameter)
           
 void setSchemeId(Long schemeId)
           
 void setTemplateId(Object templateId)
           
 void setType(String type)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SchemeEntity

public SchemeEntity(String type,
                    Object entityTypeId)
Create a new SchemeEntity object

Parameters:
type - The entity type. This could be "group", "reporter" etc
entityTypeId - The id of the entity. For Permission, Notification and Issue Security schemes this should be a long.

SchemeEntity

public SchemeEntity(String type,
                    String parameter,
                    Object entityTypeId)
Create a new SchemeEntity object

Parameters:
type - The entity type. This could be "group", "reporter" etc
parameter - The parameter value of the entity. If the type is group this value will be the group name
entityTypeId - The id of the entity. For Permission, Notification and Issue Security schemes this should be a long.

SchemeEntity

public SchemeEntity(String type,
                    String parameter,
                    Object entityTypeId,
                    Object templateId)

SchemeEntity

public SchemeEntity(Long id,
                    String type,
                    String parameter,
                    Object entityTypeId,
                    Object templateId,
                    Long schemeId)
Create a new SchemeEntity object

Used when constructing from a GenericValue object - with the ability to specify the GV id in the scheme object and the template ID associated with this entity. Only used in notifications at present.

Parameters:
id - the id of this entity - obtained from the GenericValue object
type - the entity type. This could be "group", "reporter" etc
parameter - the parameter value of the entity. If the type is group this value will be the group name
entityTypeId - the id of the entity. For Permission, Notification and Issue Security schemes this should be a long.
templateId - the id of the template associated with this entity. Only used for Notification entities at present
schemeId - the id of the scheme that this entity is a part of.
Method Detail

getType

public String getType()

setType

public void setType(String type)

getParameter

public String getParameter()

setParameter

public void setParameter(String parameter)

getEntityTypeId

public Object getEntityTypeId()

setEntityTypeId

public void setEntityTypeId(Object entityTypeId)

getTemplateId

public Object getTemplateId()

setTemplateId

public void setTemplateId(Object templateId)

getId

public Long getId()

setId

public void setId(Long id)

getSchemeId

public Long getSchemeId()

setSchemeId

public void setSchemeId(Long schemeId)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


Copyright © 2002-2015 Atlassian. All Rights Reserved.