|
||||||||||
| 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,
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 StartableException - Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
onClearCache in class AbstractSchemeManagerpublic String getSchemeEntityName()
getSchemeEntityName in class AbstractSchemeManagerpublic String getEntityName()
getEntityName in class AbstractSchemeManagerpublic String getSchemeDesc()
getSchemeDesc in class AbstractSchemeManagerpublic String getDefaultNameKey()
getDefaultNameKey in class AbstractSchemeManagerpublic String getDefaultDescriptionKey()
getDefaultDescriptionKey in class AbstractSchemeManager
public org.ofbiz.core.entity.GenericValue createDefaultScheme()
throws org.ofbiz.core.entity.GenericEntityException
SchemeManager
createDefaultScheme in interface SchemeManagercreateDefaultScheme in class AbstractSchemeManagerorg.ofbiz.core.entity.GenericEntityException - If a DB error occurs
public void removeSchemeEntitiesForField(String customFieldId)
throws RemoveException
removeSchemeEntitiesForField in interface NotificationSchemeManagerRemoveException
public List<SchemeEntity> getNotificationSchemeEntities(Project project,
long entityTypeId)
throws org.ofbiz.core.entity.GenericEntityException
NotificationSchemeManager
getNotificationSchemeEntities in interface NotificationSchemeManagerproject - the projectentityTypeId - the type of entity
org.ofbiz.core.entity.GenericEntityExceptionpublic org.ofbiz.core.entity.GenericValue getNotificationSchemeForProject(org.ofbiz.core.entity.GenericValue projectGV)
getNotificationSchemeForProject in interface NotificationSchemeManagerprojectGV - the project
public Map<Long,String> getSchemesMapByConditions(Map<String,?> conditions)
getSchemesMapByConditions in interface NotificationSchemeManagerconditions - 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 NotificationSchemeManagertype - is the entity typeparameter - is the scheme entries parameter value
public boolean isHasMailServer()
throws com.atlassian.mail.MailException
isHasMailServer in interface NotificationSchemeManagercom.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 SchemeManagerorg.ofbiz.core.entity.GenericEntityException
public Set<NotificationRecipient> getRecipients(IssueEvent event,
SchemeEntity notification)
throws org.ofbiz.core.entity.GenericEntityException
getRecipients in interface NotificationSchemeManagerevent - issue eventnotification - scheme entity
org.ofbiz.core.entity.GenericEntityException
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 NotificationSchemeManagerorg.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 AbstractSchemeManagerorg.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 SchemeManagerorg.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 SchemeManagerorg.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 SchemeManagerorg.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 SchemeManagerorg.ofbiz.core.entity.GenericEntityException
public boolean hasSchemeAuthority(Long entityType,
org.ofbiz.core.entity.GenericValue entity)
SchemeManager
hasSchemeAuthority in interface SchemeManagerentityType - 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 SchemeManagerentityType - 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 | |||||||||