Package ru.slie.luna.notification
Interface NotificationSchemaManager
public interface NotificationSchemaManager
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddGroups(NotificationSchema schema, IssueEventType eventType, Collection<Group> groups) voidaddRoles(NotificationSchema schema, IssueEventType eventType, Collection<ProjectRole> roles) voidaddUserFields(NotificationSchema schema, IssueEventType eventType, Collection<IssueField> fields) voidaddUsers(NotificationSchema schema, IssueEventType eventType, Collection<User> users) createSchema(String name, String description) deleteSchema(NotificationSchema notificationSchema) findSchemas(String term, SearchParams params) voidremoveGroups(NotificationSchema schema, IssueEventType eventType, Collection<Group> groups) voidremoveRoles(NotificationSchema schema, IssueEventType eventType, Collection<ProjectRole> roles) voidremoveUserFields(NotificationSchema schema, IssueEventType eventType, Collection<IssueField> fields) voidremoveUsers(NotificationSchema schema, IssueEventType eventType, Collection<User> users) voidupdateSchema(NotificationSchema notificationSchema, String name, String description)
-
Method Details
-
createSchema
- Throws:
ValidateException
-
getById
-
findSchemas
-
deleteSchema
- Throws:
DeleteException
-
updateSchema
void updateSchema(NotificationSchema notificationSchema, String name, String description) throws ValidateException - Throws:
ValidateException
-
addUsers
void addUsers(NotificationSchema schema, IssueEventType eventType, Collection<User> users) throws ValidateException - Throws:
ValidateException
-
removeUsers
void removeUsers(NotificationSchema schema, IssueEventType eventType, Collection<User> users) throws ValidateException - Throws:
ValidateException
-
addGroups
void addGroups(NotificationSchema schema, IssueEventType eventType, Collection<Group> groups) throws ValidateException - Throws:
ValidateException
-
removeGroups
void removeGroups(NotificationSchema schema, IssueEventType eventType, Collection<Group> groups) throws ValidateException - Throws:
ValidateException
-
addRoles
void addRoles(NotificationSchema schema, IssueEventType eventType, Collection<ProjectRole> roles) throws ValidateException - Throws:
ValidateException
-
removeRoles
void removeRoles(NotificationSchema schema, IssueEventType eventType, Collection<ProjectRole> roles) throws ValidateException - Throws:
ValidateException
-
addUserFields
void addUserFields(NotificationSchema schema, IssueEventType eventType, Collection<IssueField> fields) throws ValidateException - Throws:
ValidateException
-
removeUserFields
void removeUserFields(NotificationSchema schema, IssueEventType eventType, Collection<IssueField> fields) throws ValidateException - Throws:
ValidateException
-