svn commit: r1420025 - /syncope/committers/tools/verify-legal-files.sh

2012-12-10 Thread ilgrosso
Author: ilgrosso
Date: Tue Dec 11 07:56:26 2012
New Revision: 1420025

URL: http://svn.apache.org/viewvc?rev=1420025&view=rev
Log:
Removing DISCLAIMER related checks

Modified:
syncope/committers/tools/verify-legal-files.sh

Modified: syncope/committers/tools/verify-legal-files.sh
URL: 
http://svn.apache.org/viewvc/syncope/committers/tools/verify-legal-files.sh?rev=1420025&r1=1420024&r2=1420025&view=diff
==
--- syncope/committers/tools/verify-legal-files.sh (original)
+++ syncope/committers/tools/verify-legal-files.sh Tue Dec 11 07:56:26 2012
@@ -32,7 +32,6 @@ for jarfile in `find $DIST_DIR -name '*.
 cd $JAR_DIR
 jar xvf $jarfile META-INF/LICENSE > /dev/null
 jar xvf $jarfile META-INF/NOTICE > /dev/null
-jar xvf $jarfile META-INF/DISCLAIMER > /dev/null
 
 file_ext=`echo $jarfile|awk -F . '{print $NF}'`
 if [ $file_ext == 'jar' ]; then
@@ -43,8 +42,5 @@ for jarfile in `find $DIST_DIR -name '*.
echo "NOTICE: "`diff -q $DIST_DIR/legal_ext/NOTICE META-INF/NOTICE`
 fi
 
-echo "DISCLAIMER: "`diff -q $DIST_DIR/DISCLAIMER META-INF/DISCLAIMER`
-echo
-
 cd ..
 done




svn commit: r1419558 - in /syncope/branches/DEV_ROLE_PROVISIONING/core/src: main/java/org/apache/syncope/core/util/ test/java/org/apache/syncope/core/persistence/dao/ test/java/org/apache/syncope/core

2012-12-10 Thread ilgrosso
Author: ilgrosso
Date: Mon Dec 10 16:20:57 2012
New Revision: 1419558

URL: http://svn.apache.org/viewvc?rev=1419558&view=rev
Log:
[SYNCOPE-172] Add dedicated test for role synchronization (full reconciliation)

Modified:

syncope/branches/DEV_ROLE_PROVISIONING/core/src/main/java/org/apache/syncope/core/util/ConnObjectUtil.java

syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/persistence/dao/TaskTest.java

syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java
syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/resources/content.xml

Modified: 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/main/java/org/apache/syncope/core/util/ConnObjectUtil.java
URL: 
http://svn.apache.org/viewvc/syncope/branches/DEV_ROLE_PROVISIONING/core/src/main/java/org/apache/syncope/core/util/ConnObjectUtil.java?rev=1419558&r1=1419557&r2=1419558&view=diff
==
--- 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/main/java/org/apache/syncope/core/util/ConnObjectUtil.java
 (original)
+++ 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/main/java/org/apache/syncope/core/util/ConnObjectUtil.java
 Mon Dec 10 16:20:57 2012
@@ -317,6 +317,29 @@ public class ConnObjectUtil {
 fillFromTemplate(membTBU, membTO);
 }
 }
+if (template instanceof RoleTO) {
+if (StringUtils.isNotBlank(((RoleTO) template).getName())) {
+String evaluated = jexlUtil.evaluate(((RoleTO) 
template).getName(), attributableTO);
+if (StringUtils.isNotBlank(evaluated)) {
+((RoleTO) attributableTO).setName(evaluated);
+}
+}
+
+((RoleTO) attributableTO).setParent(((RoleTO) 
template).getParent());
+
+((RoleTO) attributableTO).setUserOwner(((RoleTO) 
template).getUserOwner());
+((RoleTO) attributableTO).setRoleOwner(((RoleTO) 
template).getRoleOwner());
+
+((RoleTO) attributableTO).setAccountPolicy(((RoleTO) 
template).getAccountPolicy());
+((RoleTO) attributableTO).setPasswordPolicy(((RoleTO) 
template).getPasswordPolicy());
+
+((RoleTO) attributableTO).setInheritOwner(((RoleTO) 
template).isInheritOwner());
+((RoleTO) attributableTO).setInheritAttributes(((RoleTO) 
template).isInheritAttributes());
+((RoleTO) 
attributableTO).setInheritDerivedAttributes(((RoleTO) 
template).isInheritDerivedAttributes());
+((RoleTO) 
attributableTO).setInheritVirtualAttributes(((RoleTO) 
template).isInheritVirtualAttributes());
+((RoleTO) attributableTO).setInheritPasswordPolicy(((RoleTO) 
template).isInheritPasswordPolicy());
+((RoleTO) attributableTO).setInheritAccountPolicy(((RoleTO) 
template).isInheritAccountPolicy());
+}
 
 fillFromTemplate(attributableTO, template);
 

Modified: 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/persistence/dao/TaskTest.java
URL: 
http://svn.apache.org/viewvc/syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/persistence/dao/TaskTest.java?rev=1419558&r1=1419557&r2=1419558&view=diff
==
--- 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/persistence/dao/TaskTest.java
 (original)
+++ 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/persistence/dao/TaskTest.java
 Mon Dec 10 16:20:57 2012
@@ -69,7 +69,7 @@ public class TaskTest extends AbstractTe
 assertEquals(1, sclist.size());
 
 List sylist = taskDAO.findAll(SyncTask.class);
-assertEquals(4, sylist.size());
+assertEquals(5, sylist.size());
 }
 
 @Test

Modified: 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java
URL: 
http://svn.apache.org/viewvc/syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java?rev=1419558&r1=1419557&r2=1419558&view=diff
==
--- 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java
 (original)
+++ 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java
 Mon Dec 10 16:20:57 2012
@@ -21,6 +21,7 @@ package org.apache.syncope.core.rest;
 import java.util.Arrays;
 import java.util.List;
 import java.util.Set;
+import org.apache.syncope.client.search.AttributableCond;
 import org.apache.syncope.client.search.MembershipCond;
 import org.apache.syncope.client.search.NodeCond;
 import org.apache.syncope.client.to.Memb

svn commit: r1419543 - in /syncope/branches/cxf: common/src/main/java/org/apache/syncope/controller/ common/src/main/java/org/apache/syncope/mod/ common/src/main/java/org/apache/syncope/to/ common/src

2012-12-10 Thread jbernhardt
Author: jbernhardt
Date: Mon Dec 10 16:01:55 2012
New Revision: 1419543

URL: http://svn.apache.org/viewvc?rev=1419543&view=rev
Log:
[SYNCOPE-231] Further improvements (bug fixes) on User Service

Modified:

syncope/branches/cxf/common/src/main/java/org/apache/syncope/controller/RoleService.java

syncope/branches/cxf/common/src/main/java/org/apache/syncope/controller/UserService.java

syncope/branches/cxf/common/src/main/java/org/apache/syncope/mod/AbstractAttributableMod.java

syncope/branches/cxf/common/src/main/java/org/apache/syncope/mod/MembershipMod.java

syncope/branches/cxf/common/src/main/java/org/apache/syncope/mod/UserMod.java
syncope/branches/cxf/common/src/main/java/org/apache/syncope/to/RoleTO.java
syncope/branches/cxf/common/src/main/java/org/apache/syncope/to/TaskTO.java
syncope/branches/cxf/common/src/main/java/org/apache/syncope/to/UserTO.java

syncope/branches/cxf/common/src/main/java/org/apache/syncope/util/AttributableOperations.java

syncope/branches/cxf/console/src/main/java/org/apache/syncope/console/pages/RoleModalPage.java

syncope/branches/cxf/console/src/main/java/org/apache/syncope/console/pages/TaskModalPage.java

syncope/branches/cxf/console/src/main/java/org/apache/syncope/console/pages/panels/MembershipsPanel.java

syncope/branches/cxf/console/src/main/java/org/apache/syncope/console/pages/panels/RolePanel.java

syncope/branches/cxf/core/src/main/java/org/apache/syncope/core/rest/controller/UserController.java

syncope/branches/cxf/core/src/main/java/org/apache/syncope/core/rest/data/RoleDataBinder.java

syncope/branches/cxf/core/src/test/java/org/apache/syncope/core/rest/AbstractRoleTestITCase.java

syncope/branches/cxf/core/src/test/java/org/apache/syncope/core/rest/AbstractUserTestITCase.java

Modified: 
syncope/branches/cxf/common/src/main/java/org/apache/syncope/controller/RoleService.java
URL: 
http://svn.apache.org/viewvc/syncope/branches/cxf/common/src/main/java/org/apache/syncope/controller/RoleService.java?rev=1419543&r1=1419542&r2=1419543&view=diff
==
--- 
syncope/branches/cxf/common/src/main/java/org/apache/syncope/controller/RoleService.java
 (original)
+++ 
syncope/branches/cxf/common/src/main/java/org/apache/syncope/controller/RoleService.java
 Mon Dec 10 16:01:55 2012
@@ -23,7 +23,6 @@ import java.util.List;
 import javax.ws.rs.DELETE;
 import javax.ws.rs.GET;
 import javax.ws.rs.POST;
-import javax.ws.rs.PUT;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
 import javax.ws.rs.core.Response;
