Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor3 #1121

Merged
merged 42 commits into from
Jul 27, 2021
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
53f2600
Add Spring boot support
Mar 29, 2021
ecf327c
Merging Code in Springboot
Jul 14, 2021
6c02bb7
Correction of some tests
Jul 14, 2021
27ac2f3
Delete /SecurityUtilsTest.java
Janite Jul 14, 2021
b9eeca4
add enableEtl flag in application.yml
Janite Jul 14, 2021
1aca9c5
fix: renamed the module with correct name in build file
mayankgituni Jul 14, 2021
b0a340b
null pointer issue fix
justinapromore Jul 14, 2021
d1e915c
Minor chnages in integration test
Jul 15, 2021
32c3bbf
Fix pd
Jul 16, 2021
033725c
Minor fix
Jul 16, 2021
ab372b7
Added Keycloak support
Jul 20, 2021
d493697
Added login controller
Jul 20, 2021
8a12001
AP-2529 Refactor CSV Exporter to reduce memory footprint (#1107)
franklma Jul 20, 2021
3cef495
Minor bug fix
Jul 20, 2021
c79edc7
Merge branch 'refactor3' of github.com:apromore/ApromoreCore into ref…
Jul 20, 2021
8173ca0
Minor path change in js
Jul 20, 2021
c81d877
minor chnages to log dir in application
Jul 20, 2021
16410c0
fix: the css and impala error
mayanktomar20 Jul 21, 2021
2e8a2f7
fix: session issues
mayanktomar20 Jul 21, 2021
6d9f6eb
Minor fix in css and security
Jul 22, 2021
d158cca
Merge branch 'refactor3' of github.com:apromore/ApromoreCore into ref…
Jul 22, 2021
cdda924
Appl yaml
Jul 22, 2021
3ba1b6c
Changes in spring security
Jul 22, 2021
162980c
fix: links in UserAdminController and username error message for crea…
Janite Jul 23, 2021
d994fdd
Merge pull request #1113 from apromore/bugfix/AP-4245/Fix-create-user…
nolantellis Jul 23, 2021
7ab6bb5
AP-4284 Save BPMN Model on Process Discoverer is returning error (#1111)
franklma Jul 23, 2021
c7e58ca
Bugfix/AP-4292/select all select none labels switched (#1114)
Janite Jul 23, 2021
81b1cf2
Change properties
Jul 23, 2021
6ccf8a8
Merge branch 'refactor3' of github.com:apromore/ApromoreCore into ref…
Jul 23, 2021
6f4d3f9
Added docker-compose
Jul 23, 2021
bb29354
AP-3702 ordering of bpmn file
justinapromore Jul 23, 2021
c0dd222
fix etl menu item order and add a seperator before etl in menu
Janite Jul 26, 2021
7b4459a
Merge pull request #1117 from apromore/AP-4320/fix-etl-menu-item-order
nolantellis Jul 26, 2021
3199180
Added global handling
Jul 26, 2021
2a7c2bf
Merge branch 'refactor3' of github.com:apromore/ApromoreCore into ref…
Jul 26, 2021
9583d49
AP-4247 Hide buttons in PD according to user's access type to Log
Jul 26, 2021
cbd46f6
Merge dash changes from dev branch
Jul 26, 2021
7a9ddd8
Merge branch 'AP-4247-springboot' into refactor3
Jul 27, 2021
a8b423a
Comment secure flag for http
Jul 27, 2021
b4565a8
Merge branch 'refactor3' of github.com:apromore/ApromoreCore into ref…
Jul 27, 2021
caed31a
Fix minnnor bugs
Jul 27, 2021
dfe1bed
Merge development branch
Jul 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ ProcessModelVersion updateProcessModelVersion(final Integer processId, final Str
* @param user with write permission
* @throws UpdateProcessException if the user doesn't have write permission on any of the models
*/
void deleteProcessModel(List<ProcessData> models, User user) throws UpdateProcessException;;
void deleteProcessModel(List<ProcessData> models, User user) throws UpdateProcessException;


/**
Expand All @@ -151,11 +151,4 @@ ProcessModelVersion updateProcessModelVersion(final Integer processId, final Str
* @throws RepositoryException if for some reason the process model can not be found.
*/
String getBPMNRepresentation(final String name, final Integer processId, final String branch, final Version version) throws RepositoryException;

/**
* Get folder that the associated Process is saved in
* @param pmv processSummaryType
* @return Folder
*/
Folder getFolderByPmv(ProcessModelVersion pmv);
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,6 @@
*/
package org.apromore.service.impl;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import javax.activation.DataHandler;
import javax.inject.Inject;
import javax.mail.util.ByteArrayDataSource;
import javax.xml.bind.JAXBException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import org.apromore.aop.Event;
import org.apromore.aop.HistoryEnum;
import org.apromore.common.Constants;
Expand Down Expand Up @@ -87,6 +69,25 @@
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.activation.DataHandler;
import javax.inject.Inject;
import javax.mail.util.ByteArrayDataSource;
import javax.xml.bind.JAXBException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamResult;
import javax.xml.transform.stream.StreamSource;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
* Implementation of the ProcessService Contract.
*
Expand Down Expand Up @@ -566,13 +567,6 @@ public String getBPMNRepresentation(final String name, final Integer processId,
}
}

@Override
public Folder getFolderByPmv(ProcessModelVersion pmv) {

Process process = processRepo.findById(pmv.getId()).orElse(null);
return process.getFolder();
}

private void deleteProcessModelVersion(List<ProcessModelVersion> pmvs,
ProcessModelVersion pvidToDelete, ProcessBranch branch) throws ExceptionDao {
ProcessModelVersion newCurrent = getPreviousVersion(pmvs, pvidToDelete);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<<<<<<< HEAD
loganim_start_text = Start
loganim_end_text = End
loganim_backward_text = Backward
Expand All @@ -25,8 +24,8 @@ common_upload_text = Upload
common_cut_text = Cut
common_copy_text = Copy
common_paste_text = Paste
common_selectNone_text = Select all
common_selectAll_text = Select none
common_selectAll_text = Select all
common_selectNone_text = Select none
common_lastUpdated_text = Last updated
common_modelName_text = Model name
common_modelName_hint = Model name modification will be applied on all process versions.
Expand Down Expand Up @@ -330,7 +329,7 @@ plugin_redesign_searchModels_text = Search similar models
common_frequencyLabel_text = frequency
common_durationLabel_text = label
common_error_text = Error
=======

theme = ap
publish.enable = false
brand.name = Apromore
Expand Down Expand Up @@ -513,7 +512,6 @@ error_message_header=Error message
# bimp.zul
logNameTextbox_label=Enter a log name
saveButton_label=Save
cancelButton_label=Cancel

#invalidScenario.zul
downloadReport_label=Download Error Report
Expand Down Expand Up @@ -572,5 +570,3 @@ setOtherAll_tooltiptext = Change all Ignored Attributes to Event Attributes
toXESButton_label = Upload Log
toPublicXESButton_label = Upload Log Publicly
cancelButton_label = Cancel

>>>>>>> f6707b391... Add Spring boot support
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ common_upload_text = アップロード
common_cut_text = カット
common_copy_text = コピー
common_paste_text = ペースト
common_selectNone_text = すべて選択
common_selectAll_text = 選択解除
common_selectAll_text = すべて選択
common_selectNone_text = 選択解除
common_lastUpdated_text = 最終更新日
common_modelName_text = モデル名
common_modelName_hint = モデル名の変更は、すべてのプロセスバージョンに適用されます。
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public void onEvent(Event event) throws Exception {
now, // creation timestamp
now, // last update timestamp
publicModel);
Folder folder = controller.getProcessService().getFolderByPmv(pmv);
Folder folder = pmv.getProcessBranch().getProcess().getFolder();
String folderName = folder == null ? HOME_FOLDER_NAME : folder.getName();
String notif = MessageFormat.format(
parent.getLabel("successSaveBPMN_message"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
*/
package org.apromore.plugin.portal.useradmin;

import java.io.IOException;
import java.io.InputStreamReader;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Collections;
Expand Down Expand Up @@ -56,13 +58,15 @@
// import org.zkoss.spring.SpringUtil;
import org.zkoss.json.JSONObject;
import org.zkoss.web.Attributes;
import org.zkoss.zk.ui.Execution;
import org.zkoss.zk.ui.Executions;
import org.zkoss.zk.ui.Sessions;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.event.EventListener;
import org.zkoss.zk.ui.event.EventQueue;
import org.zkoss.zk.ui.event.EventQueues;
import org.zkoss.zk.ui.event.SelectEvent;
import org.zkoss.zk.ui.metainfo.PageDefinition;
import org.zkoss.zk.ui.select.SelectorComposer;
import org.zkoss.zk.ui.select.annotation.Listen;
import org.zkoss.zk.ui.select.annotation.Wire;
Expand Down Expand Up @@ -918,7 +922,7 @@ public void onClickuserAddBtn() {
arg.put("portalContext", portalContext);
arg.put("securityService", securityService);
Window window = (Window) Executions.getCurrent()
.createComponents("user-admin/zul/create-user.zul", getSelf(), arg);
.createComponents(getPageDefinition("zul/create-user.zul"), getSelf(), arg);
window.doModal();

} catch (Exception e) {
Expand Down Expand Up @@ -959,7 +963,7 @@ public void onEvent(Event e) {
Map arg = new HashMap<>();
arg.put("selectedUser", user);
Window window = (Window) Executions.getCurrent()
.createComponents("user-admin/zul/delete-user.zul", getSelf(), arg);
.createComponents(getPageDefinition("zul/delete-user.zul"), getSelf(), arg);
window.doModal();
} catch (Exception ex) {
LOGGER.error("Unable to create transfer owner dialog", ex);
Expand Down Expand Up @@ -1204,7 +1208,7 @@ public void onClickgroupAddBtn() {
arg.put("portalContext", portalContext);
arg.put("securityService", securityService);
Window window = (Window) Executions.getCurrent()
.createComponents("user-admin/zul/create-group.zul", getSelf(), arg);
.createComponents(getPageDefinition("zul/create-group.zul"), getSelf(), arg);
window.doModal();

} catch (Exception e) {
Expand Down Expand Up @@ -1328,5 +1332,12 @@ public void onChangingGroupNameTextbox() {
isGroupDetailDirty = true;
}

public PageDefinition getPageDefinition(String uri) throws IOException {
String url = "static/" + uri;
Execution current = Executions.getCurrent();
PageDefinition pageDefinition=current.getPageDefinitionDirectly(new InputStreamReader(
getClass().getClassLoader().getResourceAsStream(url)), "zul");
return pageDefinition;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
<rows>
<row>
<label value="${$composer.labels.userName_text}"/>
<textbox id="userNameTextbox" value="New_username" constraint="no empty,/^[a-zA-Z0-9 @\\._\-]{4,}$/: {Use only letters, numbers, and @.-_}" placeholder="Username"/>
<textbox id="userNameTextbox" value="New_username"
constraint="no empty,/^[a-zA-Z0-9 @\\._\-]{4,}$/:
{Usernames must be at least 4 characters long, and include only letters, numbers, and @.-_}"
placeholder="Username"/>
</row>
<row>
<label value="First Name"/>
Expand Down