You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2012/02/22 10:10:11 UTC
svn commit: r1292203 [12/13] - in /incubator/syncope/trunk: archetype/
archetype/src/main/resources/archetype-resources/
archetype/src/main/resources/archetype-resources/console/
archetype/src/main/resources/archetype-resources/core/ archetype/src/main...
Added: incubator/syncope/trunk/core/src/main/resources/report/userReportlet2fo.xsl
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/resources/report/userReportlet2fo.xsl?rev=1292203&view=auto
==============================================================================
--- incubator/syncope/trunk/core/src/main/resources/report/userReportlet2fo.xsl (added)
+++ incubator/syncope/trunk/core/src/main/resources/report/userReportlet2fo.xsl Wed Feb 22 09:09:31 2012
@@ -0,0 +1,215 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ version="1.0">
+
+ <xsl:template match="reportlet[@class='org.syncope.core.report.UserReportlet']">
+
+ <fo:block font-size="14pt" font-weight="bold" space-after="0.5cm">Reportlet: <xsl:value-of select="@name"/></fo:block>
+
+ <xsl:for-each select="user">
+ <fo:block font-size="12pt" font-weight="bold">User <xsl:value-of select="@username"/></fo:block>
+
+ <fo:table table-layout="fixed">
+ <fo:table-column/>
+ <fo:table-column/>
+ <fo:table-body>
+ <fo:table-row>
+ <fo:table-cell>
+ <fo:block>Status:</fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:block><xsl:value-of select="@status"/></fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ <fo:table-row>
+ <fo:table-cell>
+ <fo:block>Creation Date:</fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:block><xsl:value-of select="@creationDate"/></fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ <fo:table-row>
+ <fo:table-cell>
+ <fo:block>Last Login Date:</fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:block><xsl:value-of select="@lastLoginDate"/></fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ <fo:table-row>
+ <fo:table-cell>
+ <fo:block>Change Password Date:</fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:block><xsl:value-of select="@changePwdDate"/></fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ <fo:table-row>
+ <fo:table-cell>
+ <fo:block>Password History Size:</fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:block><xsl:value-of select="@passwordHistorySize"/></fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ <fo:table-row>
+ <fo:table-cell>
+ <fo:block>Number of Failed Login Attempts:</fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:block><xsl:value-of select="@failedLoginCount"/></fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ </fo:table-body>
+ </fo:table>
+
+ <xsl:call-template name="attributes">
+ <xsl:with-param name="label">Attributes</xsl:with-param>
+ <xsl:with-param name="node" select="attributes/attribute"/>
+ </xsl:call-template>
+
+ <xsl:call-template name="attributes">
+ <xsl:with-param name="label">Derived Attributes</xsl:with-param>
+ <xsl:with-param name="node" select="derivedAttributes/derivedAttribute"/>
+ </xsl:call-template>
+
+ <xsl:call-template name="attributes">
+ <xsl:with-param name="label">Virtual Attributes</xsl:with-param>
+ <xsl:with-param name="node" select="virtualAttributes/virtualAttribute"/>
+ </xsl:call-template>
+
+ <fo:block font-size="11pt" font-weight="bold">Memberships</fo:block>
+ <xsl:for-each select="memberships/membership">
+ <fo:block font-size="10pt" font-weight="bold">Role: <xsl:value-of select="@roleName"/>(<xsl:value-of select="@roleId"/>)</fo:block>
+ </xsl:for-each>
+ <fo:block start-indent="1cm" space-after="0.5cm">
+ <xsl:call-template name="attributes">
+ <xsl:with-param name="label">Attributes</xsl:with-param>
+ <xsl:with-param name="node" select="attributes/attribute"/>
+ </xsl:call-template>
+
+ <xsl:call-template name="attributes">
+ <xsl:with-param name="label">Derived Attributes</xsl:with-param>
+ <xsl:with-param name="node" select="derivedAttributes/derivedAttribute"/>
+ </xsl:call-template>
+
+ <xsl:call-template name="attributes">
+ <xsl:with-param name="label">Virtual Attributes</xsl:with-param>
+ <xsl:with-param name="node" select="virtualAttributes/virtualAttribute"/>
+ </xsl:call-template>
+
+ <xsl:call-template name="resources">
+ <xsl:with-param name="node" select="resources/resource"/>
+ </xsl:call-template>
+ </fo:block>
+
+ <xsl:call-template name="resources">
+ <xsl:with-param name="node" select="resources/resource"/>
+ </xsl:call-template>
+
+ <fo:block width="100%">
+ <fo:leader leader-pattern="rule" rule-style="solid" leader-length="100%"/>
+ </fo:block>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template name="attributes">
+ <xsl:param name="label"/>
+ <xsl:param name="node"/>
+
+ <fo:block font-size="11pt" font-weight="bold"><xsl:value-of select="$label"/></fo:block>
+
+ <fo:table table-layout="fixed" space-after="0.5cm">
+ <fo:table-column/>
+ <fo:table-column/>
+
+ <fo:table-header>
+ <fo:table-row>
+ <fo:table-cell>
+ <fo:block font-weight="bold">Schema name</fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:block font-weight="bold">Value(s)</fo:block>
+ </fo:table-cell>
+ </fo:table-row>
+ </fo:table-header>
+
+ <fo:table-body>
+ <xsl:for-each select="$node">
+ <xsl:if test="string-length(value/text()) > 0">
+ <fo:table-row>
+ <fo:table-cell>
+ <fo:block><xsl:value-of select="@name"/></fo:block>
+ </fo:table-cell>
+ <fo:table-cell>
+ <fo:list-block provisional-label-separation="4mm" provisional-distance-between-starts="2mm">
+ <xsl:for-each select="value">
+ <fo:list-item>
+ <fo:list-item-label end-indent="label-end()">
+ <fo:block>•</fo:block>
+ </fo:list-item-label>
+ <fo:list-item-body start-indent="body-start()">
+ <fo:block><xsl:value-of select="text()"/></fo:block>
+ </fo:list-item-body>
+ </fo:list-item>
+ </xsl:for-each>
+ </fo:list-block>
+ </fo:table-cell>
+ </fo:table-row>
+ </xsl:if>
+ <fo:table-row>
+ <fo:table-cell><fo:block></fo:block></fo:table-cell>
+ <fo:table-cell><fo:block></fo:block></fo:table-cell>
+ </fo:table-row>
+ </xsl:for-each>
+ </fo:table-body>
+ </fo:table>
+ </xsl:template>
+
+ <xsl:template name="resources">
+ <xsl:param name="node"/>
+
+ <fo:block font-size="11pt" font-weight="bold">Resources</fo:block>
+
+ <fo:list-block provisional-label-separation="4mm" provisional-distance-between-starts="2mm">
+ <xsl:for-each select="$node">
+ <fo:list-item>
+ <fo:list-item-label end-indent="label-end()">
+ <fo:block>•</fo:block>
+ </fo:list-item-label>
+ <fo:list-item-body start-indent="body-start()">
+ <fo:block><xsl:value-of select="@name"/></fo:block>
+ </fo:list-item-body>
+ </fo:list-item>
+ </xsl:for-each>
+
+ <fo:list-item>
+ <fo:list-item-label><fo:block></fo:block></fo:list-item-label>
+ <fo:list-item-body><fo:block></fo:block></fo:list-item-body>
+ </fo:list-item>
+ </fo:list-block>
+
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
Propchange: incubator/syncope/trunk/core/src/main/resources/report/userReportlet2fo.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/syncope/trunk/core/src/main/resources/report/userReportlet2fo.xsl
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/syncope/trunk/core/src/main/resources/report/userReportlet2fo.xsl
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: incubator/syncope/trunk/core/src/main/resources/report/userReportlet2html.xsl
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/resources/report/userReportlet2html.xsl?rev=1292203&view=auto
==============================================================================
--- incubator/syncope/trunk/core/src/main/resources/report/userReportlet2html.xsl (added)
+++ incubator/syncope/trunk/core/src/main/resources/report/userReportlet2html.xsl Wed Feb 22 09:09:31 2012
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+
+-->
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+ <xsl:template match="reportlet[@class='org.syncope.core.report.UserReportlet']">
+ <h2>Reportlet: <xsl:value-of select="@name"/></h2>
+ <xsl:for-each select="user">
+ <h3>User <xsl:value-of select="@username"/></h3>
+
+ <table style="border: 1px solid black;">
+ <tr>
+ <td>Status:</td>
+ <td><xsl:value-of select="@status"/></td>
+ </tr>
+ <tr>
+ <td>Creation Date:</td>
+ <td><xsl:value-of select="@creationDate"/></td>
+ </tr>
+ <tr>
+ <td>Last Login Date:</td>
+ <td><xsl:value-of select="@lastLoginDate"/></td>
+ </tr>
+ <tr>
+ <td>Change Password Date:</td>
+ <td><xsl:value-of select="@changePwdDate"/></td>
+ </tr>
+ <tr>
+ <td>Password History Size:</td>
+ <td><xsl:value-of select="@passwordHistorySize"/></td>
+ </tr>
+ <tr>
+ <td>Number of Failed Login Attempts:</td>
+ <td><xsl:value-of select="@failedLoginCount"/></td>
+ </tr>
+ </table>
+
+ <xsl:call-template name="attributes">
+ <xsl:with-param name="label">Attributes</xsl:with-param>
+ <xsl:with-param name="node" select="attributes/attribute"/>
+ </xsl:call-template>
+
+ <xsl:call-template name="attributes">
+ <xsl:with-param name="label">Derived Attributes</xsl:with-param>
+ <xsl:with-param name="node" select="derivedAttributes/derivedAttribute"/>
+ </xsl:call-template>
+
+ <xsl:call-template name="attributes">
+ <xsl:with-param name="label">Virtual Attributes</xsl:with-param>
+ <xsl:with-param name="node" select="virtualAttributes/virtualAttribute"/>
+ </xsl:call-template>
+
+ <h4>Memberships</h4>
+ <xsl:for-each select="memberships/membership">
+ <h5>Role: <xsl:value-of select="@roleName"/>(<xsl:value-of select="@roleId"/>)</h5>
+ <blockquote>
+ <xsl:call-template name="attributes">
+ <xsl:with-param name="label">Attributes</xsl:with-param>
+ <xsl:with-param name="node" select="attributes/attribute"/>
+ </xsl:call-template>
+
+ <xsl:call-template name="attributes">
+ <xsl:with-param name="label">Derived Attributes</xsl:with-param>
+ <xsl:with-param name="node" select="derivedAttributes/derivedAttribute"/>
+ </xsl:call-template>
+
+ <xsl:call-template name="attributes">
+ <xsl:with-param name="label">Virtual Attributes</xsl:with-param>
+ <xsl:with-param name="node" select="virtualAttributes/virtualAttribute"/>
+ </xsl:call-template>
+
+ <xsl:call-template name="resources">
+ <xsl:with-param name="node" select="resources/resource"/>
+ </xsl:call-template>
+ </blockquote>
+ </xsl:for-each>
+
+ <xsl:call-template name="resources">
+ <xsl:with-param name="node" select="resources/resource"/>
+ </xsl:call-template>
+
+ <hr/>
+ </xsl:for-each>
+ </xsl:template>
+
+ <xsl:template name="attributes">
+ <xsl:param name="label"/>
+ <xsl:param name="node"/>
+
+ <h4><xsl:value-of select="$label"/></h4>
+
+ <table>
+ <thead>
+ <tr>
+ <th>Schema name</th>
+ <th>Value(s)</th>
+ </tr>
+ </thead>
+ <tbody>
+ <xsl:for-each select="$node">
+ <xsl:if test="string-length(value/text()) > 0">
+ <tr>
+ <td><xsl:value-of select="@name"/></td>
+ <td>
+ <ul>
+ <xsl:for-each select="value">
+ <li><xsl:value-of select="text()"/></li>
+ </xsl:for-each>
+ </ul>
+ </td>
+ </tr>
+ </xsl:if>
+ </xsl:for-each>
+ </tbody>
+ </table>
+ </xsl:template>
+
+ <xsl:template name="resources">
+ <xsl:param name="node"/>
+
+ <h4>Resources</h4>
+ <ul>
+ <xsl:for-each select="$node">
+ <li><xsl:value-of select="@name"/></li>
+ </xsl:for-each>
+ </ul>
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
Propchange: incubator/syncope/trunk/core/src/main/resources/report/userReportlet2html.xsl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/syncope/trunk/core/src/main/resources/report/userReportlet2html.xsl
------------------------------------------------------------------------------
svn:keywords = Date Revision Author HeadURL Id
Propchange: incubator/syncope/trunk/core/src/main/resources/report/userReportlet2html.xsl
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: incubator/syncope/trunk/core/src/main/resources/restContext.xml
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/resources/restContext.xml?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/resources/restContext.xml (original)
+++ incubator/syncope/trunk/core/src/main/resources/restContext.xml Wed Feb 22 09:09:31 2012
@@ -8,7 +8,7 @@ to you under the Apache License, Version
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
@@ -16,6 +16,7 @@ software distributed under the License i
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
+
-->
<beans xmlns="http://www.springframework.org/schema/beans"
Modified: incubator/syncope/trunk/core/src/main/resources/schedulingContext.xml
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/resources/schedulingContext.xml?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/resources/schedulingContext.xml (original)
+++ incubator/syncope/trunk/core/src/main/resources/schedulingContext.xml Wed Feb 22 09:09:31 2012
@@ -8,7 +8,7 @@ to you under the Apache License, Version
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
@@ -16,6 +16,7 @@ software distributed under the License i
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
+
-->
<beans xmlns="http://www.springframework.org/schema/beans"
Modified: incubator/syncope/trunk/core/src/main/resources/security.properties
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/resources/security.properties?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/resources/security.properties (original)
+++ incubator/syncope/trunk/core/src/main/resources/security.properties Wed Feb 22 09:09:31 2012
@@ -6,12 +6,13 @@
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
-# http://www.apache.org/licenses/LICENSE-2.0
+# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
+# under the License.
adminUser=admin
adminMD5Password=5f4dcc3b5aa765d61d8327deb882cf99
Modified: incubator/syncope/trunk/core/src/main/resources/securityContext.xml
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/resources/securityContext.xml?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/resources/securityContext.xml (original)
+++ incubator/syncope/trunk/core/src/main/resources/securityContext.xml Wed Feb 22 09:09:31 2012
@@ -8,7 +8,7 @@ to you under the Apache License, Version
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
@@ -16,6 +16,7 @@ software distributed under the License i
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
+
-->
<beans xmlns="http://www.springframework.org/schema/beans"
Modified: incubator/syncope/trunk/core/src/main/resources/syncopeContext.xml
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/resources/syncopeContext.xml?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/resources/syncopeContext.xml (original)
+++ incubator/syncope/trunk/core/src/main/resources/syncopeContext.xml Wed Feb 22 09:09:31 2012
@@ -8,7 +8,7 @@ to you under the Apache License, Version
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
@@ -16,6 +16,7 @@ software distributed under the License i
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
+
-->
<beans xmlns="http://www.springframework.org/schema/beans"
Modified: incubator/syncope/trunk/core/src/main/resources/userWorkflow.bpmn20.xml
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/resources/userWorkflow.bpmn20.xml?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/resources/userWorkflow.bpmn20.xml (original)
+++ incubator/syncope/trunk/core/src/main/resources/userWorkflow.bpmn20.xml Wed Feb 22 09:09:31 2012
@@ -8,7 +8,7 @@ to you under the Apache License, Version
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
@@ -16,6 +16,7 @@ software distributed under the License i
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
+
-->
<definitions id="definitions"
Modified: incubator/syncope/trunk/core/src/main/resources/views.xml
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/resources/views.xml?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/resources/views.xml (original)
+++ incubator/syncope/trunk/core/src/main/resources/views.xml Wed Feb 22 09:09:31 2012
@@ -8,7 +8,7 @@ to you under the Apache License, Version
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
@@ -16,6 +16,7 @@ software distributed under the License i
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
+
-->
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
Modified: incubator/syncope/trunk/core/src/main/resources/workflow.properties
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/resources/workflow.properties?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/resources/workflow.properties (original)
+++ incubator/syncope/trunk/core/src/main/resources/workflow.properties Wed Feb 22 09:09:31 2012
@@ -6,12 +6,13 @@
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
-# http://www.apache.org/licenses/LICENSE-2.0
+# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
+# under the License.
wfAdapter=org.syncope.core.workflow.ActivitiUserWorkflowAdapter
jobExecutorActivate=true
\ No newline at end of file
Modified: incubator/syncope/trunk/core/src/main/resources/workflowContext.xml
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/resources/workflowContext.xml?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/resources/workflowContext.xml (original)
+++ incubator/syncope/trunk/core/src/main/resources/workflowContext.xml Wed Feb 22 09:09:31 2012
@@ -8,7 +8,7 @@ to you under the Apache License, Version
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
@@ -16,6 +16,7 @@ software distributed under the License i
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
+
-->
<beans xmlns="http://www.springframework.org/schema/beans"
Modified: incubator/syncope/trunk/core/src/main/webapp/WEB-INF/glassfish-web.xml
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/webapp/WEB-INF/glassfish-web.xml?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/webapp/WEB-INF/glassfish-web.xml (original)
+++ incubator/syncope/trunk/core/src/main/webapp/WEB-INF/glassfish-web.xml Wed Feb 22 09:09:31 2012
@@ -8,7 +8,7 @@ to you under the Apache License, Version
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
@@ -16,6 +16,7 @@ software distributed under the License i
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
+
-->
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD
Modified: incubator/syncope/trunk/core/src/main/webapp/WEB-INF/jboss-deployment-structure.xml
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/webapp/WEB-INF/jboss-deployment-structure.xml?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/webapp/WEB-INF/jboss-deployment-structure.xml (original)
+++ incubator/syncope/trunk/core/src/main/webapp/WEB-INF/jboss-deployment-structure.xml Wed Feb 22 09:09:31 2012
@@ -8,7 +8,7 @@ to you under the Apache License, Version
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
@@ -16,6 +16,7 @@ software distributed under the License i
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
+
-->
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
Modified: incubator/syncope/trunk/core/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/webapp/WEB-INF/web.xml?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/webapp/WEB-INF/web.xml (original)
+++ incubator/syncope/trunk/core/src/main/webapp/WEB-INF/web.xml Wed Feb 22 09:09:31 2012
@@ -8,7 +8,7 @@ to you under the Apache License, Version
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
+ http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
@@ -16,6 +16,7 @@ software distributed under the License i
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
+
-->
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
Modified: incubator/syncope/trunk/core/src/main/webapp/syncopeClientError.jsp
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/main/webapp/syncopeClientError.jsp?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/main/webapp/syncopeClientError.jsp (original)
+++ incubator/syncope/trunk/core/src/main/webapp/syncopeClientError.jsp Wed Feb 22 09:09:31 2012
@@ -113,13 +113,11 @@
response.setHeader(
SyncopeClientErrorHandler.EXCEPTION_TYPE_HEADER,
SyncopeClientExceptionType.UnauthorizedRole.getHeaderValue());
- for (Long roleId : ((UnauthorizedRoleException) ex).getRoleIds()) {
- response.setHeader(
- SyncopeClientExceptionType.UnauthorizedRole.
- getElementHeaderName(), roleId.toString());
- }
+ response.setHeader(
+ SyncopeClientExceptionType.UnauthorizedRole.getElementHeaderName(),
+ ex.getMessage());
- statusCode = HttpServletResponse.SC_UNAUTHORIZED;
+ statusCode = HttpServletResponse.SC_BAD_REQUEST;
} else if (ex instanceof DataIntegrityViolationException) {
response.setHeader(
SyncopeClientErrorHandler.EXCEPTION_TYPE_HEADER,
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/AbstractTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/AbstractTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/AbstractTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/AbstractTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/init/ConnInstanceLoaderTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/init/ConnInstanceLoaderTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/init/ConnInstanceLoaderTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/init/ConnInstanceLoaderTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.init;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/AttrTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/AttrTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/AttrTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/AttrTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/ConnInstanceTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/ConnInstanceTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/ConnInstanceTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/ConnInstanceTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/DerAttrTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/DerAttrTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/DerAttrTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/DerAttrTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/DerSchemaTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/DerSchemaTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/DerSchemaTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/DerSchemaTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/EntitlementTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/EntitlementTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/EntitlementTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/EntitlementTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/MembershipTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/MembershipTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/MembershipTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/MembershipTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/NotificationTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/NotificationTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/NotificationTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/NotificationTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/PolicyTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/PolicyTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/PolicyTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/PolicyTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/ReportTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/ReportTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/ReportTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/ReportTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/ResourceTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/ResourceTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/ResourceTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/ResourceTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/RoleTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/RoleTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/RoleTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/RoleTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/SchemaTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/SchemaTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/SchemaTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/SchemaTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/TaskExecTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/TaskExecTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/TaskExecTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/TaskExecTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/TaskTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/TaskTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/TaskTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/TaskTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/UserSearchTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/UserSearchTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/UserSearchTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/UserSearchTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/UserTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/UserTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/UserTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/UserTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/VirAttrTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/VirAttrTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/VirAttrTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/VirAttrTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/VirSchemaTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/VirSchemaTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/VirSchemaTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/dao/VirSchemaTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.dao;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/AttrTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/AttrTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/AttrTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/AttrTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.relationships;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/ConnInstanceTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/ConnInstanceTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/ConnInstanceTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/ConnInstanceTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.relationships;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/DerSchemaTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/DerSchemaTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/DerSchemaTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/DerSchemaTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.relationships;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/MembershipTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/MembershipTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/MembershipTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/MembershipTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.relationships;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/ReportTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/ReportTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/ReportTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/ReportTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.relationships;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/ResourceTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/ResourceTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/ResourceTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/ResourceTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.relationships;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/RoleTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/RoleTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/RoleTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/RoleTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.relationships;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/SchemaTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/SchemaTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/SchemaTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/SchemaTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.relationships;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/TaskTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/TaskTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/TaskTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/TaskTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.relationships;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/UserTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/UserTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/UserTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/persistence/relationships/UserTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.persistence.relationships;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/AbstractTest.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/AbstractTest.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/AbstractTest.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/AbstractTest.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.rest;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/AuthenticationTestITCase.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/AuthenticationTestITCase.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/AuthenticationTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/AuthenticationTestITCase.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.rest;
@@ -23,7 +24,6 @@ import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
-import org.apache.http.auth.AuthScope;
import org.apache.http.auth.UsernamePasswordCredentials;
import org.apache.http.impl.client.DefaultHttpClient;
import org.junit.Test;
@@ -37,7 +37,10 @@ import org.syncope.client.to.MembershipT
import org.syncope.client.to.RoleTO;
import org.syncope.client.to.SchemaTO;
import org.syncope.client.to.UserTO;
+import org.syncope.client.validation.SyncopeClientCompositeErrorException;
+import org.syncope.client.validation.SyncopeClientException;
import org.syncope.types.SchemaType;
+import org.syncope.types.SyncopeClientExceptionType;
public class AuthenticationTestITCase extends AbstractTest {
@@ -171,15 +174,16 @@ public class AuthenticationTestITCase ex
requestFactory.getAuthScope(),
new UsernamePasswordCredentials("user2", "password"));
- HttpClientErrorException exception = null;
+ SyncopeClientException exception = null;
try {
restTemplate.getForObject(
BASE_URL + "user/read/{userId}.json", UserTO.class, 1);
- } catch (HttpClientErrorException e) {
- exception = e;
+ fail();
+ } catch (SyncopeClientCompositeErrorException e) {
+ exception = e.getException(
+ SyncopeClientExceptionType.UnauthorizedRole);
}
assertNotNull(exception);
- assertEquals(HttpStatus.UNAUTHORIZED, exception.getStatusCode());
// reset admin credentials for restTemplate
super.setupRestTemplate();
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ConfigurationTestITCase.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ConfigurationTestITCase.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ConfigurationTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ConfigurationTestITCase.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.rest;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ConnInstanceTestITCase.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ConnInstanceTestITCase.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ConnInstanceTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ConnInstanceTestITCase.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.rest;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/DerivedSchemaTestITCase.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/DerivedSchemaTestITCase.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/DerivedSchemaTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/DerivedSchemaTestITCase.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.rest;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/LoggerTestITCase.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/LoggerTestITCase.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/LoggerTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/LoggerTestITCase.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.rest;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/NotificationTestITCase.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/NotificationTestITCase.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/NotificationTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/NotificationTestITCase.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.rest;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/PolicyTestITCase.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/PolicyTestITCase.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/PolicyTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/PolicyTestITCase.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.rest;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ReportTestITCase.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ReportTestITCase.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ReportTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ReportTestITCase.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.rest;
@@ -24,7 +25,6 @@ import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
-import org.apache.http.Header;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.util.EntityUtils;
@@ -196,6 +196,8 @@ public class ReportTestITCase extends Ab
} catch (InterruptedException e) {
}
+ // Export
+ // 1. XML (default)
HttpGet getMethod = new HttpGet(BASE_URL + "report/execution/export/"
+ postExecIds.iterator().next());
HttpResponse response =
@@ -206,5 +208,38 @@ public class ReportTestITCase extends Ab
String export = EntityUtils.toString(response.getEntity()).trim();
assertNotNull(export);
assertFalse(export.isEmpty());
+
+ // 2. HTML
+ getMethod = new HttpGet(BASE_URL + "report/execution/export/"
+ + postExecIds.iterator().next() + "?fmt=HTML");
+ response = ((PreemptiveAuthHttpRequestFactory) restTemplate.
+ getRequestFactory()).getHttpClient().execute(getMethod);
+ assertEquals(200, response.getStatusLine().getStatusCode());
+
+ export = EntityUtils.toString(response.getEntity()).trim();
+ assertNotNull(export);
+ assertFalse(export.isEmpty());
+
+ // 3. PDF
+ getMethod = new HttpGet(BASE_URL + "report/execution/export/"
+ + postExecIds.iterator().next() + "?fmt=PDF");
+ response = ((PreemptiveAuthHttpRequestFactory) restTemplate.
+ getRequestFactory()).getHttpClient().execute(getMethod);
+ assertEquals(200, response.getStatusLine().getStatusCode());
+
+ export = EntityUtils.toString(response.getEntity()).trim();
+ assertNotNull(export);
+ assertFalse(export.isEmpty());
+
+ // 4. RTF
+ getMethod = new HttpGet(BASE_URL + "report/execution/export/"
+ + postExecIds.iterator().next() + "?fmt=RTF");
+ response = ((PreemptiveAuthHttpRequestFactory) restTemplate.
+ getRequestFactory()).getHttpClient().execute(getMethod);
+ assertEquals(200, response.getStatusLine().getStatusCode());
+
+ export = EntityUtils.toString(response.getEntity()).trim();
+ assertNotNull(export);
+ assertFalse(export.isEmpty());
}
}
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ResourceTestITCase.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ResourceTestITCase.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ResourceTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/ResourceTestITCase.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.rest;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/RoleTestITCase.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/RoleTestITCase.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/RoleTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/RoleTestITCase.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.rest;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/SchemaTestITCase.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/SchemaTestITCase.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/SchemaTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/SchemaTestITCase.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.rest;
Modified: incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/TaskTestITCase.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/TaskTestITCase.java?rev=1292203&r1=1292202&r2=1292203&view=diff
==============================================================================
--- incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/TaskTestITCase.java (original)
+++ incubator/syncope/trunk/core/src/test/java/org/syncope/core/rest/TaskTestITCase.java Wed Feb 22 09:09:31 2012
@@ -7,13 +7,14 @@
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
+ * under the License.
*/
package org.syncope.core.rest;