Package com.atlassian.jira.scheme
Class SchemeEntity
java.lang.Object
com.atlassian.jira.scheme.SchemeEntity
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionSchemeEntity(Long id, String type, String parameter, Object entityTypeId, Object templateId, Long schemeId) Create a new SchemeEntity objectSchemeEntity(String type, Object entityTypeId) Create a new SchemeEntity objectSchemeEntity(String type, String parameter, Object entityTypeId) Create a new SchemeEntity objectSchemeEntity(String type, String parameter, Object entityTypeId, Object templateId) -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetId()getType()inthashCode()voidsetEntityTypeId(Object entityTypeId) voidvoidsetParameter(String parameter) voidsetSchemeId(Long schemeId) voidsetTemplateId(Object templateId) voidtoString()
-
Constructor Details
-
SchemeEntity
Create a new SchemeEntity object- Parameters:
type- The entity type. This could be "group", "reporter" etcentityTypeId- The id of the entity. For Notification and Issue Security schemes this should be a long. For Permission schemes this should be a ProjectPermissionKey or a GlobalPermissionKey.
-
SchemeEntity
Create a new SchemeEntity object- Parameters:
type- The entity type. This could be "group", "reporter" etcparameter- The parameter value of the entity. If the type is group this value will be the group nameentityTypeId- The id of the entity. For Notification and Issue Security schemes this should be a long. For Permission schemes this should be a ProjectPermissionKey or a GlobalPermissionKey.
-
SchemeEntity
-
SchemeEntity
public SchemeEntity(Long id, String type, String parameter, Object entityTypeId, Object templateId, Long schemeId) Create a new SchemeEntity objectUsed 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 objecttype- the entity type. This could be "group", "reporter" etcparameter- the parameter value of the entity. If the type is group this value will be the group nameentityTypeId- the id of the entity. For Notification and Issue Security schemes this should be a long. For Permission schemes this should be a ProjectPermissionKey or a GlobalPermissionKey.templateId- the id of the template associated with this entity. Only used for Notification entities at presentschemeId- the id of the scheme that this entity is a part of.
-
-
Method Details
-
getType
-
setType
-
getParameter
-
setParameter
-
getEntityTypeId
-
setEntityTypeId
-
getTemplateId
-
setTemplateId
-
getId
-
setId
-
getSchemeId
-
setSchemeId
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
- Specified by:
compareToin interfaceComparable
-