@PublicApi
public interface ObjectFacade
| Modifier and Type | Method and Description |
|---|---|
AttachmentBean |
addAttachmentBean(int objectId,
File file,
String fileName,
String contentType,
String comment)
Add a
AttachmentBean domain objects. |
int |
countObjectBeans(int objectTypeId)
Finds total count of all
ObjectBean domain objects. |
WatcherBean |
createWatcherBean(int objectId,
String userKey)
Created a
WatcherBean |
AttachmentBean |
deleteAttachmentBean(int id)
Delete
AttachmentBean |
void |
deleteCommentBean(int commentBeanId)
Delete a
CommentBean |
void |
deleteObjectAttributeBean(int id)
Deprecated.
use the
deleteObjectAttributeBean(long) instead |
void |
deleteObjectAttributeBean(int id,
com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption)
Deprecated.
use the
deleteObjectAttributeBean(long, EventDispatchOption) instead |
void |
deleteObjectAttributeBean(long id)
Deletes an object attribute bean
|
void |
deleteObjectAttributeBean(long id,
com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption)
Deletes an object attribute bean
|
void |
deleteObjectBean(int id)
Delete a
ObjectBean |
void |
deleteObjectBean(int id,
com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption)
Delete a
ObjectBean |
void |
deleteWatcherBean(WatcherBean watcherBean)
Delete a
WatcherBean |
List<AttachmentBean> |
findAttachmentBeans(int objectId)
Finds attachmentBeans for specified
ObjectBean id |
List<CommentBean> |
findCommentBeans(int objectId)
Find all
CommentBean for an ObjectBean |
List<ObjectAttributeBean> |
findObjectAttributeBeans(int objectId)
Finds all
ObjectAttributeBean |
List<ObjectHistoryBean> |
findObjectHistoryBean(int objectId)
Find the
ObjectBean history |
List<ObjectTicketConnectionEntry> |
findObjectTicketConnections(int objectId)
Find all JIRA issues connected to an
ObjectBean |
List<ObjectTicketConnectionEntry> |
findObjectTicketConnections(int objectId,
int offset,
int limit)
Deprecated.
use
findObjectTicketConnections(int) instead |
List<ObjectTicketConnectionEntry> |
findObjectTicketConnections(long ticketId)
Find all ObjectBean connected to a JIRA issue
|
List<WatcherBean> |
findWatcherBeans(int objectId)
Finds all
WatcherBean for an ObjectBean |
AttachmentBean |
loadAttachmentBeanById(int id)
Load a
AttachmentBean |
CommentBean |
loadCommentBean(int commentId)
Load a
CommentBean |
ObjectAttributeBean |
loadObjectAttributeBean(int id)
Deprecated.
Go through the object to load the object attribute bean instead of directly. This will be removed in
future releases
|
ObjectAttributeBean |
loadObjectAttributeBean(int objectId,
int objectTypeAttributeId)
Loads a
ObjectAttributeBean given an object id and object type attribute id |
ObjectAttributeBean |
loadObjectAttributeBean(int objectId,
int objectTypeAttributeId,
boolean ignorePermissionCheck)
Loads a
ObjectAttributeBean given an object id, object type attribute id and a parameter to ignore permission check |
ObjectAttributeBean |
loadObjectAttributeBean(int objectId,
String objectTypeAttributeName)
Loads a
ObjectAttributeBean given an object id and object type attribute name |
ObjectBean |
loadObjectBean(int id)
Loads a
ObjectBean given its id. |
ObjectBean |
loadObjectBean(String key)
Loads a
ObjectBean given its key. |
WatcherBean |
loadWatcherBean(int objectId,
String userKey)
Loads a
WatcherBean |
Progress |
moveObjects(MoveObjectBean moveObjectBean)
Move objects to another object type
|
CommentBean |
storeCommentBean(CommentBean commentBean)
Store a
CommentBean |
ObjectAttributeBean |
storeObjectAttributeBean(MutableObjectAttributeBean objectAttributeBean)
Stores a
ObjectAttributeBean |
ObjectAttributeBean |
storeObjectAttributeBean(MutableObjectAttributeBean objectAttributeBean,
com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption)
Stores a
ObjectAttributeBean |
ObjectAttributeBean |
storeObjectAttributeBean(ObjectAttributeBean objectAttributeBean)
Deprecated.
|
ObjectBean |
storeObjectBean(MutableObjectBean objectBean)
Stores a
ObjectBean |
ObjectBean |
storeObjectBean(MutableObjectBean objectBean,
byte[] avatarData,
com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption)
Stores a
ObjectBean with the corresponding avatar |
ObjectBean |
storeObjectBean(MutableObjectBean objectBean,
com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption)
Stores a
ObjectBean |
ObjectBean |
storeObjectBeanIgnoreAttributeValidation(MutableObjectBean objectBean)
Stores a
ObjectBean bypassing ALL attribute validation e.g. |
void |
validateObjectAttributeBean(MutableObjectAttributeBean objectAttributeBean,
ObjectBean objectBean)
Validate an object attribute bean.
|
void |
validateObjectBean(MutableObjectBean objectBean)
Validate an object bean.
|
ObjectBean storeObjectBean(MutableObjectBean objectBean, @Nonnull com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption) throws InsightException
ObjectBeanobjectBean - the object bean to storeeventDispatchOption - event dispatchObjectBeanInsightException - if something goes wrongObjectBean storeObjectBean(@Nonnull MutableObjectBean objectBean, @Nonnull byte[] avatarData, @Nonnull com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption) throws InsightException
ObjectBean with the corresponding avatarobjectBean - an existing object bean, the object bean must exist and be stored in insight before added as a
parameter to this methodavatarData - the actual avatar data to be used for the objecteventDispatchOption - event dispatchObjectBeanInsightException - if something goesObjectBean storeObjectBean(MutableObjectBean objectBean) throws InsightException
ObjectBeanobjectBean - the object bean to storeObjectBeanInsightException - if something goes wrongObjectBean storeObjectBeanIgnoreAttributeValidation(MutableObjectBean objectBean) throws InsightException
ObjectBean bypassing ALL attribute validation e.g. uniqueness. This method should be used with
care because it will create objects that potentially does not conform to the configuration of the object type.objectBean - the object bean with corresponding attributes. Attributes present will NOT be validatedInsightExceptionObjectAttributeBean storeObjectAttributeBean(MutableObjectAttributeBean objectAttributeBean) throws InsightException
ObjectAttributeBeanObjectAttributeBeanInsightException - if something goes wrongObjectAttributeBean storeObjectAttributeBean(MutableObjectAttributeBean objectAttributeBean, @Nonnull com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption) throws InsightException
ObjectAttributeBeanObjectAttributeBeanInsightException - if something goes wrong@Deprecated ObjectAttributeBean storeObjectAttributeBean(ObjectAttributeBean objectAttributeBean) throws InsightException
InsightExceptionint countObjectBeans(int objectTypeId)
throws InsightException
ObjectBean domain objects.InsightExceptionObjectBean loadObjectBean(int id) throws InsightException
ObjectBean given its id.ObjectBeanInsightExceptionObjectBean loadObjectBean(String key) throws InsightException
ObjectBean given its key.ObjectBeanInsightExceptionvoid deleteObjectBean(int id)
throws InsightException
ObjectBeanInsightExceptionvoid deleteObjectBean(int id,
@Nonnull
com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption)
throws InsightException
ObjectBeanInsightExceptionList<ObjectAttributeBean> findObjectAttributeBeans(int objectId) throws InsightException
ObjectAttributeBeanobjectId - the ObjectBean idObjectAttributeBeanInsightException@Deprecated ObjectAttributeBean loadObjectAttributeBean(int id) throws InsightException
ObjectAttributeBean given its id.ObjectAttributeBeanInsightException@Deprecated void deleteObjectAttributeBean(int id) throws InsightException
deleteObjectAttributeBean(long) insteadInsightException@Deprecated void deleteObjectAttributeBean(int id, @Nonnull com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption) throws InsightException
deleteObjectAttributeBean(long, EventDispatchOption) insteadInsightExceptionvoid deleteObjectAttributeBean(long id)
throws InsightException
InsightExceptionvoid deleteObjectAttributeBean(long id,
@Nonnull
com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption)
throws InsightException
InsightExceptionObjectAttributeBean loadObjectAttributeBean(int objectId, int objectTypeAttributeId) throws InsightException
ObjectAttributeBean given an object id and object type attribute idObjectAttributeBeanInsightExceptionObjectAttributeBean loadObjectAttributeBean(int objectId, int objectTypeAttributeId, boolean ignorePermissionCheck) throws InsightException
ObjectAttributeBean given an object id, object type attribute id and a parameter to ignore permission checkObjectAttributeBeanInsightExceptionObjectAttributeBean loadObjectAttributeBean(int objectId, String objectTypeAttributeName) throws InsightException
ObjectAttributeBean given an object id and object type attribute nameObjectAttributeBeanInsightExceptionList<ObjectHistoryBean> findObjectHistoryBean(int objectId) throws InsightException
ObjectBean historyObjectHistoryBeanInsightExceptionAttachmentBean loadAttachmentBeanById(int id) throws InsightException
AttachmentBeanAttachmentBeanInsightExceptionAttachmentBean addAttachmentBean(int objectId, File file, String fileName, String contentType, String comment) throws InsightException
AttachmentBean domain objects.objectId - the ObjectBean idfile - the file to addfileName - the filenamecontentType - the content typecomment - an optional commentAttachmentBeanInsightExceptionList<AttachmentBean> findAttachmentBeans(int objectId) throws InsightException
ObjectBean idobjectId - the ObjectBean idAttachmentBeanInsightExceptionAttachmentBean deleteAttachmentBean(int id) throws InsightException
AttachmentBeanAttachmentBeanInsightExceptionList<ObjectTicketConnectionEntry> findObjectTicketConnections(int objectId) throws InsightException
ObjectBeanObjectTicketConnectionEntryInsightException@Deprecated List<ObjectTicketConnectionEntry> findObjectTicketConnections(int objectId, int offset, int limit) throws InsightException
findObjectTicketConnections(int) insteadInsightExceptionList<ObjectTicketConnectionEntry> findObjectTicketConnections(long ticketId) throws InsightException
ObjectTicketConnectionEntryInsightExceptionvoid deleteCommentBean(int commentBeanId)
throws InsightException
CommentBeanInsightExceptionCommentBean storeCommentBean(CommentBean commentBean) throws InsightException
CommentBeanCommentBeanInsightExceptionList<CommentBean> findCommentBeans(int objectId) throws InsightException
CommentBean for an ObjectBeanCommentBeanInsightExceptionCommentBean loadCommentBean(int commentId) throws InsightException
CommentBeanCommentBeanInsightExceptionWatcherBean loadWatcherBean(int objectId, String userKey) throws InsightException
WatcherBeanobjectId - the ObjectBean iduserKey - the User keyWatcherBeanInsightExceptionList<WatcherBean> findWatcherBeans(int objectId) throws InsightException
WatcherBean for an ObjectBeanWatcherBeanInsightExceptionWatcherBean createWatcherBean(int objectId, String userKey) throws InsightException
WatcherBeanobjectId - the ObjectBean iduserKey - the userkeyWatcherBeanInsightExceptionvoid deleteWatcherBean(WatcherBean watcherBean) throws InsightException
WatcherBeanInsightExceptionProgress moveObjects(MoveObjectBean moveObjectBean) throws Exception
void validateObjectBean(MutableObjectBean objectBean) throws ValidationInsightException, IQLValidationException
void validateObjectAttributeBean(MutableObjectAttributeBean objectAttributeBean, ObjectBean objectBean) throws ValidationInsightException, IQLValidationException
Copyright © 2023 Atlassian. All rights reserved.