|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.scheme.AbstractSchemeManager
com.atlassian.jira.notification.DefaultNotificationSchemeManager
public class DefaultNotificationSchemeManager
Field Summary |
---|
Fields inherited from class com.atlassian.jira.scheme.AbstractSchemeManager |
---|
projectManager, schemeFactory |
Fields inherited from interface com.atlassian.jira.scheme.SchemeManager |
---|
PROJECT_ASSOCIATION |
Constructor Summary | |
---|---|
DefaultNotificationSchemeManager(ProjectManager projectManager,
PermissionTypeManager permissionTypeManager,
PermissionContextFactory permissionContextFactory,
OfBizDelegator delegator,
SchemeFactory schemeFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
NotificationTypeManager notificationTypeManager,
AssociationManager associationManager,
GroupManager groupManager)
|
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 |
createDefaultScheme()
Creates a default scheme, with an id of 0 |
org.ofbiz.core.entity.GenericValue |
createSchemeEntity(org.ofbiz.core.entity.GenericValue scheme,
SchemeEntity schemeEntity)
|
String |
getDefaultDescriptionKey()
|
String |
getDefaultNameKey()
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
Long eventTypeId)
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
Long eventTypeId,
String parameter)
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
String entityTypeId)
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
String type,
Long entityTypeId)
|
String |
getEntityName()
|
List<SchemeEntity> |
getNotificationSchemeEntities(Project project,
long entityTypeId)
Get the notification scheme entities for this project and entity type. |
org.ofbiz.core.entity.GenericValue |
getNotificationSchemeForProject(org.ofbiz.core.entity.GenericValue projectGV)
Get the notification scheme for this project. |
Set<NotificationRecipient> |
getRecipients(IssueEvent event)
Given an issue event this method returns a set of NotificationRecipient s who will receive an e-mail
notification |
Set<NotificationRecipient> |
getRecipients(IssueEvent event,
SchemeEntity notification)
Retrieve the set of recipients for the event using the specified notification entity. |
String |
getSchemeDesc()
|
String |
getSchemeEntityName()
|
Collection<org.ofbiz.core.entity.GenericValue> |
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<Long,String> |
getSchemesMapByConditions(Map<String,?> 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)
Checks anonymous permission of the given permission type for the given entity. |
boolean |
hasSchemeAuthority(Long entityType,
org.ofbiz.core.entity.GenericValue entity,
com.atlassian.crowd.embedded.api.User user,
boolean issueCreation)
Checks the given user's permission of the given permission type for the given entity. |
boolean |
isHasMailServer()
|
void |
onClearCache(ClearCacheEvent event)
|
void |
removeSchemeEntitiesForField(String customFieldId)
|
void |
start()
This method wil be called after the plugin system is fully initialised and all components added to the dependency injection framework. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultNotificationSchemeManager(ProjectManager projectManager, PermissionTypeManager permissionTypeManager, PermissionContextFactory permissionContextFactory, OfBizDelegator delegator, SchemeFactory schemeFactory, com.atlassian.event.api.EventPublisher eventPublisher, NotificationTypeManager notificationTypeManager, AssociationManager associationManager, GroupManager groupManager)
Method Detail |
---|
public void start() throws Exception
Startable
start
in interface Startable
Exception
- Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
onClearCache
in class AbstractSchemeManager
public String getSchemeEntityName()
getSchemeEntityName
in class AbstractSchemeManager
public String getEntityName()
getEntityName
in class AbstractSchemeManager
public String getSchemeDesc()
getSchemeDesc
in class AbstractSchemeManager
public String getDefaultNameKey()
getDefaultNameKey
in class AbstractSchemeManager
public String getDefaultDescriptionKey()
getDefaultDescriptionKey
in class AbstractSchemeManager
public org.ofbiz.core.entity.GenericValue createDefaultScheme() throws org.ofbiz.core.entity.GenericEntityException
SchemeManager
createDefaultScheme
in interface SchemeManager
createDefaultScheme
in class AbstractSchemeManager
org.ofbiz.core.entity.GenericEntityException
- If a DB error occurspublic void removeSchemeEntitiesForField(String customFieldId) throws RemoveException
removeSchemeEntitiesForField
in interface NotificationSchemeManager
RemoveException
public List<SchemeEntity> getNotificationSchemeEntities(Project project, long entityTypeId) throws org.ofbiz.core.entity.GenericEntityException
NotificationSchemeManager
getNotificationSchemeEntities
in interface NotificationSchemeManager
project
- the projectentityTypeId
- the type of entity
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue getNotificationSchemeForProject(org.ofbiz.core.entity.GenericValue projectGV)
getNotificationSchemeForProject
in interface NotificationSchemeManager
projectGV
- the project
public Map<Long,String> getSchemesMapByConditions(Map<String,?> conditions)
getSchemesMapByConditions
in interface NotificationSchemeManager
conditions
- Map of conditions on which to limit the search
public Collection<org.ofbiz.core.entity.GenericValue> getSchemesContainingEntity(String type, String parameter)
NotificationSchemeManager
getSchemesContainingEntity
in interface NotificationSchemeManager
type
- is the entity typeparameter
- is the scheme entries parameter value
public boolean isHasMailServer() throws com.atlassian.mail.MailException
isHasMailServer
in interface NotificationSchemeManager
com.atlassian.mail.MailException
public org.ofbiz.core.entity.GenericValue createSchemeEntity(org.ofbiz.core.entity.GenericValue scheme, SchemeEntity schemeEntity) throws org.ofbiz.core.entity.GenericEntityException
createSchemeEntity
in interface SchemeManager
org.ofbiz.core.entity.GenericEntityException
public Set<NotificationRecipient> getRecipients(IssueEvent event, SchemeEntity notification) throws org.ofbiz.core.entity.GenericEntityException
getRecipients
in interface NotificationSchemeManager
event
- issue eventnotification
- scheme entity
org.ofbiz.core.entity.GenericEntityException
public Set<NotificationRecipient> getRecipients(IssueEvent event)
NotificationSchemeManager
NotificationRecipient
s who will receive an e-mail
notification
getRecipients
in interface NotificationSchemeManager
event
- The issue event that triggered the notification
public boolean hasEntities(org.ofbiz.core.entity.GenericValue scheme, Long eventTypeId, String type, String parameter, Long templateId) throws org.ofbiz.core.entity.GenericEntityException
hasEntities
in interface NotificationSchemeManager
org.ofbiz.core.entity.GenericEntityException
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
copySchemeEntity
in class AbstractSchemeManager
org.ofbiz.core.entity.GenericEntityException
public List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, String entityTypeId) throws org.ofbiz.core.entity.GenericEntityException
getEntities
in interface SchemeManager
org.ofbiz.core.entity.GenericEntityException
public List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, Long eventTypeId) throws org.ofbiz.core.entity.GenericEntityException
getEntities
in interface SchemeManager
org.ofbiz.core.entity.GenericEntityException
public List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, Long eventTypeId, String parameter) throws org.ofbiz.core.entity.GenericEntityException
getEntities
in interface SchemeManager
org.ofbiz.core.entity.GenericEntityException
public List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, String type, Long entityTypeId) throws org.ofbiz.core.entity.GenericEntityException
getEntities
in interface SchemeManager
org.ofbiz.core.entity.GenericEntityException
public boolean hasSchemeAuthority(Long entityType, org.ofbiz.core.entity.GenericValue entity)
SchemeManager
hasSchemeAuthority
in interface SchemeManager
entityType
- permission type.entity
- the entity to which permission is being checked.
public boolean hasSchemeAuthority(Long entityType, org.ofbiz.core.entity.GenericValue entity, com.atlassian.crowd.embedded.api.User user, boolean issueCreation)
SchemeManager
hasSchemeAuthority
in interface SchemeManager
entityType
- permission type.entity
- the entity to which permission is being checked.user
- the user.issueCreation
- whether the permission is for creating an issue.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |