From 1a22dfbaa23d00ae2204cb7a49077d6e76c556ee Mon Sep 17 00:00:00 2001 From: Sanjay Dalal Date: Mon, 21 Dec 2009 20:09:11 +0000 Subject: [PATCH] CSPACE-514 added javadoc plugin to pom.xml (trunk and main levels only). complete javadoc is created (later on config for public only). also added doc target for build.xml (trunk and main levels). the ant target also jars up javadocs. the dist targets in both trunk and main now dist javadoc jar as well mvn javadoc:aggregate (to generate javadoc only) ant doc (calls javadoc:aggregate and jars up the javadoc) ant dist (now copies javadoc jar to dist) M trunk/services/common/src/main/java/org/collectionspace/services/common/security/UnauthorizedException.java M trunk/services/pom.xml M trunk/services/build.xml M trunk/pom.xml M trunk/build.xml --- build.xml | 6 ++- pom.xml | 54 ++++++++++++------- services/build.xml | 27 +++++++++- .../security/UnauthorizedException.java | 6 +-- services/pom.xml | 8 +++ 5 files changed, 75 insertions(+), 26 deletions(-) diff --git a/build.xml b/build.xml index e16026705..c5ff65e15 100644 --- a/build.xml +++ b/build.xml @@ -198,6 +198,10 @@ + + + + @@ -217,7 +221,7 @@ - + diff --git a/pom.xml b/pom.xml index 31a485ee0..3a6fd1ed9 100644 --- a/pom.xml +++ b/pom.xml @@ -1,13 +1,13 @@ - + 4.0.0 org.collectionspace.services 1.0 org.collectionspace.services pom services - + 4.2.3.GA 3.0 @@ -15,28 +15,28 @@ 5.2.1-SNAPSHOT 1.5.1-SNAPSHOT - + libs-releases-local libs-releases-local http://source.collectionspace.org:8081/artifactory/libs-releases-local - + libs-snapshots-local libs-snapshots-local http://source.collectionspace.org:8081/artifactory/libs-snapshots-local - + 3rdparty services - + - + maven2-repository.dev.java.net Java.net Maven 2 Repository @@ -70,7 +70,7 @@ true - + maven repo maven repo @@ -96,26 +96,26 @@ false - - + --> + --> jboss http://repository.jboss.org/maven2 @@ -141,14 +141,14 @@ - + - + maven2-repository.dev.java.net http://download.java.net/maven/2 - + maven-repository.dev.java.net Java.net Maven 1 Repository (legacy) @@ -166,7 +166,7 @@ - + @@ -197,7 +197,7 @@ maven-war-plugin 2.0.1 - + WEB-INF/lib/*.jar @@ -206,7 +206,7 @@ - + @@ -242,4 +242,18 @@ + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 2.6.1 + + public + + + + diff --git a/services/build.xml b/services/build.xml index de51ae0c1..81fb91fe1 100644 --- a/services/build.xml +++ b/services/build.xml @@ -8,6 +8,7 @@ + @@ -104,6 +105,26 @@ + + + + + + + + + + + + + + + + + + @@ -138,8 +159,8 @@ description="undeploy services from ${jboss.server.cspace}"> - - + + @@ -166,6 +187,8 @@ + diff --git a/services/common/src/main/java/org/collectionspace/services/common/security/UnauthorizedException.java b/services/common/src/main/java/org/collectionspace/services/common/security/UnauthorizedException.java index 7c99fa36a..730a7d2cb 100644 --- a/services/common/src/main/java/org/collectionspace/services/common/security/UnauthorizedException.java +++ b/services/common/src/main/java/org/collectionspace/services/common/security/UnauthorizedException.java @@ -26,9 +26,9 @@ package org.collectionspace.services.common.security; import org.collectionspace.services.common.ServiceException; /** - * ServiceForbidenException is thrown when access to service is not allowed for - * one or more of the following reasons: - * - tenant id not found + * UnauthorizedException is thrown when authentication to the service fails. Usually + * this is thrown when 2nd step of authentication to the service fails. This step + * includes associating the user with tenant(s) and role(s). * @author */ public class UnauthorizedException extends ServiceException { diff --git a/services/pom.xml b/services/pom.xml index ac2cedd59..4c25658c3 100644 --- a/services/pom.xml +++ b/services/pom.xml @@ -103,6 +103,14 @@ + + org.apache.maven.plugins + maven-javadoc-plugin + 2.6.1 + + + +