Class ConfigureFacadeImpl
java.lang.Object
com.riadalabs.jira.plugins.insight.channel.external.api.facade.impl.ConfigureFacadeImpl
- All Implemented Interfaces:
ConfigureFacade
-
Constructor Summary
ConstructorsConstructorDescriptionConfigureFacadeImpl
(com.riadalabs.jira.plugins.insight.services.core.ConfigureService configureService, com.riadalabs.jira.plugins.insight.services.imports.schema.ObjectSchemaExportService objectSchemaExportService, com.riadalabs.jira.plugins.insight.services.util.ErrorMessageTranslator errorMessageTranslator) -
Method Summary
Modifier and TypeMethodDescriptioncreateIconBean
(IconBean iconBean) Creates aIconBean
createReferenceTypeBean
(ReferenceTypeBean referenceTypeBean) Creates aReferenceTypeBean
createStatusTypeBean
(StatusTypeBean statusTypeBean) Creates aStatusTypeBean
void
deleteGroupRoleActor
(String groupName) Deletes group from all Assets permissionsvoid
deleteIconBean
(int id) Delete aIconBean
domain object.void
deleteReferenceTypeBean
(int id) Delete aReferenceTypeBean
void
deleteStatusTypeBean
(int id) Delete aStatusTypeBean
exportObjectSchemaConfiguration
(int id) Deprecated.findAllIconBeans
(int objectSchemaId) Finds allIconBean
for a specificObjectSchemaBean
including all global ones.findAllReferenceTypeBeans
(int objectSchemaId) Finds allReferenceTypeBean
including global onesfindAllStatusTypeBeans
(int objectSchemaId) Finds allStatusTypeBean
including global onesFinds all globalIconBean
Finds all globalReferenceTypeBean
Finds all globalStatusTypeBean
findIconBeans
(int objectSchemaId) Finds allIconBean
specified for a specificObjectSchemaBean
(not global ones).findReferenceTypeBeans
(int objectSchemaId) Finds allReferenceTypeBean
for a specific ObjectSchema idFinds allRoleBean
findRoleBeansByObjectSchema
(int objectSchemaId) Finds allRoleBean
by Object SchemafindRoleBeansByObjectType
(int objectTypeId) Finds allRoleBean
by Object TypefindStatusTypeBeans
(int objectSchemaId) Finds allStatusTypeBean
for a specific ObjectSchema idloadIconBean
(int id) Loads a singleIconBean
loadIconBean
(int objectSchemaId, String name) Loads a singleIconBean
loadReferenceTypeBean
(int id) Loads a singleReferenceTypeBean
loadReferenceTypeBean
(int id, String name) Loads a singleReferenceTypeBean
loadRoleActorBean
(int id) Loads aRoleActorBean
loadRoleBean
(int id) Loads aRoleBean
loadStatusTypeBean
(int id) Loads a singleStatusTypeBean
loadStatusTypeBean
(int objectSchemaId, String name) Loads a singleStatusTypeBean
void
storeActorsForRoleBean
(Map<String, Set<String>> newRoleActorBeans, int roleBeanId) Stores actors for aRoleBean
updateIconBean
(IconBean iconBean) Update aIconBean
updateReferenceTypeBean
(ReferenceTypeBean referenceTypeBean) Updates aReferenceTypeBean
updateStatusTypeBean
(StatusTypeBean statusTypeBean) Updates aStatusTypeBean
-
Constructor Details
-
ConfigureFacadeImpl
public ConfigureFacadeImpl(com.riadalabs.jira.plugins.insight.services.core.ConfigureService configureService, com.riadalabs.jira.plugins.insight.services.imports.schema.ObjectSchemaExportService objectSchemaExportService, com.riadalabs.jira.plugins.insight.services.util.ErrorMessageTranslator errorMessageTranslator)
-
-
Method Details
-
findRoleBeans
Description copied from interface:ConfigureFacade
Finds allRoleBean
- Specified by:
findRoleBeans
in interfaceConfigureFacade
- Returns:
- a list of
RoleBean
@ - Throws:
InsightException
-
findRoleBeansByObjectSchema
Description copied from interface:ConfigureFacade
Finds allRoleBean
by Object Schema- Specified by:
findRoleBeansByObjectSchema
in interfaceConfigureFacade
- Parameters:
objectSchemaId
- theObjectSchemaBean
Id- Returns:
- a list of
RoleBean
@ - Throws:
InsightException
- if something goes wrong
-
findRoleBeansByObjectType
Description copied from interface:ConfigureFacade
Finds allRoleBean
by Object Type- Specified by:
findRoleBeansByObjectType
in interfaceConfigureFacade
- Parameters:
objectTypeId
- theObjectTypeBean
Id- Returns:
- a list of
RoleBean
@ - Throws:
InsightException
- if something goes wrong
-
loadRoleBean
Description copied from interface:ConfigureFacade
Loads aRoleBean
- Specified by:
loadRoleBean
in interfaceConfigureFacade
- Returns:
- a
RoleBean
@ - Throws:
InsightException
- if something goes wrong
-
loadRoleActorBean
Description copied from interface:ConfigureFacade
Loads aRoleActorBean
- Specified by:
loadRoleActorBean
in interfaceConfigureFacade
- Returns:
- a
RoleActorBean
@ - Throws:
InsightException
- if something goes wrong
-
storeActorsForRoleBean
public void storeActorsForRoleBean(Map<String, Set<String>> newRoleActorBeans, int roleBeanId) throws InsightExceptionDescription copied from interface:ConfigureFacade
Stores actors for aRoleBean
- Specified by:
storeActorsForRoleBean
in interfaceConfigureFacade
- Throws:
InsightException
- if something goes wrong
-
deleteGroupRoleActor
Description copied from interface:ConfigureFacade
Deletes group from all Assets permissions- Specified by:
deleteGroupRoleActor
in interfaceConfigureFacade
- Throws:
InsightException
- if something goes wrong
-
createReferenceTypeBean
public ReferenceTypeBean createReferenceTypeBean(ReferenceTypeBean referenceTypeBean) throws InsightException Description copied from interface:ConfigureFacade
Creates aReferenceTypeBean
- Specified by:
createReferenceTypeBean
in interfaceConfigureFacade
- Parameters:
referenceTypeBean
- aReferenceTypeBean
- Returns:
- the created
ReferenceTypeBean
- Throws:
InsightException
- if something goes wrong
-
updateReferenceTypeBean
public ReferenceTypeBean updateReferenceTypeBean(ReferenceTypeBean referenceTypeBean) throws InsightException Description copied from interface:ConfigureFacade
Updates aReferenceTypeBean
- Specified by:
updateReferenceTypeBean
in interfaceConfigureFacade
- Parameters:
referenceTypeBean
- aReferenceTypeBean
- Returns:
- the updated
ReferenceTypeBean
- Throws:
InsightException
- if something goes wrong
-
findGlobalReferenceTypeBeans
Description copied from interface:ConfigureFacade
Finds all globalReferenceTypeBean
- Specified by:
findGlobalReferenceTypeBeans
in interfaceConfigureFacade
- Returns:
- all list of
ReferenceTypeBean
- Throws:
InsightException
- if something goes wrong
-
findReferenceTypeBeans
Description copied from interface:ConfigureFacade
Finds allReferenceTypeBean
for a specific ObjectSchema id- Specified by:
findReferenceTypeBeans
in interfaceConfigureFacade
- Returns:
- all list of
ReferenceTypeBean
- Throws:
InsightException
- if something goes wrong
-
findAllReferenceTypeBeans
public List<ReferenceTypeBean> findAllReferenceTypeBeans(int objectSchemaId) throws InsightException Description copied from interface:ConfigureFacade
Finds allReferenceTypeBean
including global ones- Specified by:
findAllReferenceTypeBeans
in interfaceConfigureFacade
- Returns:
- a list of
ReferenceTypeBean
- Throws:
InsightException
- if something goes wrong
-
loadReferenceTypeBean
Description copied from interface:ConfigureFacade
Loads a singleReferenceTypeBean
- Specified by:
loadReferenceTypeBean
in interfaceConfigureFacade
- Returns:
- the loaded
ReferenceTypeBean
- Throws:
InsightException
- if something goes wrong
-
loadReferenceTypeBean
Description copied from interface:ConfigureFacade
Loads a singleReferenceTypeBean
- Specified by:
loadReferenceTypeBean
in interfaceConfigureFacade
- Returns:
- the loaded
ReferenceTypeBean
- Throws:
InsightException
- if something goes wrong
-
deleteReferenceTypeBean
Description copied from interface:ConfigureFacade
Delete aReferenceTypeBean
- Specified by:
deleteReferenceTypeBean
in interfaceConfigureFacade
- Throws:
InsightException
- if something goes wrong
-
createStatusTypeBean
Description copied from interface:ConfigureFacade
Creates aStatusTypeBean
- Specified by:
createStatusTypeBean
in interfaceConfigureFacade
- Parameters:
statusTypeBean
- aStatusTypeBean
- Returns:
- the created
StatusTypeBean
- Throws:
InsightException
- if something goes wrong
-
updateStatusTypeBean
Description copied from interface:ConfigureFacade
Updates aStatusTypeBean
- Specified by:
updateStatusTypeBean
in interfaceConfigureFacade
- Parameters:
statusTypeBean
- aStatusTypeBean
- Returns:
- the updated
StatusTypeBean
- Throws:
InsightException
- if something goes wrong
-
findGlobalStatusTypeBeans
Description copied from interface:ConfigureFacade
Finds all globalStatusTypeBean
- Specified by:
findGlobalStatusTypeBeans
in interfaceConfigureFacade
- Returns:
- all list of
StatusTypeBean
- Throws:
InsightException
- if something goes wrong
-
findStatusTypeBeans
Description copied from interface:ConfigureFacade
Finds allStatusTypeBean
for a specific ObjectSchema id- Specified by:
findStatusTypeBeans
in interfaceConfigureFacade
- Returns:
- all list of
StatusTypeBean
- Throws:
InsightException
- if something goes wrong
-
findAllStatusTypeBeans
Description copied from interface:ConfigureFacade
Finds allStatusTypeBean
including global ones- Specified by:
findAllStatusTypeBeans
in interfaceConfigureFacade
- Returns:
- a list of
StatusTypeBean
- Throws:
InsightException
- if something goes wrong
-
loadStatusTypeBean
Description copied from interface:ConfigureFacade
Loads a singleStatusTypeBean
- Specified by:
loadStatusTypeBean
in interfaceConfigureFacade
- Returns:
- the loaded
StatusTypeBean
- Throws:
InsightException
- if something goes wrong
-
loadStatusTypeBean
Description copied from interface:ConfigureFacade
Loads a singleStatusTypeBean
- Specified by:
loadStatusTypeBean
in interfaceConfigureFacade
- Returns:
- the loaded
StatusTypeBean
- Throws:
InsightException
- if something goes wrong
-
deleteStatusTypeBean
Description copied from interface:ConfigureFacade
Delete aStatusTypeBean
- Specified by:
deleteStatusTypeBean
in interfaceConfigureFacade
- Throws:
InsightException
- if something goes wrong
-
createIconBean
Description copied from interface:ConfigureFacade
Creates aIconBean
- Specified by:
createIconBean
in interfaceConfigureFacade
- Parameters:
iconBean
- a IconBean- Returns:
- the created
IconBean
with an id. - Throws:
InsightException
- if something goes wrong
-
updateIconBean
Description copied from interface:ConfigureFacade
Update aIconBean
- Specified by:
updateIconBean
in interfaceConfigureFacade
- Parameters:
iconBean
- aIconBean
- Returns:
- the updated
IconBean
with an id. - Throws:
InsightException
- if something goes wrong
-
findGlobalIconBeans
Description copied from interface:ConfigureFacade
Finds all globalIconBean
- Specified by:
findGlobalIconBeans
in interfaceConfigureFacade
- Returns:
- all
IconBean
- Throws:
InsightException
- if something goes wrong
-
findAllIconBeans
Description copied from interface:ConfigureFacade
Finds allIconBean
for a specificObjectSchemaBean
including all global ones.- Specified by:
findAllIconBeans
in interfaceConfigureFacade
- Returns:
- a list of
IconBean
- Throws:
InsightException
- if something goes wrong
-
findIconBeans
Description copied from interface:ConfigureFacade
Finds allIconBean
specified for a specificObjectSchemaBean
(not global ones).- Specified by:
findIconBeans
in interfaceConfigureFacade
- Returns:
- a list of
IconBean
- Throws:
InsightException
- if something goes wrong
-
loadIconBean
Description copied from interface:ConfigureFacade
Loads a singleIconBean
- Specified by:
loadIconBean
in interfaceConfigureFacade
- Parameters:
id
- the id of theIconBean
to load- Returns:
- the loaded
IconBean
- Throws:
InsightException
- if something goes wrong
-
loadIconBean
Description copied from interface:ConfigureFacade
Loads a singleIconBean
- Specified by:
loadIconBean
in interfaceConfigureFacade
name
- the name of theIconBean
to load- Returns:
- the loaded
IconBean
- Throws:
InsightException
- if something goes wrong
-
deleteIconBean
Description copied from interface:ConfigureFacade
Delete aIconBean
domain object.- Specified by:
deleteIconBean
in interfaceConfigureFacade
- Throws:
InsightException
- if something goes wrong
-
exportObjectSchemaConfiguration
Deprecated.UseObjectSchemaExportService.streamSchemaToClient(ExportObjectSchemaDataBean)
instead. Due to being deprecated, this method will NOT support auditing. This method will be removed with Jira 6.0 platform release.Description copied from interface:ConfigureFacade
Due to being deprecated, this method will NOT support auditing. This method will be removed with Jira 6.0 platform release.- Specified by:
exportObjectSchemaConfiguration
in interfaceConfigureFacade
- Parameters:
id
- Object Schema ID- Returns:
- a xml string
- Throws:
InsightException
- if something goes wrong
-
ObjectSchemaExportService.streamSchemaToClient(ExportObjectSchemaDataBean)
instead.