public interface ObjectFacade
Modifier and Type | Method and Description |
---|---|
com.riadalabs.jira.plugins.insight.services.model.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. |
com.riadalabs.jira.plugins.insight.services.model.WatcherBean |
createWatcherBean(int objectId,
String userKey)
Created a
WatcherBean |
com.riadalabs.jira.plugins.insight.services.model.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(com.riadalabs.jira.plugins.insight.services.model.WatcherBean watcherBean)
Delete a
WatcherBean |
List<com.riadalabs.jira.plugins.insight.services.model.AttachmentBean> |
findAttachmentBeans(int objectId)
Finds attachmentBeans for specified
ObjectBean id |
List<com.riadalabs.jira.plugins.insight.services.model.CommentBean> |
findCommentBeans(int objectId)
Find all
CommentBean for an ObjectBean |
List<com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean> |
findObjectAttributeBeans(int objectId)
Finds all
ObjectAttributeBean |
List<com.riadalabs.jira.plugins.insight.services.model.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<com.riadalabs.jira.plugins.insight.services.model.WatcherBean> |
findWatcherBeans(int objectId)
Finds all
WatcherBean for an ObjectBean |
com.riadalabs.jira.plugins.insight.services.model.AttachmentBean |
loadAttachmentBeanById(int id)
Load a
AttachmentBean |
com.riadalabs.jira.plugins.insight.services.model.CommentBean |
loadCommentBean(int commentId)
Load a
CommentBean |
com.riadalabs.jira.plugins.insight.services.model.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
|
com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean |
loadObjectAttributeBean(int objectId,
int objectTypeAttributeId)
Loads a
ObjectAttributeBean given an object id and object type attribute id |
com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean |
loadObjectAttributeBean(int objectId,
String objectTypeAttributeName)
Loads a
ObjectAttributeBean given an object id and object type attribute name |
com.riadalabs.jira.plugins.insight.services.model.ObjectBean |
loadObjectBean(int id)
Loads a
ObjectBean given its id. |
com.riadalabs.jira.plugins.insight.services.model.ObjectBean |
loadObjectBean(String key)
Loads a
ObjectBean given its key. |
com.riadalabs.jira.plugins.insight.services.model.WatcherBean |
loadWatcherBean(int objectId,
String userKey)
Loads a
WatcherBean |
com.riadalabs.jira.plugins.insight.services.progress.model.Progress |
moveObjects(MoveObjectBean moveObjectBean)
Move objects to another object type
|
com.riadalabs.jira.plugins.insight.services.model.CommentBean |
storeCommentBean(com.riadalabs.jira.plugins.insight.services.model.CommentBean commentBean)
Store a
CommentBean |
com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean |
storeObjectAttributeBean(com.riadalabs.jira.plugins.insight.services.model.MutableObjectAttributeBean objectAttributeBean)
Stores a
ObjectAttributeBean |
com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean |
storeObjectAttributeBean(com.riadalabs.jira.plugins.insight.services.model.MutableObjectAttributeBean objectAttributeBean,
com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption)
Stores a
ObjectAttributeBean |
com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean |
storeObjectAttributeBean(com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean objectAttributeBean)
Deprecated.
|
com.riadalabs.jira.plugins.insight.services.model.ObjectBean |
storeObjectBean(com.riadalabs.jira.plugins.insight.services.model.MutableObjectBean objectBean)
Stores a
ObjectBean |
com.riadalabs.jira.plugins.insight.services.model.ObjectBean |
storeObjectBean(com.riadalabs.jira.plugins.insight.services.model.MutableObjectBean objectBean,
byte[] avatarData,
com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption)
Stores a
ObjectBean with the corresponding avatar |
com.riadalabs.jira.plugins.insight.services.model.ObjectBean |
storeObjectBean(com.riadalabs.jira.plugins.insight.services.model.MutableObjectBean objectBean,
com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption)
Stores a
ObjectBean |
com.riadalabs.jira.plugins.insight.services.model.ObjectBean |
storeObjectBeanIgnoreAttributeValidation(com.riadalabs.jira.plugins.insight.services.model.MutableObjectBean objectBean)
Stores a
ObjectBean bypassing ALL attribute validation e.g. |
void |
validateObjectAttributeBean(com.riadalabs.jira.plugins.insight.services.model.MutableObjectAttributeBean objectAttributeBean,
com.riadalabs.jira.plugins.insight.services.model.ObjectBean objectBean)
Validate an object attribute bean.
|
void |
validateObjectBean(com.riadalabs.jira.plugins.insight.services.model.MutableObjectBean objectBean)
Validate an object bean.
|
com.riadalabs.jira.plugins.insight.services.model.ObjectBean storeObjectBean(com.riadalabs.jira.plugins.insight.services.model.MutableObjectBean objectBean, @Nonnull com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectBean
objectBean
- the object bean to storeeventDispatchOption
- event dispatchObjectBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
- if something goes wrongcom.riadalabs.jira.plugins.insight.services.model.ObjectBean storeObjectBean(@Nonnull com.riadalabs.jira.plugins.insight.services.model.MutableObjectBean objectBean, @Nonnull byte[] avatarData, @Nonnull com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption) throws com.riadalabs.jira.plugins.insight.common.exception.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 dispatchObjectBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
- if something goescom.riadalabs.jira.plugins.insight.services.model.ObjectBean storeObjectBean(com.riadalabs.jira.plugins.insight.services.model.MutableObjectBean objectBean) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectBean
objectBean
- the object bean to storeObjectBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
- if something goes wrongcom.riadalabs.jira.plugins.insight.services.model.ObjectBean storeObjectBeanIgnoreAttributeValidation(com.riadalabs.jira.plugins.insight.services.model.MutableObjectBean objectBean) throws com.riadalabs.jira.plugins.insight.common.exception.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 validatedcom.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean storeObjectAttributeBean(com.riadalabs.jira.plugins.insight.services.model.MutableObjectAttributeBean objectAttributeBean) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectAttributeBean
ObjectAttributeBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
- if something goes wrongcom.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean storeObjectAttributeBean(com.riadalabs.jira.plugins.insight.services.model.MutableObjectAttributeBean objectAttributeBean, @Nonnull com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectAttributeBean
ObjectAttributeBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
- if something goes wrong@Deprecated com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean storeObjectAttributeBean(com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean objectAttributeBean) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.common.exception.InsightException
int countObjectBeans(int objectTypeId) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectBean
domain objects.com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.services.model.ObjectBean loadObjectBean(int id) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectBean
given its id.ObjectBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.services.model.ObjectBean loadObjectBean(String key) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectBean
given its key.ObjectBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
void deleteObjectBean(int id) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
void deleteObjectBean(int id, @Nonnull com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
List<com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean> findObjectAttributeBeans(int objectId) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectAttributeBean
objectId
- the ObjectBean
idObjectAttributeBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
@Deprecated com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean loadObjectAttributeBean(int id) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectAttributeBean
given its id.ObjectAttributeBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
@Deprecated void deleteObjectAttributeBean(int id) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
deleteObjectAttributeBean(long)
insteadcom.riadalabs.jira.plugins.insight.common.exception.InsightException
@Deprecated void deleteObjectAttributeBean(int id, @Nonnull com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
deleteObjectAttributeBean(long, EventDispatchOption)
insteadcom.riadalabs.jira.plugins.insight.common.exception.InsightException
void deleteObjectAttributeBean(long id) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.common.exception.InsightException
void deleteObjectAttributeBean(long id, @Nonnull com.riadalabs.jira.plugins.insight.services.events.EventDispatchOption eventDispatchOption) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean loadObjectAttributeBean(int objectId, int objectTypeAttributeId) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectAttributeBean
given an object id and object type attribute idObjectAttributeBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.services.model.ObjectAttributeBean loadObjectAttributeBean(int objectId, String objectTypeAttributeName) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectAttributeBean
given an object id and object type attribute nameObjectAttributeBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
List<com.riadalabs.jira.plugins.insight.services.model.ObjectHistoryBean> findObjectHistoryBean(int objectId) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectBean
historyObjectHistoryBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.services.model.AttachmentBean loadAttachmentBeanById(int id) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
AttachmentBean
AttachmentBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.services.model.AttachmentBean addAttachmentBean(int objectId, File file, String fileName, String contentType, String comment) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
AttachmentBean
domain objects.objectId
- the ObjectBean
idfile
- the file to addfileName
- the filenamecontentType
- the content typecomment
- an optional commentAttachmentBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
List<com.riadalabs.jira.plugins.insight.services.model.AttachmentBean> findAttachmentBeans(int objectId) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectBean
idobjectId
- the ObjectBean idAttachmentBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.services.model.AttachmentBean deleteAttachmentBean(int id) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
AttachmentBean
AttachmentBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
List<ObjectTicketConnectionEntry> findObjectTicketConnections(int objectId) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectBean
ObjectTicketConnectionEntry
com.riadalabs.jira.plugins.insight.common.exception.InsightException
@Deprecated List<ObjectTicketConnectionEntry> findObjectTicketConnections(int objectId, int offset, int limit) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
findObjectTicketConnections(int)
insteadcom.riadalabs.jira.plugins.insight.common.exception.InsightException
List<ObjectTicketConnectionEntry> findObjectTicketConnections(long ticketId) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
ObjectTicketConnectionEntry
com.riadalabs.jira.plugins.insight.common.exception.InsightException
void deleteCommentBean(int commentBeanId) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
CommentBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.services.model.CommentBean storeCommentBean(com.riadalabs.jira.plugins.insight.services.model.CommentBean commentBean) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
CommentBean
CommentBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
List<com.riadalabs.jira.plugins.insight.services.model.CommentBean> findCommentBeans(int objectId) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
CommentBean
for an ObjectBean
CommentBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.services.model.CommentBean loadCommentBean(int commentId) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
CommentBean
CommentBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.services.model.WatcherBean loadWatcherBean(int objectId, String userKey) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
WatcherBean
objectId
- the ObjectBean iduserKey
- the User keyWatcherBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
List<com.riadalabs.jira.plugins.insight.services.model.WatcherBean> findWatcherBeans(int objectId) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
WatcherBean
for an ObjectBean
WatcherBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.services.model.WatcherBean createWatcherBean(int objectId, String userKey) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
WatcherBean
objectId
- the ObjectBean
iduserKey
- the userkeyWatcherBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
void deleteWatcherBean(com.riadalabs.jira.plugins.insight.services.model.WatcherBean watcherBean) throws com.riadalabs.jira.plugins.insight.common.exception.InsightException
WatcherBean
com.riadalabs.jira.plugins.insight.common.exception.InsightException
com.riadalabs.jira.plugins.insight.services.progress.model.Progress moveObjects(MoveObjectBean moveObjectBean) throws Exception
Progress
Exception
void validateObjectBean(com.riadalabs.jira.plugins.insight.services.model.MutableObjectBean objectBean) throws com.riadalabs.jira.plugins.insight.common.exception.ValidationInsightException, com.riadalabs.jira.plugins.insight.common.exception.IQLValidationException
com.riadalabs.jira.plugins.insight.common.exception.ValidationInsightException
com.riadalabs.jira.plugins.insight.common.exception.IQLValidationException
void validateObjectAttributeBean(com.riadalabs.jira.plugins.insight.services.model.MutableObjectAttributeBean objectAttributeBean, com.riadalabs.jira.plugins.insight.services.model.ObjectBean objectBean) throws com.riadalabs.jira.plugins.insight.common.exception.ValidationInsightException, com.riadalabs.jira.plugins.insight.common.exception.IQLValidationException
com.riadalabs.jira.plugins.insight.common.exception.ValidationInsightException
com.riadalabs.jira.plugins.insight.common.exception.IQLValidationException
Copyright © 2020 Mindville. All rights reserved.