Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description = "Presentation app"
group = 'org.jlab'
version = new File("${projectDir}/VERSION").text.trim()
ext.version = project.version
ext.smoothnessVersion = '5.2.0'
ext.releaseDate = new Date().format('MMM dd yyyy')

tasks.withType(JavaCompile).configureEach {
Expand All @@ -18,6 +19,9 @@ repositories {
mavenCentral()
}
dependencies {
// No matter what smoothness weblib MUST be included in WAR (https://github.com/JeffersonLab/smoothness/issues/4)
implementation "org.jlab:smoothness-weblib:${smoothnessVersion}"

// Java 11 / Java EE 8 oddly doesn't support POSTING multipart/form-data
implementation 'org.apache.httpcomponents:httpmime:4.5.14'

Expand Down Expand Up @@ -46,6 +50,9 @@ war {
filter {
String line -> line.replaceAll("@RELEASE_DATE@", releaseDate)
}
filter {
String line -> line.replaceAll("@SMOOTHNESS_VERSION@", smoothnessVersion)
}
}
}
spotless {
Expand Down
56 changes: 55 additions & 1 deletion container/oracle/initdb.d/02_ddl.sql
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,18 @@ CREATE SEQUENCE PRESENTER_OWNER.SLIDE_ID
NOCACHE
ORDER;

CREATE SEQUENCE PRESENTER_OWNER.TEAM_ID
START WITH 1
NOCYCLE
NOCACHE
ORDER;

CREATE SEQUENCE PRESENTER_OWNER.TEAM_STATUS_REPORT_ID
START WITH 1
NOCYCLE
NOCACHE
ORDER;

CREATE TABLE PRESENTER_OWNER.PRESENTATION
(
PRESENTATION_ID INTEGER NOT NULL ,
Expand Down Expand Up @@ -332,4 +344,46 @@ CREATE TABLE PRESENTER_OWNER.STAFF
(
"STAFF_ID" NUMBER(*,0) NOT NULL,
"USERNAME" VARCHAR2(32)
);
);

CREATE TABLE PRESENTER_OWNER.TEAM
(
TEAM_ID INTEGER NOT NULL,
NAME VARCHAR2(128 CHAR) NOT NULL,
DESCRIPTION VARCHAR2(1024 CHAR) NULL,
DIRECTORY_ROLE VARCHAR2(64 CHAR) NOT NULL,
WEIGHT INTEGER DEFAULT 0 NOT NULL,
ARCHIVED_YN VARCHAR2(1 CHAR) DEFAULT 'N' NOT NULL,
CONSTRAINT TEAM_PK PRIMARY KEY (TEAM_ID),
CONSTRAINT TEAM_AK1 UNIQUE (NAME),
CONSTRAINT TEAM_CK1 CHECK (ARCHIVED_YN IN ('Y', 'N'))
);

CREATE TABLE PRESENTER_OWNER.TEAM_STATUS_REPORT
(
TEAM_STATUS_REPORT_ID INTEGER NOT NULL,
TEAM_ID INTEGER NOT NULL,
YMD TIMESTAMP(0) NOT NULL,
ACCOMPLISHED CLOB NULL,
IN_PROGRESS CLOB NULL,
PLANNED CLOB NULL,
ROADBLOCKS CLOB NULL,
CONSTRAINT TEAM_STATUS_REPORT_PK PRIMARY KEY (TEAM_STATUS_REPORT_ID),
CONSTRAINT TEAM_STATUS_REPORT_FK FOREIGN KEY (TEAM_ID) REFERENCES PRESENTER_OWNER.TEAM(TEAM_ID),
CONSTRAINT TEAM_STATUS_REPORT_AK1 UNIQUE (TEAM_ID, YMD),
CONSTRAINT TEAM_STATUS_REPORT_CK1 CHECK (EXTRACT(HOUR FROM YMD) = 0 AND EXTRACT(MINUTE FROM YMD) = 0 AND EXTRACT(SECOND FROM YMD) = 0)
);

CREATE TABLE PRESENTER_OWNER.SETTING
(
KEY VARCHAR2(128 CHAR) NOT NULL,
VALUE VARCHAR2(4000 BYTE) NOT NULL,
TYPE VARCHAR2(32 CHAR) DEFAULT 'STRING' NOT NULL,
DESCRIPTION VARCHAR2(2048 CHAR) NOT NULL,
TAG VARCHAR2(32 CHAR) DEFAULT 'OTHER' NOT NULL,
WEIGHT INTEGER DEFAULT 0 NOT NULL,
CHANGE_ACTION_JNDI VARCHAR2(128 CHAR) NULL ,
CONSTRAINT SETTING_PK PRIMARY KEY (KEY),
CONSTRAINT SETTING_CK1 CHECK (TYPE IN ('STRING', 'BOOLEAN', 'CSV')),
CONSTRAINT SETTING_CK2 CHECK ((VALUE in ('Y', 'N') AND TYPE = 'BOOLEAN') OR TYPE <> 'BOOLEAN')
);
44 changes: 44 additions & 0 deletions container/oracle/initdb.d/03_default_data.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,46 @@
alter session set container = XEPDB1;

-- Special characters such as the ampersand will result in prompt without this directive.
SET DEFINE OFF;

insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'Injector', 'Accelerator division center for injectors and sources group', 'cis', 0, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'Mechanical Support', 'Accelerator division electrical engineering support services group', 'eess', 1, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'RF', 'Radio frequency electrical work group', 'rf', 2, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'SRF', 'Super radio frequency work group', 'srf', 3, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'Vacuum', 'Vacuum group', 'vac', 4, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'DC Power', 'DC Power group', 'dcpower', 5, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'Instrumentation & Controls', 'I&C group', 'ic', 6, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'Safety Systems', 'Safety group', 'ssg', 7, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'Survey & Alignment', 'Alignment group', 'alignment', 8, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'Accelerator Computing', 'Accelerator division computing group', 'acg', 9, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'Cryogenics', 'Cryo group', 'cryo', 10, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'F&O', 'Facilities group', 'facilities', 11, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'ES&H', 'ES&H group', 'health', 12, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'Hall A (Moller Install)', 'Physics division Hall A', 'halla', 13, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'Hall B', 'I&C group', 'hallb', 14, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'Hall C', 'I&C group', 'hallc', 15, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'Hall D', 'I&C group', 'halld', 16, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'LERF', 'LERF group', 'lerf', 17, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'Gun Test Stand', 'GTS group', 'gts', 18, 'N');
insert into PRESENTER_OWNER.TEAM (TEAM_ID, NAME, DESCRIPTION, DIRECTORY_ROLE, WEIGHT, ARCHIVED_YN) values (PRESENTER_OWNER.TEAM_ID.nextval, 'UITF', 'UITF group', 'uitf', 19, 'N');

insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 1, TRUNC(SYSDATE), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 2, TRUNC(SYSDATE), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 3, TRUNC(SYSDATE), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 4, TRUNC(SYSDATE), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 5, TRUNC(SYSDATE), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 6, TRUNC(SYSDATE), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 1, TRUNC(SYSDATE - INTERVAL '1' DAY), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 2, TRUNC(SYSDATE - INTERVAL '1' DAY), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 3, TRUNC(SYSDATE - INTERVAL '1' DAY), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 4, TRUNC(SYSDATE - INTERVAL '1' DAY), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 5, TRUNC(SYSDATE - INTERVAL '1' DAY), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 6, TRUNC(SYSDATE - INTERVAL '1' DAY), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 1, TRUNC(SYSDATE - INTERVAL '2' DAY), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 2, TRUNC(SYSDATE - INTERVAL '2' DAY), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 3, TRUNC(SYSDATE - INTERVAL '2' DAY), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 4, TRUNC(SYSDATE - INTERVAL '2' DAY), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 5, TRUNC(SYSDATE - INTERVAL '2' DAY), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');
insert into PRESENTER_OWNER.TEAM_STATUS_REPORT(TEAM_STATUS_REPORT_ID, TEAM_ID, YMD, ACCOMPLISHED, IN_PROGRESS, PLANNED, ROADBLOCKS) values (PRESENTER_OWNER.TEAM_STATUS_REPORT_ID.nextval, 6, TRUNC(SYSDATE - INTERVAL '2' DAY), 'Nothing Accomplished!', 'Nothing in progress!', 'Nothing planned', 'Nothing blocking!');


34 changes: 34 additions & 0 deletions container/oracle/initdb.d/04_settings.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
alter session set container = XEPDB1;

-- SETTING CONFIG
-- Update with your schema name
ALTER SESSION SET CURRENT_SCHEMA = PRESENTER_OWNER;

-- REQUIRED: Admin Config
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('ADMIN_ROLE_NAME', 'presenter-admin', 'STRING', 'App-specific Admin Role Name', 'AUTH', 1);

-- OPTIONAL: CDN Config
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('SMOOTHNESS_CDN_ENABLED', 'N', 'BOOLEAN', 'Smoothness weblib resources from CDN. Defaults to No = serve files locally. CDN is for minified files on shared Content Delivery Network (CDN) server - Nice for when multiple apps use same resources to have warm cache.', 'CDN', 1);
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('SMOOTHNESS_SERVER', 'ace.jlab.org/cdn', 'STRING', 'Host name and port of content delivery network host for shared smoothness resources. Only used if SMOOTHNESS_CDN_ENABLED = Y', 'CDN', 2);

-- OPTIONAL: IP READ FILTER (ACL)
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('IP_READ_FILTER_ENABLED', 'N', 'BOOLEAN', 'Whether to enable IP filtering of pages requiring auth to view. You must redeploy the app for this setting change to take effect.', 'ACL', 1);
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT, CHANGE_ACTION_JNDI) values ('IP_READ_ALLOWLIST_PATTERN', '127\.0.*', 'STRING', 'Java REGEX Pattern of allowed IPs for unauthenticated access to view IpReadFilter pages', 'ACL', 2, 'java:global/smoothness/IpReadAllowlistReconfigureService');
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('IP_READ_URL_PATTERN', '/*', 'STRING', 'URL patterns to match when applying the IP Read Filter. You must redeploy the app for this setting change to take effect.', 'ACL', 3);

-- OPTIONAL: Notification Banner
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('NOTIFICATION_ENABLED', 'Y', 'BOOLEAN', 'Notification banner enabled', 'NOTIFICATION', 1);
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('NOTIFICATION_MESSAGE', 'Development Environment', 'STRING', 'Notification message', 'NOTIFICATION', 2);
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('NOTIFICATION_LINK_NAME', 'Home', 'STRING', 'Notification link name', 'NOTIFICATION', 3);
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('NOTIFICATION_LINK_URL', 'https://github.com/JeffersonLab/presenter', 'STRING', 'Notification link URL', 'NOTIFICATION', 4);

-- OPTIONAL: Help Page
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('HELP_CONTENT_CONTACT', 'John Doe (jdoe)', 'STRING', 'Content Contact for help page', 'HELP', 1);
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('HELP_TECHNICAL_CONTACT', 'John Doe (jdoe)', 'STRING', 'Technical Contact for help page', 'HELP', 2);
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('HELP_DOC_CSV', 'https://github.com/JeffersonLab/presenter|Home', 'CSV', 'CSV of documentation items where each item is a URL and a Label separated with the pipe symbol', 'HELP', 3);

-- OPTIONAL: Email
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('EMAIL_ENABLED', 'Y', 'BOOLEAN', 'Emails (including Help/Feedback) enabled', 'EMAIL', 1);
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('EMAIL_TESTING_ENABLED', 'N', 'BOOLEAN', 'Send all emails to testlead user group', 'EMAIL', 2);
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('EMAIL_DOMAIN_NAME', '@jlab.org', 'STRING', 'The email domain to append to usernames, starting with and including the ampersat.', 'EMAIL', 3);
insert into SETTING (KEY, VALUE, TYPE, DESCRIPTION, TAG, WEIGHT) values ('EMAIL_SENDER_ADDRESS', 'template@jlab.org', 'STRING', 'Email address to use as sender from emails generated in this app. Note: this is not the same as "from".', 'EMAIL', 4);
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
@Stateless
public class AccActivityRecordFacade extends AbstractFacade<AccActivityRecord> {
@PersistenceContext(unitName = "presenterPU")
@PersistenceContext(unitName = "webappPU")
private EntityManager em;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
@Stateless
public class AccessRecordFacade extends AbstractFacade<AccessRecord> {
@PersistenceContext(unitName = "presenterPU")
@PersistenceContext(unitName = "webappPU")
private EntityManager em;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
@Stateless
public class BeamToHallRecordFacade extends AbstractFacade<BeamToHallRecord> {
@PersistenceContext(unitName = "presenterPU")
@PersistenceContext(unitName = "webappPU")
private EntityManager em;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
@Stateless
public class BodySlideFacade extends AbstractFacade<BodySlide> {
@PersistenceContext(unitName = "presenterPU")
@PersistenceContext(unitName = "webappPU")
private EntityManager em;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
@Stateless
public class BtaRecordFacade extends AbstractFacade<BtaRecord> {
@PersistenceContext(unitName = "presenterPU")
@PersistenceContext(unitName = "webappPU")
private EntityManager em;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*/
@Stateless
public class BtaShiftInfoSlideFacade extends AbstractFacade<BtaShiftInfoSlide> {
@PersistenceContext(unitName = "presenterPU")
@PersistenceContext(unitName = "webappPU")
private EntityManager em;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/
@Stateless(mappedName = "CCPresentationFacade")
public class CCPresentationFacade extends ShiftPresentationFacade<CCPresentation> {
@PersistenceContext(unitName = "presenterPU")
@PersistenceContext(unitName = "webappPU")
private EntityManager em;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
@Stateless
public class IFrameSlideFacade extends AbstractFacade<IFrameSlide> {
@PersistenceContext(unitName = "presenterPU")
@PersistenceContext(unitName = "webappPU")
private EntityManager em;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
@Stateless
public class ImageSlideFacade extends AbstractFacade<ImageSlide> {
@PersistenceContext(unitName = "presenterPU")
@PersistenceContext(unitName = "webappPU")
private EntityManager em;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@Stateless
public class LASOPresentationFacade extends ShiftPresentationFacade<LASOPresentation> {

@PersistenceContext(unitName = "presenterPU")
@PersistenceContext(unitName = "webappPU")
private EntityManager em;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@Stateless
public class LOPresentationFacade extends ShiftPresentationFacade<LOPresentation> {

@PersistenceContext(unitName = "presenterPU")
@PersistenceContext(unitName = "webappPU")
private EntityManager em;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
@DeclareRoles({"pd", "presenter-admin"})
public class PDPresentationFacade extends AbstractFacade<PDPresentation> {

@PersistenceContext(unitName = "presenterPU")
@PersistenceContext(unitName = "webappPU")
private EntityManager em;

@EJB SlideFacade slideFacade;
Expand Down
Loading
Loading