Commit de l'installateur izPack

This commit is contained in:
2008-03-12 00:10:26 +00:00
parent 8c97b6a009
commit e145ddf2ac
19 changed files with 481 additions and 1 deletions

View File

@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<installation version="1.0">
<!-- Ant properties in this file can be referenced with @{},
otherwise use variables below in installer files with ${} -->
<info>
<appname>YACOS</appname>
<appversion>1.0.0</appversion>
<uninstaller name="Uninstall.jar" write="yes"/>
<authors>
<author name="Christian Corsano" email="christian.corsano@gmail.com"/>
<author name="Maxime Dagnicourt" email="maxime.dagnicourt@gmail.com"/>
<author name="Frederic Debuire" email="frederic.debuire@gmail.com"/>
<author name="Nicolas Michard" email="nicolas.michard@gmail.com"/>
<author name="Jialin Wang" email="kooksnake@hotmail.com"/>
</authors>
<javaversion>1.5</javaversion>
<requiresjdk>yes</requiresjdk>
</info>
<guiprefs width="600" height="480" resizable="no">
<laf name="kunststoff">
<os family="unix" />
</laf>
<modifier key="useHeadingPanel" value="yes"/>
<modifier key="useHeadingForSummary" value="yes"/>
<modifier key="headingLineCount" value="2"/>
<modifier key="headingFontSize" value="1.5"/>
<modifier key="headingBackgroundColor" value="0x00ffffff"/>
<modifier key="headingPanelCounter" value="text"/>
<modifier key="headingPanelCounterPos" value="inHeading"/>
</guiprefs>
<locale>
<langpack iso3="eng"/>
<langpack iso3="fra"/>
</locale>
<!-- Need to define ant properties we want to use during install as variables -->
<variables>
<variable name="app_name" value="YACOS"/>
<variable name="jboss_version" value="jboss-4.2.2.GA"/>
</variables>
<resources>
<res id="installer.langsel.img" src="logo.png"/>
<res id="HTMLInfoPanel.info_eng" src="info-eng.html"/>
<res id="HTMLInfoPanel.info_fra" src="info-fra.html"/>
<res id="userInputSpec.xml" src="userInputSpec.xml" />
<res id="packsLang.xml_eng" src="packsLang.xml_eng" />
<res id="packsLang.xml_fra" src="packsLang.xml_fra" />
<res id="userInputLang.xml_eng" src="userInputLang.xml_eng" />
<res id="userInputLang.xml_fra" src="userInputLang.xml_fra" />
<res src="shortcutSpec.xml" id="shortcutSpec.xml"/>
</resources>
<panels>
<panel classname="HelloPanel"/>
<panel classname="HTMLInfoPanel"/>
<panel classname="TargetPanel"/>
<panel classname="PacksPanel"/>
<panel classname="UserInputPanel" id="UserInputPanel.0"/>
<panel classname="SummaryPanel"/>
<panel classname="InstallPanel"/>
<panel classname="ShortcutPanel"/>
<panel classname="SimpleFinishPanel"/>
</panels>
<listeners>
<listener installer="SummaryLoggerInstallerListener">
<os family="windows"/>
</listener>
</listeners>
<packs>
<pack name="JBoss 4.2.2" required="yes" installGroups="Server" id="jboss">
<description>The first application deployed is a new JBoss application server to run YACOS.</description>
<file src="jboss-4.2.2.GA.zip" targetdir="$INSTALL_PATH" unpack="true"/>
</pack>
<pack name="YACOSCore" required="yes" installGroups="YACOS" id="YACOSCore">
<description>The YACOS business core.</description>
<file src="YACOSCore.jar" targetdir="$INSTALL_PATH/jboss-4.2.2.GA/server/default/deploy"/>
</pack>
<pack name="YACOSWeb" required="yes" installGroups="YACOS" id="YACOSWeb">
<description>The YACOS Web interface.</description>
<!--file src="YACOSWeb.war" targetdir="$INSTALL_PATH/jboss-4.2.2.GA/server/default/deploy"/-->
<!-- Installs YACOSWeb as the ROOT application -->
<singlefile src="YACOSWeb.war" target="$INSTALL_PATH/jboss-4.2.2.GA/server/default/deploy/ROOT.war"/>
<!-- Deploy the database (with Admin user account) -->
<file src="localDB.script" override="true" targetdir="$INSTALL_PATH/jboss-4.2.2.GA/server/default/data/hypersonic"/>
</pack>
<pack name="Server configuration" required="yes" id="ServerConfig">
<description>Configuration required for the installation.</description>
<!-- Replace the Tomcat server.xml config file to allow lauching on a different port -->
<singlefile src="tomcat-server.xml" target="$INSTALL_PATH/jboss-4.2.2.GA/server/default/deploy/jboss-web.deployer/server.xml" override="true"/>
<!-- Sets the easy laucher for UNIX systems -->
<file src="StartYACOS.sh" targetdir="$INSTALL_PATH"/>
<parsable targetfile="$INSTALL_PATH/StartYACOS.sh" type="at"/>
<executable targetfile="$INSTALL_PATH/StartYACOS.sh" stage="never"/>
<!-- Sets the easy laucher for Windows systems -->
<file src="StartYACOS.bat" targetdir="$INSTALL_PATH"/>
<parsable targetfile="$INSTALL_PATH/StartYACOS.bat" type="at"/>
<executable targetfile="$INSTALL_PATH/StartYACOS.bat" stage="never"/>
</pack>
</packs>
<native type="izpack" name="ShellLink.dll"/>
</installation>

View File

@@ -0,0 +1 @@
jboss-4.2.2.GA/bin/run.bat --host=@{server.address} -Dyacos.port=@{server.port}

View File

@@ -0,0 +1 @@
sh jboss-4.2.2.GA/bin/run.sh --host=@{server.address} -Dyacos.port=@{server.port}

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,31 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="949.27">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 6.0px 0.0px; line-height: 14.0px; font: 11.0px Geneva; color: #ffffff; min-height: 15.0px}
p.p2 {margin: 0.0px 0.0px 6.0px 0.0px; text-align: center; line-height: 14.0px; font: 23.0px Geneva; color: #eb5e1d}
p.p3 {margin: 0.0px 0.0px 6.0px 0.0px; text-align: center; line-height: 14.0px; font: 13.0px Geneva; color: #837d7d}
p.p4 {margin: 0.0px 0.0px 6.0px 0.0px; text-align: center; line-height: 14.0px; font: 13.0px Geneva; color: #837d7d; min-height: 17.0px}
p.p5 {margin: 0.0px 0.0px 6.0px 0.0px; line-height: 14.0px; font: 13.0px Geneva; color: #282626}
p.p6 {margin: 0.0px 0.0px 6.0px 0.0px; line-height: 14.0px; font: 11.0px Geneva; color: #282626}
p.p7 {margin: 0.0px 0.0px 6.0px 0.0px; line-height: 14.0px; font: 11.0px Geneva; color: #282626; min-height: 15.0px}
</style>
</head>
<body>
<p class="p1"><br></p>
<p class="p2">YACOS</p>
<p class="p3">Yet Another Conference Organization System</p>
<p class="p4"><br></p>
<p class="p5">What is YACOS ?</p>
<p class="p6">YACOS is a university project for managing international scientific conferences. This tool is developed by a team of 5, using the JEE technology.</p>
<p class="p7"><br></p>
<p class="p6">Please notice that you need to have the Java Software Development Kit 1.5 (Java SDK 1.5) installed in order to run the server.</p>
<p class="p7"><br></p>
<p class="p6">An installation is available with this distribution.</p>
</body>
</html>

View File

@@ -0,0 +1,31 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Style-Type" content="text/css">
<title></title>
<meta name="Generator" content="Cocoa HTML Writer">
<meta name="CocoaVersion" content="949.27">
<style type="text/css">
p.p1 {margin: 0.0px 0.0px 6.0px 0.0px; font: 11.0px Geneva; color: #ffffff; min-height: 15.0px}
p.p2 {margin: 0.0px 0.0px 6.0px 0.0px; text-align: center; font: 23.0px Geneva; color: #d96429}
p.p3 {margin: 0.0px 0.0px 6.0px 0.0px; text-align: center; font: 13.0px Geneva; color: #827d7d}
p.p4 {margin: 0.0px 0.0px 6.0px 0.0px; text-align: center; font: 13.0px Geneva; color: #827d7d; min-height: 17.0px}
p.p5 {margin: 0.0px 0.0px 6.0px 0.0px; font: 13.0px Geneva; color: #282626}
p.p6 {margin: 0.0px 0.0px 6.0px 0.0px; font: 11.0px Geneva; color: #282626}
p.p7 {margin: 0.0px 0.0px 6.0px 0.0px; font: 11.0px Geneva; color: #282626; min-height: 15.0px}
</style>
</head>
<body>
<p class="p1"><br></p>
<p class="p2">YACOS</p>
<p class="p3">Yet Another Conference Organization System</p>
<p class="p4"><br></p>
<p class="p5">Qu'est-ce que YACOS ?</p>
<p class="p6">YACOS est un projet universitaire destiné à la gestion de conférences scientifiques internationnales. Cet outil est développé par une équipe de 5 étudiants, en utilisant les technologies JEE.</p>
<p class="p7"><br></p>
<p class="p6">Veuillez noter que vous devez avoir le Kit de Développement Java 1.5 (Java SDK 1.5) installé pour pouvoir lancer le serveur.</p>
<p class="p7"><br></p>
<p class="p6">Le cas échéant, un installateur est disponible dans cette distribution.</p>
</body>
</html>

View File

@@ -0,0 +1,63 @@
CREATE SCHEMA PUBLIC AUTHORIZATION DBA
CREATE MEMORY TABLE TIMERS(TIMERID VARCHAR(80) NOT NULL,TARGETID VARCHAR(250) NOT NULL,INITIALDATE TIMESTAMP NOT NULL,TIMERINTERVAL BIGINT,INSTANCEPK VARBINARY,INFO VARBINARY,CONSTRAINT TIMERS_PK PRIMARY KEY(TIMERID,TARGETID))
CREATE MEMORY TABLE HILOSEQUENCES(SEQUENCENAME VARCHAR(50) NOT NULL,HIGHVALUES INTEGER NOT NULL,CONSTRAINT HILO_PK PRIMARY KEY(SEQUENCENAME))
CREATE MEMORY TABLE JMS_USERS(USERID VARCHAR(32) NOT NULL PRIMARY KEY,PASSWD VARCHAR(32) NOT NULL,CLIENTID VARCHAR(128))
CREATE MEMORY TABLE JMS_ROLES(ROLEID VARCHAR(32) NOT NULL,USERID VARCHAR(32) NOT NULL,PRIMARY KEY(USERID,ROLEID))
CREATE MEMORY TABLE JMS_SUBSCRIPTIONS(CLIENTID VARCHAR(128) NOT NULL,SUBNAME VARCHAR(128) NOT NULL,TOPIC VARCHAR(255) NOT NULL,SELECTOR VARCHAR(255),PRIMARY KEY(CLIENTID,SUBNAME))
CREATE CACHED TABLE JMS_MESSAGES(MESSAGEID INTEGER NOT NULL,DESTINATION VARCHAR(255) NOT NULL,TXID INTEGER,TXOP CHAR(1),MESSAGEBLOB OBJECT,PRIMARY KEY(MESSAGEID,DESTINATION))
CREATE INDEX JMS_MESSAGES_TXOP_TXID ON JMS_MESSAGES(TXOP,TXID)
CREATE INDEX JMS_MESSAGES_DESTINATION ON JMS_MESSAGES(DESTINATION)
CREATE CACHED TABLE JMS_TRANSACTIONS(TXID INTEGER NOT NULL PRIMARY KEY)
CREATE MEMORY TABLE ARTICLE(ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,STATE INTEGER,TOPIC VARCHAR(255),TITLE VARCHAR(255),ABSTRACTTEXT VARCHAR(255),URL_ARTICLE VARCHAR(255),SECONDARYAUTHORS VARBINARY(255),MAINAUTHOR VARCHAR(255) NOT NULL,CONFERENCE_ID INTEGER NOT NULL)
CREATE MEMORY TABLE CONFERENCE(ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,DESCRIPTION VARCHAR(255),TITLE VARCHAR(255),DATEABSTRACT DATE,DATEARTICLE DATE,DATEEND DATE,DATEEVALUATION DATE,DATESTART DATE,OTHERINFORMATIONS VARCHAR(255),PAGENUMBER INTEGER,TYPEPDF BOOLEAN NOT NULL,TYPELATEC BOOLEAN NOT NULL,TYPEWORD BOOLEAN NOT NULL,TYPEODT BOOLEAN NOT NULL,SENDINFO VARCHAR(255),CHAIRMAN_ID VARCHAR(255))
CREATE MEMORY TABLE CRITERION(ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,NAME VARCHAR(255),MIN_RATING INTEGER,MAX_RATING INTEGER,CONFERENCE_ID INTEGER NOT NULL,CONSTRAINT FK8E542E811FC29A87 FOREIGN KEY(CONFERENCE_ID) REFERENCES CONFERENCE(ID))
CREATE MEMORY TABLE DELEGATION(ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,ARTICLE_ID INTEGER,REFEREE_ID VARCHAR(255),PCMEMBER_ID VARCHAR(255),CONSTRAINT FKC9A68948B7E096EC FOREIGN KEY(ARTICLE_ID) REFERENCES ARTICLE(ID))
CREATE MEMORY TABLE INVITATIONTOKEN(EMAIL VARCHAR(255) NOT NULL,ROLE INTEGER NOT NULL,CONFERENCE_ID INTEGER NOT NULL,PRIMARY KEY(EMAIL,ROLE,CONFERENCE_ID),CONSTRAINT FK474EE1C01FC29A87 FOREIGN KEY(CONFERENCE_ID) REFERENCES CONFERENCE(ID))
CREATE MEMORY TABLE MESSAGE(ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,MESSAGE VARCHAR(255),TITLE VARCHAR(255),DATEMESSAGE DATE,ARTICLE_ID INTEGER NOT NULL,USER_ID VARCHAR(255) NOT NULL,CONSTRAINT FK9C2397E7B7E096EC FOREIGN KEY(ARTICLE_ID) REFERENCES ARTICLE(ID))
CREATE MEMORY TABLE PREFERENCE(PREFERENCETYPE INTEGER,ARTICLE_ID INTEGER NOT NULL,PCMEMBER_ID VARCHAR(255) NOT NULL,PRIMARY KEY(PCMEMBER_ID,ARTICLE_ID),CONSTRAINT FK1FCE98FBB7E096EC FOREIGN KEY(ARTICLE_ID) REFERENCES ARTICLE(ID))
CREATE MEMORY TABLE RATING(VALUE INTEGER,CRITERION_ID INTEGER NOT NULL,REPORT_ID INTEGER NOT NULL,PRIMARY KEY(CRITERION_ID,REPORT_ID),CONSTRAINT FK917A9DBDFD7085FE FOREIGN KEY(CRITERION_ID) REFERENCES CRITERION(ID))
CREATE MEMORY TABLE REPORT(ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,COMMENTAUTHOR VARCHAR(255),COMMENTPCMEMBER VARCHAR(255),ARTICLE_ID INTEGER NOT NULL,REFEREE_ID VARCHAR(255) NOT NULL,CONSTRAINT FK91B14154B7E096EC FOREIGN KEY(ARTICLE_ID) REFERENCES ARTICLE(ID))
CREATE MEMORY TABLE ROLE(TYPE INTEGER NOT NULL,CONFERENCE_ID INTEGER NOT NULL,USER_ID VARCHAR(255) NOT NULL,PRIMARY KEY(USER_ID,CONFERENCE_ID,TYPE),CONSTRAINT FK26F4961FC29A87 FOREIGN KEY(CONFERENCE_ID) REFERENCES CONFERENCE(ID))
CREATE MEMORY TABLE SPECIALITY(ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,NAME VARCHAR(255))
CREATE MEMORY TABLE ARTICLES_PCMEMBERS_MAP(ARTICLE_ID INTEGER NOT NULL,USER_ID VARCHAR(255) NOT NULL,CONSTRAINT FKC514AAE1B7E096EC FOREIGN KEY(ARTICLE_ID) REFERENCES ARTICLE(ID))
CREATE MEMORY TABLE SPECIALITY_USER_MAP(SPECIALITYID VARCHAR(255) NOT NULL,USERID INTEGER NOT NULL,CONSTRAINT FK8CD55292E89D0A77 FOREIGN KEY(USERID) REFERENCES SPECIALITY(ID))
CREATE MEMORY TABLE USER(LOGIN VARCHAR(255) NOT NULL PRIMARY KEY,PASSWORD VARCHAR(255),CONFERENCECREATIONTOKENS INTEGER NOT NULL,EMAIL VARCHAR(255),FIRSTNAME VARCHAR(255),LASTNAME VARCHAR(255),ORGANIZATION VARCHAR(255),CONSTRAINT SYS_CT_85 UNIQUE(LOGIN,EMAIL))
ALTER TABLE ARTICLE ADD CONSTRAINT FK379164D645B5784B FOREIGN KEY(MAINAUTHOR) REFERENCES USER(LOGIN)
ALTER TABLE ARTICLE ADD CONSTRAINT FK379164D61FC29A87 FOREIGN KEY(CONFERENCE_ID) REFERENCES CONFERENCE(ID)
ALTER TABLE CONFERENCE ADD CONSTRAINT FKA231213CFBADC4EC FOREIGN KEY(CHAIRMAN_ID) REFERENCES USER(LOGIN)
ALTER TABLE DELEGATION ADD CONSTRAINT FKC9A689486494C461 FOREIGN KEY(REFEREE_ID) REFERENCES USER(LOGIN)
ALTER TABLE DELEGATION ADD CONSTRAINT FKC9A68948FE81DC14 FOREIGN KEY(PCMEMBER_ID) REFERENCES USER(LOGIN)
ALTER TABLE MESSAGE ADD CONSTRAINT FK9C2397E79472DD6 FOREIGN KEY(USER_ID) REFERENCES USER(LOGIN)
ALTER TABLE PREFERENCE ADD CONSTRAINT FK1FCE98FBFE81DC14 FOREIGN KEY(PCMEMBER_ID) REFERENCES USER(LOGIN)
ALTER TABLE RATING ADD CONSTRAINT FK917A9DBDE5657BD6 FOREIGN KEY(REPORT_ID) REFERENCES REPORT(ID)
ALTER TABLE REPORT ADD CONSTRAINT FK91B141546494C461 FOREIGN KEY(REFEREE_ID) REFERENCES USER(LOGIN)
ALTER TABLE ROLE ADD CONSTRAINT FK26F4969472DD6 FOREIGN KEY(USER_ID) REFERENCES USER(LOGIN)
ALTER TABLE ARTICLES_PCMEMBERS_MAP ADD CONSTRAINT FKC514AAE19472DD6 FOREIGN KEY(USER_ID) REFERENCES USER(LOGIN)
ALTER TABLE SPECIALITY_USER_MAP ADD CONSTRAINT FK8CD55292C739BCF7 FOREIGN KEY(SPECIALITYID) REFERENCES USER(LOGIN)
ALTER TABLE ARTICLE ALTER COLUMN ID RESTART WITH 1
ALTER TABLE CONFERENCE ALTER COLUMN ID RESTART WITH 1
ALTER TABLE CRITERION ALTER COLUMN ID RESTART WITH 1
ALTER TABLE DELEGATION ALTER COLUMN ID RESTART WITH 1
ALTER TABLE MESSAGE ALTER COLUMN ID RESTART WITH 1
ALTER TABLE REPORT ALTER COLUMN ID RESTART WITH 1
ALTER TABLE SPECIALITY ALTER COLUMN ID RESTART WITH 1
CREATE USER SA PASSWORD ""
GRANT DBA TO SA
SET WRITE_DELAY 10
SET SCHEMA PUBLIC
INSERT INTO HILOSEQUENCES VALUES('general',0)
INSERT INTO JMS_USERS VALUES('dynsub','dynsub',NULL)
INSERT INTO JMS_USERS VALUES('guest','guest',NULL)
INSERT INTO JMS_USERS VALUES('j2ee','j2ee',NULL)
INSERT INTO JMS_USERS VALUES('john','needle','DurableSubscriberExample')
INSERT INTO JMS_USERS VALUES('nobody','nobody',NULL)
INSERT INTO JMS_ROLES VALUES('durpublisher','dynsub')
INSERT INTO JMS_ROLES VALUES('publisher','dynsub')
INSERT INTO JMS_ROLES VALUES('guest','guest')
INSERT INTO JMS_ROLES VALUES('j2ee','guest')
INSERT INTO JMS_ROLES VALUES('john','guest')
INSERT INTO JMS_ROLES VALUES('durpublisher','john')
INSERT INTO JMS_ROLES VALUES('publisher','john')
INSERT INTO JMS_ROLES VALUES('subscriber','john')
INSERT INTO JMS_ROLES VALUES('noacc','nobody')
INSERT INTO USER VALUES('admin','8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918',0,'admin@yacos.dreamhosters.com','Admin','Admin','YACOS')

BIN
YACOSCore/Install/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 KiB

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<langpack>
<str id="jboss.description" txt="The first application deployed is a new JBoss application server to run YACOS." />
<str id="YACOSCore.description" txt="The YACOS business core." />
<str id="YACOSWeb.description" txt="The YACOS Web interface." />
<str id="ServerConfig.description" txt="Server configuration" />
<str id="ServerConfig.description" txt="Configuration required for the installation." />
</langpack>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<langpack>
<str id="jboss.description" txt="Le serveur Web JBoss utilisé pour lancer YACOS." />
<str id="YACOSCore.description" txt="Le coeur métier YACOS." />
<str id="YACOSWeb.description" txt="L'interface web YACOS." />
<str id="ServerConfig.description" txt="Configuration du serveur." />
<str id="ServerConfig.description" txt="Effectue les réglages de configuration nécessaires à l'installation." />
</langpack>

View File

@@ -0,0 +1,15 @@
<shortcuts>
<skipIfNotSupported/>
<programGroup defaultName="YACOS\Start YACOS"
location="startMenu" id="yacos.programgroup"/>
<shortcut
name="Start YACOS"
target="$INSTALL_PATH\StartYACOS.bat"
commandLine=""
workingDirectory="$INSTALL_PATH\"
description="Starts the YACOS JBoss Server"
desktop="yes"
applications="yes||no"
startMenu="yes" id="yacos.shortcut">
</shortcut>
</shortcuts>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<langpack>
<str id="yacos.programgroup.defaultName" txt="YACOS\Start YACOS"/>
<str id="yacos.shortcut.name" txt="Start YACOS"/>
<str id="yacos.shortcut.description" txt="Starts the YACOS JBoss Server"/>
</langpack>

View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<langpack>
<str id="yacos.programgroup.defaultName" txt="YACOS\Démarrer YACOS"/>
<str id="yacos.shortcut.name" txt="Démarrer YACOS"/>
<str id="yacos.shortcut.description" txt="Démarre le serveur JBoss YACOS"/>
</langpack>

View File

@@ -0,0 +1,165 @@
<Server>
<!--APR library loader. Documentation at /docs/apr.html -->
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener" />
<!-- Use a custom version of StandardService that allows the
connectors to be started independent of the normal lifecycle
start to allow web apps to be deployed before starting the
connectors.
-->
<Service name="jboss.web">
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<Connector port="${yacos.port}" address="${jboss.bind.address}"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" address="${jboss.bind.address}" protocol="AJP/1.3"
emptySessionPath="true" enableLookups="false" redirectPort="8443" />
<Engine name="jboss.web" defaultHost="localhost">
<!-- The JAAS based authentication and authorization realm implementation
that is compatible with the jboss 3.2.x realm implementation.
- certificatePrincipal : the class name of the
org.jboss.security.auth.certs.CertificatePrincipal impl
used for mapping X509[] cert chains to a Princpal.
- allRolesMode : how to handle an auth-constraint with a role-name=*,
one of strict, authOnly, strictAuthOnly
+ strict = Use the strict servlet spec interpretation which requires
that the user have one of the web-app/security-role/role-name
+ authOnly = Allow any authenticated user
+ strictAuthOnly = Allow any authenticated user only if there are no
web-app/security-roles
-->
<Realm className="org.jboss.web.tomcat.security.JBossSecurityMgrRealm"
certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
allRolesMode="authOnly"
/>
<!-- A subclass of JBossSecurityMgrRealm that uses the authentication
behavior of JBossSecurityMgrRealm, but overrides the authorization
checks to use JACC permissions with the current java.security.Policy
to determine authorized access.
- allRolesMode : how to handle an auth-constraint with a role-name=*,
one of strict, authOnly, strictAuthOnly
+ strict = Use the strict servlet spec interpretation which requires
that the user have one of the web-app/security-role/role-name
+ authOnly = Allow any authenticated user
+ strictAuthOnly = Allow any authenticated user only if there are no
web-app/security-roles
<Realm className="org.jboss.web.tomcat.security.JaccAuthorizationRealm"
certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping"
allRolesMode="authOnly"
/>
-->
<Host name="localhost"
autoDeploy="false" deployOnStartup="false" deployXML="false"
configClass="org.jboss.web.tomcat.security.config.JBossContextConfig"
>
<!-- Uncomment to enable request dumper. This Valve "logs interesting
contents from the specified Request (before processing) and the
corresponding Response (after processing). It is especially useful
in debugging problems related to headers and cookies."
-->
<!--
<Valve className="org.apache.catalina.valves.RequestDumperValve" />
-->
<!-- Access logger -->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve"
prefix="localhost_access_log." suffix=".log"
pattern="common" directory="${jboss.server.home.dir}/log"
resolveHosts="false" />
-->
<!-- Uncomment to enable single sign-on across web apps
deployed to this host. Does not provide SSO across a cluster.
If this valve is used, do not use the JBoss ClusteredSingleSignOn
valve shown below.
A new configuration attribute is available beginning with
release 4.0.4:
cookieDomain configures the domain to which the SSO cookie
will be scoped (i.e. the set of hosts to
which the cookie will be presented). By default
the cookie is scoped to "/", meaning the host
that presented it. Set cookieDomain to a
wider domain (e.g. "xyz.com") to allow an SSO
to span more than one hostname.
-->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Uncomment to enable single sign-on across web apps
deployed to this host AND to all other hosts in the cluster.
If this valve is used, do not use the standard Tomcat SingleSignOn
valve shown above.
Valve uses a JBossCache instance to support SSO credential
caching and replication across the cluster. The JBossCache
instance must be configured separately. By default, the valve
shares a JBossCache with the service that supports HttpSession
replication. See the "jboss-web-cluster-service.xml" file in the
server/all/deploy directory for cache configuration details.
Besides the attributes supported by the standard Tomcat
SingleSignOn valve (see the Tomcat docs), this version also
supports the following attributes:
cookieDomain see above
treeCacheName JMX ObjectName of the JBossCache MBean used to
support credential caching and replication across
the cluster. If not set, the default value is
"jboss.cache:service=TomcatClusteringCache", the
standard ObjectName of the JBossCache MBean used
to support session replication.
-->
<!--
<Valve className="org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn" />
-->
<!-- Check for unclosed connections and transaction terminated checks
in servlets/jsps.
Important: The dependency on the CachedConnectionManager
in META-INF/jboss-service.xml must be uncommented, too
-->
<Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve"
cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager"
transactionManagerObjectName="jboss:service=TransactionManager" />
</Host>
</Engine>
</Service>
</Server>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<langpack>
<str id="server.address.text" txt="This is the address that will be used to access the server."/>
<str id="server.address.label" txt="Enter the server address :"/>
<str id="server.port.text" txt="Please enter the port on which the web server should be accessible.\n Please note that on most systems you will need to have administrative privileges to run the server on ports lesser than 1024."/>
<str id="server.port.label" txt="Enter the server port :"/>
<str id="server.port.validator.text" txt="Invalid server port"/>
</langpack>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<langpack>
<str id="server.address.text" txt="Ceci est l'adresse qui sera utilisée pour accéder au serveur."/>
<str id="server.address.label" txt="Entrez l'adresse du serveur :"/>
<str id="server.port.text" txt="Veuillez entrer le port sur lequel le serveur web doit être accessible. Veuillez noter que sur la majorité des système il vous faudra des privilèges administrateur pour lancer le serveur sur les ports inférieurs à 1024."/>
<str id="server.port.label" txt="Entrez le port du serveur :"/>
<str id="server.port.validator.text" txt="Port invalide"/>
</langpack>

View File

@@ -0,0 +1,19 @@
<userInput>
<panel order="0">
<field type="text" variable="server.address">
<description align="left" txt="This is the address that will be used to access the server."
id="server.address.text"/>
<spec txt="Enter the server address :" id="server.address.label" size="20" set="127.0.0.1"/>
</field>
<field type="text" variable="server.port">
<description align="left" txt="Please enter the port on which the web server should be accessible. Please note that on most systems you will need to have administrative privileges to run the server on ports lesser than 1024."
id="server.port.text"/>
<spec txt="Enter the server port :" id="server.port.label" size="4" set="8080"/>
<validator
class="com.izforge.izpack.util.RegularExpressionValidator"
txt="Invalid server port" id="server.port.validator.text">
<param name="pattern" value="[0-9]{2,5}" />
</validator>
</field>
</panel>
</userInput>

View File

@@ -238,11 +238,12 @@ public class ArticleManagerBean implements IArticleManager, Serializable {
return users;
}
@SuppressWarnings("unchecked")
public void delegateArticleToReferee(Integer articleId, String refereeId, String memberId){
try{
ut.begin();
Article article = this.getArticle(articleId);
//si la delegation est d<>j<EFBFBD> faite , on remplace le referee
// If there's already a delegation, replace the referee with the new one
Query q = em.createQuery("from Delegation where article = ?");
q.setParameter(1, article);
List<Delegation> delegations = q.getResultList();