com.atlassian.jira.notification
Class DefaultNotificationSchemeManager
java.lang.Object
com.atlassian.jira.scheme.AbstractSchemeManager
com.atlassian.jira.notification.DefaultNotificationSchemeManager
- All Implemented Interfaces:
- NotificationSchemeManager, SchemeManager
public class DefaultNotificationSchemeManager
- extends AbstractSchemeManager
- implements NotificationSchemeManager
Method Summary |
org.ofbiz.core.entity.GenericValue |
copySchemeEntity(org.ofbiz.core.entity.GenericValue scheme,
org.ofbiz.core.entity.GenericValue entity)
|
org.ofbiz.core.entity.GenericValue |
createSchemeEntity(org.ofbiz.core.entity.GenericValue scheme,
SchemeEntity schemeEntity)
|
String |
getAssociationType()
|
List |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
Long eventTypeId)
|
List |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
Long eventTypeId,
String parameter)
|
List |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
String entityTypeId)
|
List |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
String type,
Long entityTypeId)
|
String |
getEntityName()
|
org.ofbiz.core.entity.GenericValue |
getNotificationSchemeForProject(org.ofbiz.core.entity.GenericValue projectGV)
Get the notification scheme for this project. |
Set |
getRecipients(IssueEvent event,
SchemeEntity notification)
Retrieve the set of recipients for the event using the specified notification entity. |
String |
getSchemeDesc()
|
String |
getSchemeEntityName()
|
Collection |
getSchemesContainingEntity(String type,
String parameter)
This is a method that is meant to quickly get you all the schemes that contain an entity of the
specified type and parameter. |
Map |
getSchemesMapByConditions(Map conditions)
Retrieve a map of scheme ids to scheme names that match the specified conditions. |
boolean |
hasEntities(org.ofbiz.core.entity.GenericValue scheme,
Long eventTypeId,
String type,
String parameter,
Long templateId)
|
boolean |
hasSchemeAuthority(Long entityType,
org.ofbiz.core.entity.GenericValue entity)
|
boolean |
hasSchemeAuthority(Long entityType,
org.ofbiz.core.entity.GenericValue entity,
User user,
boolean issueCreation)
|
boolean |
isHasMailServer()
|
void |
removeSchemeEntitiesForField(String customFieldId)
|
Methods inherited from class com.atlassian.jira.scheme.AbstractSchemeManager |
addDefaultSchemeToProject, addSchemeToProject, addSchemeToProject, copyScheme, createDefaultScheme, createScheme, createSchemeAndEntities, deleteEntity, deleteScheme, flushProjectSchemes, getAssociatedSchemes, getDefaultScheme, getEntities, getEntities, getEntity, getGroups, getProjectAndValidate, getProjects, getProjects, getScheme, getScheme, getSchemes, getSchemes, getUnassociatedSchemes, getUsers, getUsers, removeEntities, removeEntities, removeSchemesFromProject, removeSchemesFromProject, schemeExists, updateScheme, updateScheme |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.jira.scheme.SchemeManager |
addDefaultSchemeToProject, addSchemeToProject, addSchemeToProject, copyScheme, createDefaultScheme, createScheme, createSchemeAndEntities, deleteEntity, deleteScheme, getAssociatedSchemes, getDefaultScheme, getEntities, getEntities, getEntity, getGroups, getProjects, getProjects, getScheme, getScheme, getSchemes, getSchemes, getUnassociatedSchemes, getUsers, getUsers, removeEntities, removeEntities, removeSchemesFromProject, removeSchemesFromProject, schemeExists, updateScheme, updateScheme |
DefaultNotificationSchemeManager
public DefaultNotificationSchemeManager(ProjectManager projectManager,
PermissionTypeManager permissionTypeManager,
PermissionContextFactory permissionContextFactory,
OfBizDelegator delegator,
SchemeFactory schemeFactory)
getSchemeEntityName
public String getSchemeEntityName()
- Specified by:
getSchemeEntityName
in class AbstractSchemeManager
getEntityName
public String getEntityName()
- Specified by:
getEntityName
in class AbstractSchemeManager
getAssociationType
public String getAssociationType()
- Specified by:
getAssociationType
in class AbstractSchemeManager
getSchemeDesc
public String getSchemeDesc()
- Specified by:
getSchemeDesc
in class AbstractSchemeManager
removeSchemeEntitiesForField
public void removeSchemeEntitiesForField(String customFieldId)
throws RemoveException
- Specified by:
removeSchemeEntitiesForField
in interface NotificationSchemeManager
- Throws:
RemoveException
getNotificationSchemeForProject
public org.ofbiz.core.entity.GenericValue getNotificationSchemeForProject(org.ofbiz.core.entity.GenericValue projectGV)
- Get the notification scheme for this project. There should be only one.
Returns null if there problems (e.g. more than one scheme association) encountered.
- Specified by:
getNotificationSchemeForProject
in interface NotificationSchemeManager
- Parameters:
projectGV
-
- Returns:
- notificationScheme the GenericValue object representing a notification scheme
getSchemesMapByConditions
public Map getSchemesMapByConditions(Map conditions)
- Retrieve a map of scheme ids to scheme names that match the specified conditions.
- Specified by:
getSchemesMapByConditions
in interface NotificationSchemeManager
- Parameters:
conditions
- Map of conditions on which to limit the search
- Returns:
- Map scheme ids -> scheme names
getSchemesContainingEntity
public Collection getSchemesContainingEntity(String type,
String parameter)
- Description copied from interface:
NotificationSchemeManager
- This is a method that is meant to quickly get you all the schemes that contain an entity of the
specified type and parameter.
- Specified by:
getSchemesContainingEntity
in interface NotificationSchemeManager
- Parameters:
type
- is the entity typeparameter
- is the scheme entries parameter value
- Returns:
- Collection of GenericValues that represents a scheme
isHasMailServer
public boolean isHasMailServer()
throws com.atlassian.mail.MailException
- Specified by:
isHasMailServer
in interface NotificationSchemeManager
- Throws:
com.atlassian.mail.MailException
createSchemeEntity
public org.ofbiz.core.entity.GenericValue createSchemeEntity(org.ofbiz.core.entity.GenericValue scheme,
SchemeEntity schemeEntity)
throws org.ofbiz.core.entity.GenericEntityException
- Specified by:
createSchemeEntity
in interface SchemeManager
- Throws:
org.ofbiz.core.entity.GenericEntityException
getRecipients
public Set getRecipients(IssueEvent event,
SchemeEntity notification)
throws org.ofbiz.core.entity.GenericEntityException
- Retrieve the set of recipients for the event using the specified notification entity.
- Specified by:
getRecipients
in interface NotificationSchemeManager
- Parameters:
event
- notification
-
- Returns:
-
- Throws:
org.ofbiz.core.entity.GenericEntityException
hasEntities
public boolean hasEntities(org.ofbiz.core.entity.GenericValue scheme,
Long eventTypeId,
String type,
String parameter,
Long templateId)
throws org.ofbiz.core.entity.GenericEntityException
- Specified by:
hasEntities
in interface NotificationSchemeManager
- Throws:
org.ofbiz.core.entity.GenericEntityException
copySchemeEntity
public org.ofbiz.core.entity.GenericValue copySchemeEntity(org.ofbiz.core.entity.GenericValue scheme,
org.ofbiz.core.entity.GenericValue entity)
throws org.ofbiz.core.entity.GenericEntityException
- Specified by:
copySchemeEntity
in class AbstractSchemeManager
- Throws:
org.ofbiz.core.entity.GenericEntityException
getEntities
public List getEntities(org.ofbiz.core.entity.GenericValue scheme,
String entityTypeId)
throws org.ofbiz.core.entity.GenericEntityException
- Specified by:
getEntities
in interface SchemeManager
- Throws:
org.ofbiz.core.entity.GenericEntityException
getEntities
public List getEntities(org.ofbiz.core.entity.GenericValue scheme,
Long eventTypeId)
throws org.ofbiz.core.entity.GenericEntityException
- Specified by:
getEntities
in interface SchemeManager
- Throws:
org.ofbiz.core.entity.GenericEntityException
getEntities
public List getEntities(org.ofbiz.core.entity.GenericValue scheme,
Long eventTypeId,
String parameter)
throws org.ofbiz.core.entity.GenericEntityException
- Specified by:
getEntities
in interface SchemeManager
- Throws:
org.ofbiz.core.entity.GenericEntityException
getEntities
public List getEntities(org.ofbiz.core.entity.GenericValue scheme,
String type,
Long entityTypeId)
throws org.ofbiz.core.entity.GenericEntityException
- Specified by:
getEntities
in interface SchemeManager
- Throws:
org.ofbiz.core.entity.GenericEntityException
hasSchemeAuthority
public boolean hasSchemeAuthority(Long entityType,
org.ofbiz.core.entity.GenericValue entity)
- Specified by:
hasSchemeAuthority
in interface SchemeManager
hasSchemeAuthority
public boolean hasSchemeAuthority(Long entityType,
org.ofbiz.core.entity.GenericValue entity,
User user,
boolean issueCreation)
- Specified by:
hasSchemeAuthority
in interface SchemeManager
Copyright © 2002-2009 Atlassian. All Rights Reserved.