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

OC 6905 v1.1 #54

Open
wants to merge 106 commits into
base: 1.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
b32acd8
Add Status and Start Date to every Event
Apr 23, 2014
627aace
Add Event Action to Designer Action Dropdown
Apr 23, 2014
7cab6fa
Change TreeModel to TreeModelInterface for eventsCrfsList and eventsC…
Apr 24, 2014
67f7077
Add the form for the new Event action
Apr 25, 2014
4153f9e
Add xjc generated file from openclinica rules-ODM.xsd
Apr 28, 2014
e404ad6
Add new LazyEventActionType for the Event action
Apr 28, 2014
e23172b
Add the new Event action
Apr 28, 2014
8c89ed2
Fix designer and xml tab after adding Event action
Apr 29, 2014
3248fcc
Generate Eclipse project files
Apr 29, 2014
c6af405
Regenerate rules-ODM.xsd-generated files to match the changes of rule…
Apr 30, 2014
74085f4
Updates to adapt to the changes of rules.xsd
Apr 30, 2014
3122be5
Fixing event action validationerror by renaming START_DATE to STARTDATE.
May 6, 2014
dad16a0
change openclinica-odm version number to 0.2.0.BUILD-SNAPSHOT
May 7, 2014
ecb60f2
Change openclinica-odm version to 2.0
May 8, 2014
25b4285
OC-5126 Display Start Date and Status before CRFs
May 9, 2014
a2ebf11
OC-5126 Display Start Date and Status before CRFs: Fix conflicts
May 12, 2014
e342948
OC-5126 Display Start Date and Status before CRFs: Fix crfs not defined
May 12, 2014
fa792b3
OC5126 - Add "Property" dropdown to Event action designer form
May 12, 2014
7bcb298
OC-5126 Fill the "Property" dropdown when dragging Start Date from tr…
May 12, 2014
306713e
add dev.openclinica.com/artifactory/libs-release to pom.xml
May 13, 2014
626917e
Merge pull request #2 from kkrumlian/OC-5353
kkrumlian May 20, 2014
ea702aa
OC-5316 Add TOS to UI
rooney May 21, 2014
96ae8bb
OC-5095 Update Rule Designer logo
rooney May 21, 2014
56cdfb0
OC-5126 Fill OID field when opening rule with event action
rooney May 22, 2014
0f5e765
OC-5310 Add registration link to failed authentication page
rooney May 22, 2014
02a97cc
OC-5095 Change logo for Failed authentication page
rooney May 22, 2014
a23674d
OC-5138 Show Event Action in Test Tab
rooney May 22, 2014
400dd86
gitignore designer.log
rooney May 22, 2014
6b19921
Merge pull request #4 from rooney/OC-5316
kkrumlian May 22, 2014
bd88941
Merge pull request #5 from rooney/OC-5095
kkrumlian May 22, 2014
70bf233
Merge pull request #8 from rooney/OC-5126
kkrumlian May 22, 2014
5cf5d7b
Merge pull request #9 from rooney/OC-5138
kkrumlian May 22, 2014
c0b7a2a
Merge pull request #10 from rooney/OC-5310
kkrumlian May 22, 2014
76c0048
Merge pull request #11 from rooney/master
kkrumlian May 22, 2014
1d91aa0
Cleanup tasks
kkrumlian May 22, 2014
65c66d0
Cleanup tasks
kkrumlian May 22, 2014
957c269
Merge pull request #12 from kkrumlian/master
kkrumlian May 22, 2014
1d2ab6e
Cleaning Eclipse projects
kkrumlian May 22, 2014
93d06d8
Merge pull request #13 from kkrumlian/master
kkrumlian May 22, 2014
2e46071
Add .travis.yml
kkrumlian May 22, 2014
4ce5160
Merge pull request #14 from kkrumlian/master
kkrumlian May 22, 2014
e51aafb
OC-5095 Using updated Rule Designer logo from Rob
rooney May 23, 2014
c50717b
Merge pull request #15 from rooney/OC-5095
kkrumlian May 28, 2014
bf13d3d
OC-5138 Change popup and label texts for event action
rooney Jun 5, 2014
6ec672e
OC-5138 Change detail links for STARTDATE and STATUS to itemDetails?n…
rooney Jun 5, 2014
703e58a
OC-5376 Add metadata information in right pane for STARTDATE and STATUS
rooney Jun 6, 2014
7a84cfb
Merge pull request #17 from rooney/OC-5138
kkrumlian Jun 7, 2014
2f0585b
OC-5138 Rule Designer: Show Step 2 form input for STARTDATE parameter
rooney Jun 9, 2014
0604a69
Merge remote-tracking branch 'origin/OC-5376' into OC-5138
rooney Jun 10, 2014
02e475a
OC-5138 Rule Designer: Show Step 2 form input for STARTDATE parameter…
rooney Jun 10, 2014
0cb9192
Merge pull request #18 from rooney/OC-5376
kkrumlian Jun 10, 2014
a21992d
OC-5138 Rule Designer: Show Step 2 form input or event action : Fix n…
rooney Jun 10, 2014
6e23ed7
OC-5138 : Item Metadata -> Entity Metadata for non CRF item
rooney Jun 11, 2014
76787a9
OC-5138 : Inversed STATUS options / value
rooney Jun 11, 2014
bd3493f
Merge remote-tracking branch 'origin/master' into OC-5138
rooney Jun 12, 2014
15e82c0
OC-5126 Bugfix Prepopulated Drag and Drop Event Action Property. Now …
rooney Jun 12, 2014
b931124
OC-5126 Bugfix Prepopulated Drag and Drop Event Action Property. Now …
rooney Jun 12, 2014
df8f648
Merge pull request #19 from rooney/OC-5138
kkrumlian Jun 13, 2014
d52c37c
Merge pull request #20 from rooney/OC-5126
kkrumlian Jun 13, 2014
c286800
OC-5095 Fix failed authentication page's background image
rooney Jun 17, 2014
7841f28
Merge pull request #21 from rooney/OC-5095
kkrumlian Jun 19, 2014
ff36c8c
OC-5376 Bugfix for get metadata behaviour when right pane collapsed. …
rooney Jun 25, 2014
7fb2290
OC-5310 Fix the registration link (was openclinica.com/designer-regis…
rooney Jun 25, 2014
46e8ae6
Merge pull request #23 from rooney/OC-5376
kkrumlian Jun 25, 2014
7dae90d
Merge pull request #24 from rooney/OC-5310
kkrumlian Jun 25, 2014
a46cd24
OC-5645 Remove hard coded values of username/pass/host/url from HostA…
rooney Jun 26, 2014
6d11a4c
OC-5650 Rule Designer version indicator on the GUI
rooney Jun 30, 2014
baf76ee
OC-5649 Rule Designer Home Page version number, copyright, and center…
rooney Jun 30, 2014
0ecbc0e
Merge pull request #26 from rooney/OC-5645
kkrumlian Jun 30, 2014
c09cc25
OC-5677: Setup assembly plugin
kkrumlian Jun 30, 2014
089d355
OC-5677: Setup assembly plugin, add license.txt & change version in pom
kkrumlian Jun 30, 2014
9d5f995
Merge pull request #29 from rooney/OC-5650
kkrumlian Jun 30, 2014
3e0a708
Merge pull request #30 from rooney/OC-5649
kkrumlian Jun 30, 2014
f0d62ff
Merge pull request #32 from kkrumlian/master
kkrumlian Jun 30, 2014
4f33855
OC-5677: Remove second assembly plugin causing JAR to be created.
kkrumlian Jun 30, 2014
7d2ae43
Merge pull request #33 from kkrumlian/master
kkrumlian Jun 30, 2014
b37da32
OC-5645 Remove hard coded values of username/pass/host/url from HostA…
rooney Jul 1, 2014
1cf2dd8
OC-5648 Rule Designer: Static Width breaks layout
rooney Jul 1, 2014
aedbe58
Merge pull request #34 from rooney/OC-5645
kkrumlian Jul 2, 2014
335b921
Merge pull request #35 from rooney/OC-5648
kkrumlian Jul 2, 2014
d087f5d
OC-5649 Change footer text
rooney Jul 3, 2014
d2f4486
Merge branch 'master' of https://github.com/OpenClinica/Designer into…
rooney Jul 3, 2014
8204636
OC-5649 Add changeset information to each page
rooney Jul 3, 2014
a691f78
OC-5694 RD footer CSS problem
rooney Jul 3, 2014
c7dff96
Merge pull request #37 from rooney/OC-5649
kkrumlian Jul 4, 2014
1cbfcbb
Merge pull request #38 from rooney/OC-5694
kkrumlian Jul 4, 2014
132d241
OC-5754 Rule Designer: For EventAction, If there is more than one Eve…
rooney Jun 3, 2015
3e3744c
OC-6455 Rule designer specifies rule executes at a specific time (Rul…
rooney Jun 5, 2015
ee53c4c
OC-6455 Rule designer specifies rule executes at a specific time (Rul…
rooney Jun 10, 2015
22d657b
OC-6455 Rule designer specifies rule executes at a specific time (Rul…
rooney Jun 11, 2015
626aadd
OC-6455 Rule designer specifies rule executes at a specific time (Rul…
rooney Jun 12, 2015
95a4a60
Merge pull request #40 from OpenClinica/OC-5754
kkrumlian Jun 12, 2015
3af02c6
Merge remote-tracking branch 'upstream/OC-6455'
kkrumlian Jun 12, 2015
d007294
Merge pull request #42 from kkrumlian/OC-6455kk
kkrumlian Jun 12, 2015
38c8198
OC-6455 Rule designer specifies rule executes at a specific time: fee…
rooney Jun 15, 2015
c91081e
Merge branch 'master' of https://github.com/OpenClinica/Designer into…
rooney Jun 16, 2015
33b27bc
OC-6455 Rule designer specifies rule executes at a specific time: ema…
rooney Jun 16, 2015
245dfaf
OC-6512 Rule Designer UI updates
rooney Jun 17, 2015
6f8a575
OC-6512 Rule Designer UI updates (fixed select on other actions)
rooney Jun 18, 2015
c7b91f3
OC-6509 Issues with new rule designer(in progress)
rooney Jun 18, 2015
4446b91
OC-6509 Issues with new rule designer (in progress)
rooney Jun 19, 2015
3845c89
OC-6455 Rule designer specifies rule executes at a specific time (UI …
rooney Jun 25, 2015
cf810e9
Merge pull request #43 from OpenClinica/OC-6455
kkrumlian Jun 29, 2015
de1cc15
OC-2795 When using email action to [email protected] , Rule des…
rooney Aug 9, 2015
8bcd677
OC-6905 Bugfix, test button wasn't working
dozymoe Jan 14, 2016
bf430d4
Merge branch '1.1' into OC-6905
theywa Jan 19, 2016
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ release.properties
.classpath
.project
.settings/
designer.log
.idea/
Designer.iml
4 changes: 4 additions & 0 deletions .hgignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
syntax: glob
target
*.class
designer.log
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
language: java
1,012 changes: 505 additions & 507 deletions LICENSE.txt
100755 → 100644

Large diffs are not rendered by default.

74 changes: 71 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>org.akaza.openclinica.designer</groupId>
<artifactId>Designer</artifactId>
<packaging>war</packaging>
<version>1.1</version>
<version>SNAPSHOT</version>
<name>Designer</name>
<properties>
<roo.version>1.1.5.RELEASE</roo.version>
Expand All @@ -14,9 +14,19 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-security.version>3.0.5.RELEASE</spring-security.version>
<logback.version>0.9.28</logback.version>
<!--scm.path>scm:svn:http://svn.akazaresearch.com/openclinica-projects-prop/Designer/trunk</scm.path-->

<scm.path>scm:git:https://github.com/OpenClinica/Designer.git</scm.path>
</properties>
<repositories>
<repository>
<snapshots>
<enabled>false</enabled>
</snapshots>
<id>central</id>
<name>libs-release</name>
<url>https://dev.openclinica.com/artifactory/libs-release</url>
</repository>
<repository>
<id>spring-maven-release</id>
<name>Spring Maven Release Repository</name>
Expand Down Expand Up @@ -46,6 +56,10 @@
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>maven-central</id>
<url>http://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>Akaza Dev Repository</id>
<url>http://svn.akazaresearch.com/ocrepository/repository</url>
Expand Down Expand Up @@ -321,6 +335,21 @@
<artifactId>tiles-jsp</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-api</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-servlet</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-template</artifactId>
<version>2.2.1</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
Expand Down Expand Up @@ -479,11 +508,16 @@
<dependency>
<groupId>org.akaza.openclinica.odm</groupId>
<artifactId>openclinica-odm</artifactId>
<version>0.1.0.BUILD-SNAPSHOT</version>
<version>2.0</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<!-- Jackson JSON Mapper -->
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-core-asl</artifactId>
<version>1.5.3</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
Expand All @@ -506,21 +540,41 @@
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>1.4.1</version>
</dependency>
<dependency>
<groupId>org.springframework.security.oauth</groupId>
<artifactId>spring-security-oauth</artifactId>
<version>1.0.0.M2</version>
</dependency>
<dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.1</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.1</version>
</dependency>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>3.2</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
<version>1.8.0</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils-core</artifactId>
<version>1.8.3</version>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down Expand Up @@ -712,6 +766,12 @@
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<buildNumberPropertyName>changeSet</buildNumberPropertyName>
<!--timestampFormat>"yyyy-MM-dd HH:mm Z"</timestampFormat-->
<!--format>{0} {1,date,yyyy-MM-dd HH:mm Z}</format>
<items>
<item>buildNumber</item>
<item>timestamp</item>
</items-->
</configuration>
</execution>
<execution>
Expand All @@ -723,9 +783,15 @@
<configuration>
<timestampPropertyName>changeSetDate</timestampPropertyName>
<timestampFormat>yyyy-MM-dd HH:mm Z</timestampFormat>
<!--format>{0} {1,date,yyyy-MM-dd HH:mm Z}</format>
<items>
<item>buildNumber</item>
<item>timestamp</item>
</items-->
</configuration>
</execution>
</executions>

</plugin>
</plugins>
<resources>
Expand All @@ -734,13 +800,15 @@
<filtering>true</filtering>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>**/*.properties</exclude>
<exclude>**/*.xml</exclude>
</excludes>
</resource>
</resources>
Expand Down
6 changes: 5 additions & 1 deletion src/assemble/designer-assemble.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@
<destName>Designer-${project.version}.war</destName>
</file>
</files>
</assembly>
<<<<<<< HEAD
</assembly>
=======
</assembly>
>>>>>>> 1.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// WARNING: DO NOT EDIT THIS FILE. THIS FILE IS MANAGED BY SPRING ROO.
// You may push code into the target .java compilation unit if you wish to edit any member(s).

package org.akaza.openclinica.designer.web.controller;


privileged aspect ApplicationConversionServiceFactoryBean_Roo_ConversionService {

public void ApplicationConversionServiceFactoryBean.afterPropertiesSet() {
super.afterPropertiesSet();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ public class AccessResourceController {
private static final String PARAM_APP_PATH = "path";
private static final String PARAM_STUDY_OID = "study_oid";
private static final String PARAM_PROVIDER_USER = "provider_user";
private static final String PARAM_RUN_TIME = "runTime";
private static final String PARAM_MESSAGE = "msg";
private static final String SESSION_ATTR_FORM = "form";

protected final Logger logger = LoggerFactory.getLogger(getClass().getName());
Expand All @@ -59,14 +61,17 @@ public AccessResourceController() {
public String createForm(Model model, HttpSession session, HttpServletRequest request, @RequestParam(PARAM_HOST) String providerHost,
@RequestParam(PARAM_APP) String providerApp, @RequestParam(PARAM_STUDY_OID) String studyOid,
@RequestParam(PARAM_PROVIDER_USER) String providerUser, @RequestParam(value = PARAM_APP_PATH, required = false) String path,
@RequestParam(value = PARAM_RULE_OID, required = false) String ruleOid, @RequestParam(value = PARAM_TARGET, required = false) String target)
@RequestParam(value = PARAM_RULE_OID, required = false) String ruleOid, @RequestParam(value = PARAM_TARGET, required = false) String target, @RequestParam(value = PARAM_RUN_TIME, required = false) String runTime, @RequestParam(value = PARAM_MESSAGE, required = false) String message)
throws Exception {

if (!hostAccessService.isHostAllowedAccess(providerHost)) {
return "index";
}
logger.debug("Host is Valid ...");

if (message != null) {
message = message.replace("-0-","\n");
message = message.replace("-1-"," ");
}
userPreferences.setAppName(providerApp);
userPreferences.setPath(path);
userPreferences.setUser(providerUser);
Expand All @@ -81,7 +86,7 @@ public String createForm(Model model, HttpSession session, HttpServletRequest re
session.setAttribute("providerUser", userPreferences.getUser());
session.setAttribute("providerHost", userPreferences.getHost());
if (ruleOid != null && target != null) {
session.setAttribute(SESSION_ATTR_FORM, uiODMBuilder.getContainer().getRuleCommandByRuleOidAndTarget(ruleOid, target));
session.setAttribute(SESSION_ATTR_FORM, uiODMBuilder.getContainer().getRuleCommandByRuleOidAndTarget(ruleOid, target, runTime, message));
userPreferences.turnOnEditMode();
}
// doRest();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
package org.akaza.openclinica.designer.web.controller;

import org.openclinica.ns.rules.v31.EventActionType;
import org.openclinica.ns.rules.v31.EventDestinationType;
import org.springframework.util.AutoPopulatingList;

public class LazyEventActionType extends EventActionType {

private AutoPopulatingList<LazyEventDestinationType> lazyProperties;

public LazyEventActionType() {
// TODO Auto-generated constructor stub
// destinationProperty = new ArrayList<PropertyType>();
lazyProperties = new AutoPopulatingList(LazyEventDestinationType.class);
}

public LazyEventActionType(EventActionType eventActionType) {
this();
this.setIfExpressionEvaluates(eventActionType.getIfExpressionEvaluates());
this.setOID(eventActionType.getOID());
this.setRunOnStatus(eventActionType.getRunOnStatus());
this.getEventDestination().addAll(eventActionType.getEventDestination());
for (EventDestinationType eventDestinationType : this.getEventDestination()) {
LazyEventDestinationType lazyEventDestination = new LazyEventDestinationType(eventDestinationType, "placeHolder");
getLazyProperties().add(lazyEventDestination);
}
}

public AutoPopulatingList<LazyEventDestinationType> getLazyProperties() {
return lazyProperties;
}

public void setLazyProperties(AutoPopulatingList<LazyEventDestinationType> lazyProperties) {
this.lazyProperties = lazyProperties;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package org.akaza.openclinica.designer.web.controller;

import org.openclinica.ns.rules.v31.EventDestinationType;

public class LazyEventDestinationType extends EventDestinationType {

String placeHolder;

public LazyEventDestinationType() {
// TODO Auto-generated constructor stub
}

public LazyEventDestinationType(EventDestinationType eventDestinationType, String placeHolder) {
this.setProperty(eventDestinationType.getProperty());
this.setValueExpression(eventDestinationType.getValueExpression());
this.placeHolder = placeHolder;
}

public String getPlaceHolder() {
return placeHolder;
}

public void setPlaceHolder(String placeHolder) {
this.placeHolder = placeHolder;
}

}
Loading