@@ -68,7 +67,7 @@ public interface RoleService {
 public Response create(final RoleTO roleTO)
 throws UnauthorizedRoleException;
 
-@PUT
+@POST
 @Path("/{roleId}")
 @PreAuthorize("hasRole('ROLE_UPDATE')")
 public RoleTO update(@PathParam("roleId") final Long roleId, final RoleMod 
roleMod)

Modified: 
syncope/branches/cxf/common/src/main/java/org/apache/syncope/controller/UserService.java
URL: 
http://svn.apache.org/viewvc/syncope/branches/cxf/common/src/main/java/org/apache/syncope/controller/UserService.java?rev=1419543&r1=1419542&r2=1419543&view=diff
==
--- 
syncope/branches/cxf/common/src/main/java/org/apache/syncope/controller/UserService.java
 (original)
+++ 
syncope/branches/cxf/common/src/main/java/org/apache/syncope/controller/UserService.java
 Mon Dec 10 16:01:55 2012
@@ -32,14 +32,12 @@ import javax.ws.rs.PathParam;
 import javax.ws.rs.QueryParam;
 import javax.ws.rs.core.Response;
 
+import org.apache.syncope.NotFoundException;
 import org.apache.syncope.mod.UserMod;
+import org.apache.syncope.propagation.PropagationException;
 import org.apache.syncope.search.NodeCond;
 import org.apache.syncope.to.UserTO;
 import org.apache.syncope.to.WorkflowFormTO;
-import org.apache.syncope.propagation.PropagationException;
-import org.apache.syncope.controller.InvalidSearchConditionException;
-import org.apache.syncope.controller.UnauthorizedRoleException;
-import org.apache.syncope.NotFoundException;
 import org.apache.syncope.workflow.WorkflowException;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.transaction.annotation.Transactional;
@@ -109,10 +107,10 @@ public interface UserService {
 public abstract Response create(final UserTO userTO) throws 
PropagationException,
 UnauthorizedRoleException, WorkflowException, NotFoundException;
 
-@PUT
+@POST
 @Path("/{userId}")
 @PreAuthorize("hasRole('USER_UPDATE')")
-public abstract UserTO update(final UserMod userMod) throws 
NotFoundException, PropagationException,
+public abstract UserTO update(@PathParam("userId") final Long userId, 
final UserMod userMod) throws NotFoundException, PropagationException,
 UnauthorizedRoleException, WorkflowException;
 
 @PUT


[CONF] Apache Syncope > Roadmap

2012-12-10 Thread confluence







Roadmap
Page edited by Francesco Chicchiricco


 Changes (1)
 




{info}This page is a scratchpad for ongoing discussion at syncope-...@incubator.apache.org{info} d...@syncope.apache.org{info} 
{toc:style=decimal|maxLevel=2}  
...


Full Content

This page is a scratchpad for ongoing discussion at d...@syncope.apache.org


1.1.0 (Ad libitum)
1.2.0 (Intermezzo)
1.3.0 (Jazz)
2.0.0 (Virtuoso)
2.1.0 (Rapsodia)
3.0.0 (Maggiore)
4.0.0 (Notturno)


1.1.0 (Ad libitum)

Release date: Q4 2012

Issues
See updated list on project's JIRA.


	[SYNCOPE-121] Policy-compliant random password generation
	[SYNCOPE-122] Password change on an external resource only
	[SYNCOPE-51] Remove MD5 as a supported password cipher algorithm
	[SYNCOPE-100] Add more password encryption options
	[SYNCOPE-123] Support binary schema for user, role and membership attributes
	[SYNCOPE-125] Derived and Virtual attribute use cases
	[SYNCOPE-126] Database import / export and related tasks
	[SYNCOPE-127] Workflow: concepts, how to customize and how to trace
	[SYNCOPE-128] Self-registration
	[SYNCOPE-171] Role provisioning
	[SYNCOPE-130] Avoid propagating useless update operations
	[SYNCOPE-44] Add ability to search for Roles via the REST API
	[SYNCOPE-146] Provide asynchronous refresh of tasks and reports list
	[SYNCOPE-147] Provide refresh button in task and report modal windows
	[SYNCOPE-148] Provide cancel button for all modal windows
	[SYNCOPE-144] Provide Task entities with a name and an optional description



1.2.0 (Intermezzo)

Release date: Q1 2013

Issues
See updated list on project's JIRA.


	[SYNCOPE-15] Manage creator, lastmodifier and approvers information about each SyncopeUser bean
	[SYNCOPE-119] Realm-based authorization
	[SYNCOPE-120] Avoid duplication in console's authorization management
	[SYNCOPE-129] Delegation
	[SYNCOPE-131] Assign membership and role schemas to either all memberships / roles or only some memberships / roles
	[SYNCOPE-132] Don't expose some REST list methods for anonymous
	[SYNCOPE-133] Add UserRequestController.execute() that will execute the provided UserRequest and remove it on success
	[SYNCOPE-134] User, role and membership properties for derived schemas
	[SYNCOPE-135] Password reset
	[SYNCOPE-136] Password required for resource subscription



1.3.0 (Jazz)

Release date: Q2 2013

Issues
See updated list on project's JIRA.


	[SYNCOPE-137] Support more than one local connector bundles directory and zero or more ConnId's connector servers
	[SYNCOPE-138] Scripted SQL connector bundle
	[SYNCOPE-139] Support OpenICF connector bundles
	[SYNCOPE-140] Dynamic role memberships
	[SYNCOPE-141] Concurrent propagation
	[SYNCOPE-142] Asynchronous propagation
	[SYNCOPE-143] GUI installer
	[SYNCOPE-145] Configurable user request approval



2.0.0 (Virtuoso)

Release date: Q4 2013

Issues
See updated list on project's JIRA.


	[SYNCOPE-149] Easier and cleaner way to override REST methods
	[SYNCOPE-150] Rich client library
	[SYNCOPE-151] Enlist RESTful services
	[SYNCOPE-152] Support SCIM REST API
	[SYNCOPE-153] Use logback-audit
	[SYNCOPE-154] Virtual attribute cache
	[SYNCOPE-155] Better way to override console components
	[SYNCOPE-156] New admin UI



2.1.0 (Rapsodia)

Release date: Q1 2014

Issues
See updated list on project's JIRA.


	[SYNCOPE-157] Upgrade tools
	[SYNCOPE-158] CLI admin tool
	[SYNCOPE-159] Bulk operations via REST API



3.0.0 (Maggiore)

Release date: Q2 2014

Issues
See updated list on project's JIRA.


	[SYNCOPE-161] Pluggable authentication modules
	[SYNCOPE-162] PDC-based authentication
	[SYNCOPE-163] Authentication chain
	[SYNCOPE-164] Passthrough authentication
	[SYNCOPE-165] One-time password
	[SYNCOPE-166] Investigate using Apache Shiro to provide AM features
	[SYNCOPE-167] Resource access policies



4.0.0 (Notturno)

Release date: Q4 2014

Issues
See updated list on project's JIRA.


	[SYNCOPE-168] Allow more notification mechanisms besides e-mail
	[SYNCOPE-169] Notification chains
	[SYNCOPE-174] JMX support
	[SYNCOPE-175] End-user JSR-286 portlet
	[SYNCOPE-176] Android / iPhone end-user app
	[SYNCOPE-177] Interceptors





Change Notification Preferences

View Online
|
View Changes
|
Add Comment









svn commit: r1419362 - in /syncope/site/1.0.4: ./ apidocs/ apidocs/org/ apidocs/org/apache/ apidocs/org/apache/syncope/ apidocs/org/apache/syncope/annotation/ apidocs/org/apache/syncope/annotation/cla

2012-12-10 Thread ilgrosso
Author: ilgrosso
Date: Mon Dec 10 12:01:03 2012
New Revision: 1419362

URL: http://svn.apache.org/viewvc?rev=1419362&view=rev
Log:
staging site for release


[This commit notification would consist of 256 parts, 
which exceeds the limit of 50 ones, so it was shortened to the summary.]


svn commit: r1419337 - in /syncope/branches/1_0_X: archetype/pom.xml build-tools/pom.xml client/pom.xml console/pom.xml core/pom.xml hibernate-enhancer/pom.xml parent/pom.xml pom.xml quality/pom.xml

2012-12-10 Thread ilgrosso
Author: ilgrosso
Date: Mon Dec 10 10:55:45 2012
New Revision: 1419337

URL: http://svn.apache.org/viewvc?rev=1419337&view=rev
Log:
[maven-release-plugin] prepare for next development iteration

Modified:
syncope/branches/1_0_X/archetype/pom.xml
syncope/branches/1_0_X/build-tools/pom.xml
syncope/branches/1_0_X/client/pom.xml
syncope/branches/1_0_X/console/pom.xml
syncope/branches/1_0_X/core/pom.xml
syncope/branches/1_0_X/hibernate-enhancer/pom.xml
syncope/branches/1_0_X/parent/pom.xml
syncope/branches/1_0_X/pom.xml
syncope/branches/1_0_X/quality/pom.xml

Modified: syncope/branches/1_0_X/archetype/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/archetype/pom.xml?rev=1419337&r1=1419336&r2=1419337&view=diff
==
--- syncope/branches/1_0_X/archetype/pom.xml (original)
+++ syncope/branches/1_0_X/archetype/pom.xml Mon Dec 10 10:55:45 2012
@@ -25,7 +25,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.0.4
+1.0.5-SNAPSHOT
 ../parent
   
 
@@ -48,9 +48,9 @@ under the License.
   
 
   
-
scm:svn:http://svn.apache.org/repos/asf/syncope/tags/syncope-1.0.4/archetype
-
scm:svn:https://svn.apache.org/repos/asf/syncope/tags/syncope-1.0.4/archetype
-
http://svn.apache.org/repos/asf/syncope/tags/syncope-1.0.4/archetype
+
scm:svn:http://svn.apache.org/repos/asf/syncope/branches/1_0_X/archetype
+
scm:svn:https://svn.apache.org/repos/asf/syncope/branches/1_0_X/archetype
+http://svn.apache.org/repos/asf/syncope/branches/1_0_X/archetype
   
 
   

Modified: syncope/branches/1_0_X/build-tools/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/build-tools/pom.xml?rev=1419337&r1=1419336&r2=1419337&view=diff
==
--- syncope/branches/1_0_X/build-tools/pom.xml (original)
+++ syncope/branches/1_0_X/build-tools/pom.xml Mon Dec 10 10:55:45 2012
@@ -25,7 +25,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.0.4
+1.0.5-SNAPSHOT
 ../parent
   
 

Modified: syncope/branches/1_0_X/client/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/client/pom.xml?rev=1419337&r1=1419336&r2=1419337&view=diff
==
--- syncope/branches/1_0_X/client/pom.xml (original)
+++ syncope/branches/1_0_X/client/pom.xml Mon Dec 10 10:55:45 2012
@@ -25,7 +25,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.0.4
+1.0.5-SNAPSHOT
 ../parent
   
 

Modified: syncope/branches/1_0_X/console/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/console/pom.xml?rev=1419337&r1=1419336&r2=1419337&view=diff
==
--- syncope/branches/1_0_X/console/pom.xml (original)
+++ syncope/branches/1_0_X/console/pom.xml Mon Dec 10 10:55:45 2012
@@ -25,7 +25,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.0.4
+1.0.5-SNAPSHOT
 ../parent
   
 

Modified: syncope/branches/1_0_X/core/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/core/pom.xml?rev=1419337&r1=1419336&r2=1419337&view=diff
==
--- syncope/branches/1_0_X/core/pom.xml (original)
+++ syncope/branches/1_0_X/core/pom.xml Mon Dec 10 10:55:45 2012
@@ -25,7 +25,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.0.4
+1.0.5-SNAPSHOT
 ../parent
   
 

Modified: syncope/branches/1_0_X/hibernate-enhancer/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/hibernate-enhancer/pom.xml?rev=1419337&r1=1419336&r2=1419337&view=diff
==
--- syncope/branches/1_0_X/hibernate-enhancer/pom.xml (original)
+++ syncope/branches/1_0_X/hibernate-enhancer/pom.xml Mon Dec 10 10:55:45 2012
@@ -25,7 +25,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.0.4
+1.0.5-SNAPSHOT
 ../parent
   
 

Modified: syncope/branches/1_0_X/parent/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/parent/pom.xml?rev=1419337&r1=1419336&r2=1419337&view=diff
==
--- syncope/branches/1_0_X/parent/pom.xml (original)
+++ syncope/branches/1_0_X/parent/pom.xml Mon Dec 10 10:55:45 2012
@@ -27,7 +27,7 @@ under the License.
 
   org.apache.syncope
   syncope
-  1.0.4
+  1.0.5-SNAPSHOT
   pom
 
   
@@ -50,9 +50,9 @@ under the License.
   
 
   
-
scm:svn:http://svn.apache.org/repos/asf/syncope/tags/syncope-1.0.4/parent
-
scm:svn:https://svn.apache.org/repos/asf/syncope/tags/syncope-1.0.4/parent
-http://svn.apache.org/viewvc/syncope/tags/syncope-1.0.4/parent
+
scm:svn:http://svn.apache.org/repos/asf/syncope/branches/1_0_X/

svn commit: r1419336 - /syncope/tags/syncope-1.0.4/

2012-12-10 Thread ilgrosso
Author: ilgrosso
Date: Mon Dec 10 10:55:29 2012
New Revision: 1419336

URL: http://svn.apache.org/viewvc?rev=1419336&view=rev
Log:
[maven-release-plugin]  copy for tag syncope-1.0.4

Added:
syncope/tags/syncope-1.0.4/   (props changed)
  - copied from r1419334, syncope/branches/1_0_X/

Propchange: syncope/tags/syncope-1.0.4/
--
--- svn:ignore (added)
+++ svn:ignore Mon Dec 10 10:55:29 2012
@@ -0,0 +1,4 @@
+target
+.subversion
+.pom.xml.swp
+.NOTICE.swp

Propchange: syncope/tags/syncope-1.0.4/
--
--- svn:mergeinfo (added)
+++ svn:mergeinfo Mon Dec 10 10:55:29 2012
@@ -0,0 +1,8 @@
+/incubator/syncope/branches/0_1_X:1246484-1246581
+/incubator/syncope/branches/0_2_X:1246657-1246688
+/incubator/syncope/branches/0_5_X:1246875-1246986
+/incubator/syncope/branches/0_6_X:1247008-1247042
+/incubator/syncope/branches/0_7_EA:1247056-1247077
+/incubator/syncope/branches/0_7_X:1247257-1247396
+/incubator/syncope/tags/syncope-0.1:1246486-1246488
+/incubator/syncope/trunk:1247317-1247363




svn commit: r1419333 - in /syncope/branches/1_0_X: archetype/pom.xml build-tools/pom.xml client/pom.xml console/pom.xml core/pom.xml hibernate-enhancer/pom.xml parent/pom.xml pom.xml quality/pom.xml

2012-12-10 Thread ilgrosso
Author: ilgrosso
Date: Mon Dec 10 10:53:07 2012
New Revision: 1419333

URL: http://svn.apache.org/viewvc?rev=1419333&view=rev
Log:
[maven-release-plugin] prepare release syncope-1.0.4

Modified:
syncope/branches/1_0_X/archetype/pom.xml
syncope/branches/1_0_X/build-tools/pom.xml
syncope/branches/1_0_X/client/pom.xml
syncope/branches/1_0_X/console/pom.xml
syncope/branches/1_0_X/core/pom.xml
syncope/branches/1_0_X/hibernate-enhancer/pom.xml
syncope/branches/1_0_X/parent/pom.xml
syncope/branches/1_0_X/pom.xml
syncope/branches/1_0_X/quality/pom.xml

Modified: syncope/branches/1_0_X/archetype/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/archetype/pom.xml?rev=1419333&r1=1419332&r2=1419333&view=diff
==
--- syncope/branches/1_0_X/archetype/pom.xml (original)
+++ syncope/branches/1_0_X/archetype/pom.xml Mon Dec 10 10:53:07 2012
@@ -25,7 +25,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.0.4-SNAPSHOT
+1.0.4
 ../parent
   
 
@@ -48,9 +48,9 @@ under the License.
   
 
   
-
scm:svn:http://svn.apache.org/repos/asf/syncope/branches/1_0_X/archetype
-
scm:svn:https://svn.apache.org/repos/asf/syncope/branches/1_0_X/archetype
-http://svn.apache.org/repos/asf/syncope/branches/1_0_X/archetype
+
scm:svn:http://svn.apache.org/repos/asf/syncope/tags/syncope-1.0.4/archetype
+
scm:svn:https://svn.apache.org/repos/asf/syncope/tags/syncope-1.0.4/archetype
+
http://svn.apache.org/repos/asf/syncope/tags/syncope-1.0.4/archetype
   
 
   

Modified: syncope/branches/1_0_X/build-tools/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/build-tools/pom.xml?rev=1419333&r1=1419332&r2=1419333&view=diff
==
--- syncope/branches/1_0_X/build-tools/pom.xml (original)
+++ syncope/branches/1_0_X/build-tools/pom.xml Mon Dec 10 10:53:07 2012
@@ -25,7 +25,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.0.4-SNAPSHOT
+1.0.4
 ../parent
   
 

Modified: syncope/branches/1_0_X/client/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/client/pom.xml?rev=1419333&r1=1419332&r2=1419333&view=diff
==
--- syncope/branches/1_0_X/client/pom.xml (original)
+++ syncope/branches/1_0_X/client/pom.xml Mon Dec 10 10:53:07 2012
@@ -25,7 +25,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.0.4-SNAPSHOT
+1.0.4
 ../parent
   
 

Modified: syncope/branches/1_0_X/console/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/console/pom.xml?rev=1419333&r1=1419332&r2=1419333&view=diff
==
--- syncope/branches/1_0_X/console/pom.xml (original)
+++ syncope/branches/1_0_X/console/pom.xml Mon Dec 10 10:53:07 2012
@@ -25,7 +25,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.0.4-SNAPSHOT
+1.0.4
 ../parent
   
 

Modified: syncope/branches/1_0_X/core/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/core/pom.xml?rev=1419333&r1=1419332&r2=1419333&view=diff
==
--- syncope/branches/1_0_X/core/pom.xml (original)
+++ syncope/branches/1_0_X/core/pom.xml Mon Dec 10 10:53:07 2012
@@ -25,7 +25,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.0.4-SNAPSHOT
+1.0.4
 ../parent
   
 

Modified: syncope/branches/1_0_X/hibernate-enhancer/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/hibernate-enhancer/pom.xml?rev=1419333&r1=1419332&r2=1419333&view=diff
==
--- syncope/branches/1_0_X/hibernate-enhancer/pom.xml (original)
+++ syncope/branches/1_0_X/hibernate-enhancer/pom.xml Mon Dec 10 10:53:07 2012
@@ -25,7 +25,7 @@ under the License.
   
 org.apache.syncope
 syncope
-1.0.4-SNAPSHOT
+1.0.4
 ../parent
   
 

Modified: syncope/branches/1_0_X/parent/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/parent/pom.xml?rev=1419333&r1=1419332&r2=1419333&view=diff
==
--- syncope/branches/1_0_X/parent/pom.xml (original)
+++ syncope/branches/1_0_X/parent/pom.xml Mon Dec 10 10:53:07 2012
@@ -27,7 +27,7 @@ under the License.
 
   org.apache.syncope
   syncope
-  1.0.4-SNAPSHOT
+  1.0.4
   pom
 
   
@@ -50,9 +50,9 @@ under the License.
   
 
   
-
scm:svn:http://svn.apache.org/repos/asf/syncope/branches/1_0_X/parent
-
scm:svn:https://svn.apache.org/repos/asf/syncope/branches/1_0_X/parent
-http://svn.apache.org/viewvc/syncope/branches/1_0_X/parent
+
scm:svn:http://svn.apache.org/repos/asf/syncope/tags/syncope-1.0.4/parent
+
scm:

svn commit: r1419318 - in /syncope/branches/1_0_X: ./ CHANGES parent/src/site/xdoc/downloads.xml

2012-12-10 Thread ilgrosso
Author: ilgrosso
Date: Mon Dec 10 10:13:58 2012
New Revision: 1419318

URL: http://svn.apache.org/viewvc?rev=1419318&view=rev
Log:
updating files for release

Modified:
syncope/branches/1_0_X/   (props changed)
syncope/branches/1_0_X/CHANGES
syncope/branches/1_0_X/parent/src/site/xdoc/downloads.xml

Propchange: syncope/branches/1_0_X/
--
--- svn:ignore (original)
+++ svn:ignore Mon Dec 10 10:13:58 2012
@@ -1,3 +1,4 @@
 target
 .subversion
 .pom.xml.swp
+.NOTICE.swp

Modified: syncope/branches/1_0_X/CHANGES
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/CHANGES?rev=1419318&r1=1419317&r2=1419318&view=diff
==
--- syncope/branches/1_0_X/CHANGES (original)
+++ syncope/branches/1_0_X/CHANGES Mon Dec 10 10:13:58 2012
@@ -2,6 +2,22 @@ Apache Syncope - CHANGES
 Licensed under Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0
 

 
+Release Notes - Syncope - Version 1.0.4
+
+** Bug
+* [SYNCOPE-232] - "Connection is read-only" during initialization
+* [SYNCOPE-233] - Authentication failure using password with special 
characters
+* [SYNCOPE-234] - Failures upgrading OpenJPA
+* [SYNCOPE-235] - CSVDir connector fails during check connection
+* [SYNCOPE-236] - Username and password not evaluated from user template 
during synchronization
+* [SYNCOPE-237] - Users with no entitlements cannot edit their own profile 
via console
+* [SYNCOPE-238] - With an high number of users, the admin console's 'TODO' 
tab is extremely slow
+* [SYNCOPE-240] - Missed CREATE status into 
org.apache.syncope.console.commons.StatusUtils.Status
+
+** Improvement
+* [SYNCOPE-239] - Add OSGi support for the client
+* [SYNCOPE-243] - Extended org.apache.rat exclude list for eclipse IDE
+
 Release Notes - Syncope - Version 1.0.3-incubating
 

 ** Bug

Modified: syncope/branches/1_0_X/parent/src/site/xdoc/downloads.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/parent/src/site/xdoc/downloads.xml?rev=1419318&r1=1419317&r2=1419318&view=diff
==
--- syncope/branches/1_0_X/parent/src/site/xdoc/downloads.xml (original)
+++ syncope/branches/1_0_X/parent/src/site/xdoc/downloads.xml Mon Dec 10 
10:13:58 2012
@@ -54,8 +54,8 @@ under the License.
 
 
 
-  
-Release date: Oct 30th, 2012
+  
+Release date: Dec 10th, 2012
 
   https://cwiki.apache.org/confluence/display/SYNCOPE/Espressivo";>Release 
notes
 
@@ -69,12 +69,12 @@ under the License.
   
 
   
-http://www.apache.org/dyn/closer.cgi/syncope/1.0.3-incubating/syncope-root-1.0.3-incubating-source-release.zip";>syncope-root-1.0.3-incubating-source-release.zip
+http://www.apache.org/dyn/closer.cgi/syncope/1.0.4/syncope-root-1.0.4-source-release.zip";>syncope-root-1.0.4-source-release.zip
   
   
-http://www.apache.org/dist/syncope/1.0.3-incubating/syncope-root-1.0.3-incubating-source-release.zip.asc";>asc
 
-http://www.apache.org/dist/syncope/1.0.3-incubating/syncope-root-1.0.3-incubating-source-release.zip.md5";>md5
 
-http://www.apache.org/dist/syncope/1.0.3-incubating/syncope-root-1.0.3-incubating-source-release.zip.sha1";>sha1
+http://www.apache.org/dist/syncope/1.0.4/syncope-root-1.0.4-source-release.zip.asc";>asc
 
+http://www.apache.org/dist/syncope/1.0.4/syncope-root-1.0.4-source-release.zip.md5";>md5
 
+http://www.apache.org/dist/syncope/1.0.4/syncope-root-1.0.4-source-release.zip.sha1";>sha1
   
 
   
@@ -83,6 +83,32 @@ under the License.
 
 
 
+  
+Release date: Oct 30th, 2012
+
+  https://cwiki.apache.org/confluence/display/SYNCOPE/Espressivo";>Release 
notes
+
+
+  
+
+  Artifact
+  Signatures
+
+  
+  
+
+  
+http://archive.apache.org/dist/syncope/1.0.3-incubating/syncope-root-1.0.3-incubating-source-release.zip";>syncope-root-1.0.3-incubating-source-release.zip
+  
+  
+http://archive.apache.org/dist/syncope/1.0.3-incubating/syncope-root-1.0.3-incubating-source-release.zip.asc";>asc
 
+http://archive.apache.org/dist/syncope/1.0.3-incubating/syncope-root-1.0.3-incubating-source-release.zip.md5";>md5
 
+http://archive.apache.org/dist/syncope/1.0.3-i

svn commit: r1419298 - /syncope/trunk/

2012-12-10 Thread ilgrosso
Author: ilgrosso
Date: Mon Dec 10 09:51:42 2012
New Revision: 1419298

URL: http://svn.apache.org/viewvc?rev=1419298&view=rev
Log:
Merge from 1_0_X

Modified:
syncope/trunk/   (props changed)

Propchange: syncope/trunk/
--
  Merged /syncope/branches/1_0_X:r1418255-1419297




svn commit: r1419290 - in /syncope/branches/1_0_X: client/pom.xml parent/pom.xml

2012-12-10 Thread jbonofre
Author: jbonofre
Date: Mon Dec 10 09:37:04 2012
New Revision: 1419290

URL: http://svn.apache.org/viewvc?rev=1419290&view=rev
Log:
Set client as an OSGi bundle

Modified:
syncope/branches/1_0_X/client/pom.xml
syncope/branches/1_0_X/parent/pom.xml

Modified: syncope/branches/1_0_X/client/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/client/pom.xml?rev=1419290&r1=1419289&r2=1419290&view=diff
==
--- syncope/branches/1_0_X/client/pom.xml (original)
+++ syncope/branches/1_0_X/client/pom.xml Mon Dec 10 09:37:04 2012
@@ -33,7 +33,7 @@ under the License.
   Apache Syncope Client
   org.apache.syncope
   syncope-client
-  jar
+  bundle
 
   
 
@@ -88,6 +88,33 @@ under the License.
   
 
   
+
+
+org.apache.felix
+maven-bundle-plugin
+true
+
+
+${project.name}
+
org.apache.syncope.client
+${project.version}
+
+
org.apache.syncope*;version=${project.version};-split-package:=merge-first
+
+
+com.thoughtworks.xstream;version="[1.4,2)",
+org.apache.commons.lang*;version="[2.6,3)",
+org.apache.http*;version="[4,5)",
+org.codehaus.jackson.annotate;version="[1.9,2)",
+org.springframework*;version="[3,4)",
+ch.qos.logback.classic;resolution:=optional,
+org.slf4j;resolution:=optional
+
+
+
+
+
+
 
   
 ..

Modified: syncope/branches/1_0_X/parent/pom.xml
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/parent/pom.xml?rev=1419290&r1=1419289&r2=1419290&view=diff
==
--- syncope/branches/1_0_X/parent/pom.xml (original)
+++ syncope/branches/1_0_X/parent/pom.xml Mon Dec 10 09:37:04 2012
@@ -929,6 +929,18 @@ under the License.
   jrebel-maven-plugin
   1.1.3
 
+
+  org.apache.felix
+  maven-bundle-plugin
+  2.3.7
+  
+
+  jar
+  war
+  bundle
+
+  
+
   
 
 




svn commit: r1419289 - /syncope/branches/1_0_X/.gitignore

2012-12-10 Thread jbonofre
Author: jbonofre
Date: Mon Dec 10 09:36:52 2012
New Revision: 1419289

URL: http://svn.apache.org/viewvc?rev=1419289&view=rev
Log:
Add .gitignore file

Added:
syncope/branches/1_0_X/.gitignore

Added: syncope/branches/1_0_X/.gitignore
URL: 
http://svn.apache.org/viewvc/syncope/branches/1_0_X/.gitignore?rev=1419289&view=auto
==
--- syncope/branches/1_0_X/.gitignore (added)
+++ syncope/branches/1_0_X/.gitignore Mon Dec 10 09:36:52 2012
@@ -0,0 +1,5 @@
+target
+.idea
+*.i??
+.project
+.classpath
\ No newline at end of file




svn commit: r1419262 - in /syncope/branches/DEV_ROLE_PROVISIONING: ./ core/src/test/java/org/apache/syncope/core/rest/

2012-12-10 Thread ilgrosso
Author: ilgrosso
Date: Mon Dec 10 08:41:50 2012
New Revision: 1419262

URL: http://svn.apache.org/viewvc?rev=1419262&view=rev
Log:
Merge from trunk

Modified:
syncope/branches/DEV_ROLE_PROVISIONING/   (props changed)

syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java

syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java

syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/SchemaTestITCase.java

syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java

syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java

Propchange: syncope/branches/DEV_ROLE_PROVISIONING/
--
  Merged /syncope/trunk:r1418259-1419259

Modified: 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java
URL: 
http://svn.apache.org/viewvc/syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java?rev=1419262&r1=1419261&r2=1419262&view=diff
==
--- 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java
 (original)
+++ 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java
 Mon Dec 10 08:41:50 2012
@@ -22,6 +22,8 @@ import javax.sql.DataSource;
 import org.apache.http.auth.UsernamePasswordCredentials;
 import org.apache.http.impl.client.DefaultHttpClient;
 import org.apache.syncope.client.http.PreemptiveAuthHttpRequestFactory;
+import org.apache.syncope.client.mod.AttributeMod;
+import org.apache.syncope.client.to.AttributeTO;
 import org.junit.Before;
 import org.junit.runner.RunWith;
 import org.slf4j.Logger;
@@ -35,6 +37,20 @@ import org.springframework.web.client.Re
 @ContextConfiguration(locations = {"classpath:restClientContext.xml", 
"classpath:testJDBCContext.xml"})
 public abstract class AbstractTest {
 
+protected static AttributeTO attributeTO(final String schema, final String 
value) {
+AttributeTO attr = new AttributeTO();
+attr.setSchema(schema);
+attr.addValue(value);
+return attr;
+}
+
+protected static AttributeMod attributeMod(final String schema, final 
String valueToBeAdded) {
+AttributeMod attr = new AttributeMod();
+attr.setSchema(schema);
+attr.addValueToBeAdded(valueToBeAdded);
+return attr;
+}
+
 /**
  * Logger.
  */

Modified: 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java
URL: 
http://svn.apache.org/viewvc/syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java?rev=1419262&r1=1419261&r2=1419262&view=diff
==
--- 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java
 (original)
+++ 
syncope/branches/DEV_ROLE_PROVISIONING/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java
 Mon Dec 10 08:41:50 2012
@@ -22,37 +22,30 @@ import static org.junit.Assert.*;
 
 import java.util.ArrayList;
 import java.util.Arrays;
-import java.util.ArrayList;
 import java.util.List;
 import org.apache.http.auth.UsernamePasswordCredentials;
 import org.apache.http.impl.client.DefaultHttpClient;
 import org.apache.syncope.client.http.PreemptiveAuthHttpRequestFactory;
-import org.apache.syncope.client.mod.AttributeMod;
 import org.apache.syncope.client.mod.RoleMod;
-import org.apache.syncope.client.to.AttributeTO;
 import org.apache.syncope.client.to.ConnObjectTO;
 import org.apache.syncope.client.to.RoleTO;
 import org.apache.syncope.client.to.UserTO;
 import 
org.apache.syncope.client.validation.SyncopeClientCompositeErrorException;
 import org.apache.syncope.client.validation.SyncopeClientException;
 import org.apache.syncope.types.SyncopeClientExceptionType;
+import org.junit.FixMethodOrder;
 import org.junit.Test;
+import org.junit.runners.MethodSorters;
 import org.springframework.http.HttpStatus;
 import org.springframework.web.client.HttpStatusCodeException;
-import org.junit.FixMethodOrder;
-import org.junit.runners.MethodSorters;
 
 @FixMethodOrder(MethodSorters.JVM)
 public class RoleTestITCase extends AbstractTest {
 
 @Test
 public void createWithException() {
-AttributeTO attributeTO = new AttributeTO();
-attributeTO.setSchema("attr1");
-attributeTO.addValue("value1");
-
 RoleTO newRoleTO = new RoleTO();
-newRoleTO.addAttribute(attributeTO);
+newRoleTO.addAttribute(attributeTO("attr1", "value1"));
 
 Throwable t = null;
  

svn commit: r1419259 - in /syncope/trunk/core/src/test/java/org/apache/syncope/core/rest: AbstractTest.java RoleTestITCase.java SchemaTestITCase.java TaskTestITCase.java UserTestITCase.java

2012-12-10 Thread ilgrosso
Author: ilgrosso
Date: Mon Dec 10 08:28:43 2012
New Revision: 1419259

URL: http://svn.apache.org/viewvc?rev=1419259&view=rev
Log:
[SYNCOPE-245] Applying provided patch

Modified:

syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java

syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java

syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/SchemaTestITCase.java

syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/TaskTestITCase.java

syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/UserTestITCase.java

Modified: 
syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java
URL: 
http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java?rev=1419259&r1=1419258&r2=1419259&view=diff
==
--- 
syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java 
(original)
+++ 
syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/AbstractTest.java 
Mon Dec 10 08:28:43 2012
@@ -22,6 +22,8 @@ import javax.sql.DataSource;
 import org.apache.http.auth.UsernamePasswordCredentials;
 import org.apache.http.impl.client.DefaultHttpClient;
 import org.apache.syncope.client.http.PreemptiveAuthHttpRequestFactory;
+import org.apache.syncope.client.mod.AttributeMod;
+import org.apache.syncope.client.to.AttributeTO;
 import org.junit.Before;
 import org.junit.runner.RunWith;
 import org.slf4j.Logger;
@@ -35,6 +37,20 @@ import org.springframework.web.client.Re
 @ContextConfiguration(locations = {"classpath:restClientContext.xml", 
"classpath:testJDBCContext.xml"})
 public abstract class AbstractTest {
 
+protected static AttributeTO attributeTO(final String schema, final String 
value) {
+AttributeTO attr = new AttributeTO();
+attr.setSchema(schema);
+attr.addValue(value);
+return attr;
+}
+
+protected static AttributeMod attributeMod(final String schema, final 
String valueToBeAdded) {
+AttributeMod attr = new AttributeMod();
+attr.setSchema(schema);
+attr.addValueToBeAdded(valueToBeAdded);
+return attr;
+}
+
 /**
  * Logger.
  */

Modified: 
syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java
URL: 
http://svn.apache.org/viewvc/syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java?rev=1419259&r1=1419258&r2=1419259&view=diff
==
--- 
syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java
 (original)
+++ 
syncope/trunk/core/src/test/java/org/apache/syncope/core/rest/RoleTestITCase.java
 Mon Dec 10 08:28:43 2012
@@ -18,39 +18,37 @@
  */
 package org.apache.syncope.core.rest;
 
-import static org.junit.Assert.*;
-
-import java.util.Arrays;
 import java.util.ArrayList;
+import java.util.Arrays;
 import java.util.List;
 import org.apache.http.auth.UsernamePasswordCredentials;
 import org.apache.http.impl.client.DefaultHttpClient;
 import org.apache.syncope.client.http.PreemptiveAuthHttpRequestFactory;
-import org.apache.syncope.client.mod.AttributeMod;
 import org.apache.syncope.client.mod.RoleMod;
-import org.apache.syncope.client.to.AttributeTO;
 import org.apache.syncope.client.to.RoleTO;
 import org.apache.syncope.client.to.UserTO;
 import 
org.apache.syncope.client.validation.SyncopeClientCompositeErrorException;
 import org.apache.syncope.client.validation.SyncopeClientException;
 import org.apache.syncope.types.SyncopeClientExceptionType;
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertNotNull;
+import static org.junit.Assert.assertNull;
+import static org.junit.Assert.assertTrue;
+import static org.junit.Assert.fail;
+import org.junit.FixMethodOrder;
 import org.junit.Test;
+import org.junit.runners.MethodSorters;
 import org.springframework.http.HttpStatus;
 import org.springframework.web.client.HttpStatusCodeException;
-import org.junit.FixMethodOrder;
-import org.junit.runners.MethodSorters;
 
 @FixMethodOrder(MethodSorters.JVM)
 public class RoleTestITCase extends AbstractTest {
 
 @Test
 public void createWithException() {
-AttributeTO attributeTO = new AttributeTO();
-attributeTO.setSchema("attr1");
-attributeTO.addValue("value1");
-
 RoleTO newRoleTO = new RoleTO();
-newRoleTO.addAttribute(attributeTO);
+newRoleTO.addAttribute(attributeTO("attr1", "value1"));
 
 Throwable t = null;
 try {
@@ -77,10 +75,6 @@ public class RoleTestITCase extends Abst
 // inherited so setter execution should be ignored
 roleTO.setPasswordPolicy(2L);
 
-AttributeTO icon = new AttributeTO();
-icon.setSchema("icon");
-icon.addValue("anIc