syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [07/59] [abbrv] [partial] syncope git commit: [SYNCOPE-620] Re-organization completed
Date Mon, 16 Feb 2015 08:06:32 GMT
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/ReportTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/ReportTO.java b/common/src/main/java/org/apache/syncope/common/to/ReportTO.java
deleted file mode 100644
index 191de26..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/ReportTO.java
+++ /dev/null
@@ -1,153 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElementWrapper;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.syncope.common.AbstractBaseBean;
-import org.apache.syncope.common.report.AbstractReportletConf;
-
-@XmlRootElement(name = "report")
-@XmlType
-public class ReportTO extends AbstractBaseBean {
-
-    private static final long serialVersionUID = 5274568072084814410L;
-
-    private long id;
-
-    private String name;
-
-    private List<AbstractReportletConf> reportletConfs = new ArrayList<AbstractReportletConf>();
-
-    private String cronExpression;
-
-    private List<ReportExecTO> executions = new ArrayList<ReportExecTO>();
-
-    private String latestExecStatus;
-
-    private Date lastExec;
-
-    private Date nextExec;
-
-    private Date startDate;
-
-    private Date endDate;
-
-    public long getId() {
-        return id;
-    }
-
-    public void setId(long id) {
-        this.id = id;
-    }
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(final String name) {
-        this.name = name;
-    }
-
-    @XmlElementWrapper(name = "reportletConfs")
-    @XmlElement(name = "reportletConf")
-    @JsonProperty("reportletConfs")
-    public List<AbstractReportletConf> getReportletConfs() {
-        return reportletConfs;
-    }
-
-    public String getCronExpression() {
-        return cronExpression;
-    }
-
-    public void setCronExpression(final String cronExpression) {
-        this.cronExpression = cronExpression;
-    }
-
-    @XmlElementWrapper(name = "executions")
-    @XmlElement(name = "execution")
-    @JsonProperty("executions")
-    public List<ReportExecTO> getExecutions() {
-        return executions;
-    }
-
-    public String getLatestExecStatus() {
-        return latestExecStatus;
-    }
-
-    public void setLatestExecStatus(final String latestExecStatus) {
-        this.latestExecStatus = latestExecStatus;
-    }
-
-    public Date getLastExec() {
-        return lastExec == null
-                ? null
-                : new Date(lastExec.getTime());
-    }
-
-    public void setLastExec(final Date lastExec) {
-        if (lastExec != null) {
-            this.lastExec = new Date(lastExec.getTime());
-        }
-    }
-
-    public Date getNextExec() {
-        return nextExec == null
-                ? null
-                : new Date(nextExec.getTime());
-    }
-
-    public void setNextExec(final Date nextExec) {
-        if (nextExec != null) {
-            this.nextExec = new Date(nextExec.getTime());
-        }
-    }
-
-    public Date getStartDate() {
-        return startDate == null
-                ? null
-                : new Date(startDate.getTime());
-    }
-
-    public void setStartDate(final Date startDate) {
-        if (startDate != null) {
-            this.startDate = new Date(startDate.getTime());
-        }
-    }
-
-    public Date getEndDate() {
-        return endDate == null
-                ? null
-                : new Date(endDate.getTime());
-    }
-
-    public void setEndDate(final Date endDate) {
-        if (endDate != null) {
-            this.endDate = new Date(endDate.getTime());
-        }
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/ResourceTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/ResourceTO.java b/common/src/main/java/org/apache/syncope/common/to/ResourceTO.java
deleted file mode 100644
index 676aa76..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/ResourceTO.java
+++ /dev/null
@@ -1,270 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.ArrayList;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElementWrapper;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-import org.apache.syncope.common.types.ConnConfProperty;
-import org.apache.syncope.common.types.PropagationMode;
-import org.apache.syncope.common.types.TraceLevel;
-
-@XmlRootElement(name = "resource")
-@XmlType
-public class ResourceTO extends AbstractSysInfoTO {
-
-    private static final long serialVersionUID = -9193551354041698963L;
-
-    /**
-     * The resource identifier is the name.
-     */
-    private String name;
-
-    /**
-     * The resource type is identified by the associated connector.
-     */
-    private Long connectorId;
-
-    /**
-     * Convenience information: display name for the connector id.
-     */
-    private String connectorDisplayName;
-
-    private MappingTO umapping;
-
-    private MappingTO rmapping;
-
-    private boolean propagationPrimary;
-
-    private int propagationPriority;
-
-    private boolean randomPwdIfNotProvided;
-
-    private PropagationMode propagationMode;
-
-    private boolean enforceMandatoryCondition;
-
-    private TraceLevel createTraceLevel;
-
-    private TraceLevel updateTraceLevel;
-
-    private TraceLevel deleteTraceLevel;
-
-    private TraceLevel syncTraceLevel;
-
-    private Long passwordPolicy;
-
-    private Long accountPolicy;
-
-    private Long syncPolicy;
-
-    private Set<ConnConfProperty> connConfProperties;
-
-    private String usyncToken;
-
-    private String rsyncToken;
-
-    private List<String> propagationActionsClassNames = new ArrayList<String>();
-
-    public ResourceTO() {
-        super();
-
-        connConfProperties = new HashSet<ConnConfProperty>();
-        propagationMode = PropagationMode.TWO_PHASES;
-        propagationPriority = 0;
-
-        createTraceLevel = TraceLevel.ALL;
-        updateTraceLevel = TraceLevel.ALL;
-        deleteTraceLevel = TraceLevel.ALL;
-        syncTraceLevel = TraceLevel.ALL;
-    }
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-
-    public boolean isEnforceMandatoryCondition() {
-        return enforceMandatoryCondition;
-    }
-
-    public void setEnforceMandatoryCondition(boolean enforceMandatoryCondition) {
-        this.enforceMandatoryCondition = enforceMandatoryCondition;
-    }
-
-    public Long getConnectorId() {
-        return connectorId;
-    }
-
-    public void setConnectorId(Long connectorId) {
-        this.connectorId = connectorId;
-    }
-
-    public String getConnectorDisplayName() {
-        return connectorDisplayName;
-    }
-
-    public void setConnectorDisplayName(String connectorDisplayName) {
-        this.connectorDisplayName = connectorDisplayName;
-    }
-
-    public MappingTO getUmapping() {
-        return umapping;
-    }
-
-    public void setUmapping(MappingTO umapping) {
-        this.umapping = umapping;
-    }
-
-    public MappingTO getRmapping() {
-        return rmapping;
-    }
-
-    public void setRmapping(MappingTO rmapping) {
-        this.rmapping = rmapping;
-    }
-
-    public boolean isPropagationPrimary() {
-        return propagationPrimary;
-    }
-
-    public void setPropagationPrimary(boolean propagationPrimary) {
-        this.propagationPrimary = propagationPrimary;
-    }
-
-    public int getPropagationPriority() {
-        return propagationPriority;
-    }
-
-    public void setPropagationPriority(int propagationPriority) {
-        this.propagationPriority = propagationPriority;
-    }
-
-    public boolean isRandomPwdIfNotProvided() {
-        return randomPwdIfNotProvided;
-    }
-
-    public void setRandomPwdIfNotProvided(boolean randomPwdIfNotProvided) {
-        this.randomPwdIfNotProvided = randomPwdIfNotProvided;
-    }
-
-    public PropagationMode getPropagationMode() {
-        return propagationMode;
-    }
-
-    public void setPropagationMode(PropagationMode propagationMode) {
-        this.propagationMode = propagationMode;
-    }
-
-    public TraceLevel getCreateTraceLevel() {
-        return createTraceLevel;
-    }
-
-    public void setCreateTraceLevel(TraceLevel createTraceLevel) {
-        this.createTraceLevel = createTraceLevel;
-    }
-
-    public TraceLevel getDeleteTraceLevel() {
-        return deleteTraceLevel;
-    }
-
-    public void setDeleteTraceLevel(TraceLevel deleteTraceLevel) {
-        this.deleteTraceLevel = deleteTraceLevel;
-    }
-
-    public TraceLevel getUpdateTraceLevel() {
-        return updateTraceLevel;
-    }
-
-    public void setUpdateTraceLevel(TraceLevel updateTraceLevel) {
-        this.updateTraceLevel = updateTraceLevel;
-    }
-
-    public Long getPasswordPolicy() {
-        return passwordPolicy;
-    }
-
-    public void setPasswordPolicy(Long passwordPolicy) {
-        this.passwordPolicy = passwordPolicy;
-    }
-
-    public Long getAccountPolicy() {
-        return accountPolicy;
-    }
-
-    public void setAccountPolicy(Long accountPolicy) {
-        this.accountPolicy = accountPolicy;
-    }
-
-    public Long getSyncPolicy() {
-        return syncPolicy;
-    }
-
-    public void setSyncPolicy(Long syncPolicy) {
-        this.syncPolicy = syncPolicy;
-    }
-
-    @XmlElementWrapper(name = "connConfProperties")
-    @XmlElement(name = "property")
-    @JsonProperty("connConfProperties")
-    public Set<ConnConfProperty> getConnConfProperties() {
-        return connConfProperties;
-    }
-
-    public TraceLevel getSyncTraceLevel() {
-        return syncTraceLevel;
-    }
-
-    public void setSyncTraceLevel(final TraceLevel syncTraceLevel) {
-        this.syncTraceLevel = syncTraceLevel;
-    }
-
-    public String getUsyncToken() {
-        return usyncToken;
-    }
-
-    public void setUsyncToken(final String syncToken) {
-        this.usyncToken = syncToken;
-    }
-
-    public String getRsyncToken() {
-        return rsyncToken;
-    }
-
-    public void setRsyncToken(final String syncToken) {
-        this.rsyncToken = syncToken;
-    }
-
-    @XmlElementWrapper(name = "propagationActionsClassNames")
-    @XmlElement(name = "propagationActionsClassName")
-    @JsonProperty("propagationActionsClassNames")
-    public List<String> getPropagationActionsClassNames() {
-        return propagationActionsClassNames;
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/RoleTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/RoleTO.java b/common/src/main/java/org/apache/syncope/common/to/RoleTO.java
deleted file mode 100644
index 245ea07..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/RoleTO.java
+++ /dev/null
@@ -1,258 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElementWrapper;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-@XmlRootElement(name = "role")
-@XmlType
-@JsonIgnoreProperties({ "displayName" })
-public class RoleTO extends AbstractSubjectTO {
-
-    private static final long serialVersionUID = -7785920258290147542L;
-
-    private String name;
-
-    private long parent;
-
-    private Long userOwner;
-
-    private Long roleOwner;
-
-    private boolean inheritOwner;
-
-    private boolean inheritTemplates;
-
-    private boolean inheritAttrs;
-
-    private boolean inheritDerAttrs;
-
-    private boolean inheritVirAttrs;
-
-    private boolean inheritPasswordPolicy;
-
-    private boolean inheritAccountPolicy;
-
-    private final List<String> entitlements = new ArrayList<String>();
-
-    private List<String> rAttrTemplates = new ArrayList<String>();
-
-    private List<String> rDerAttrTemplates = new ArrayList<String>();
-
-    private List<String> rVirAttrTemplates = new ArrayList<String>();
-
-    private List<String> mAttrTemplates = new ArrayList<String>();
-
-    private List<String> mDerAttrTemplates = new ArrayList<String>();
-
-    private List<String> mVirAttrTemplates = new ArrayList<String>();
-
-    private Long passwordPolicy;
-
-    private Long accountPolicy;
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(final String name) {
-        this.name = name;
-    }
-
-    public long getParent() {
-        return parent;
-    }
-
-    public void setParent(final long parent) {
-        this.parent = parent;
-    }
-
-    public Long getUserOwner() {
-        return userOwner;
-    }
-
-    public void setUserOwner(final Long userOwner) {
-        this.userOwner = userOwner;
-    }
-
-    public Long getRoleOwner() {
-        return roleOwner;
-    }
-
-    public void setRoleOwner(final Long roleOwner) {
-        this.roleOwner = roleOwner;
-    }
-
-    public boolean isInheritOwner() {
-        return inheritOwner;
-    }
-
-    public void setInheritOwner(final boolean inheritOwner) {
-        this.inheritOwner = inheritOwner;
-    }
-
-    public boolean isInheritTemplates() {
-        return inheritTemplates;
-    }
-
-    public void setInheritTemplates(boolean inheritTemplates) {
-        this.inheritTemplates = inheritTemplates;
-    }
-
-    public boolean isInheritAttrs() {
-        return inheritAttrs;
-    }
-
-    public void setInheritAttrs(final boolean inheritAttrs) {
-        this.inheritAttrs = inheritAttrs;
-    }
-
-    public boolean isInheritDerAttrs() {
-        return inheritDerAttrs;
-    }
-
-    public void setInheritDerAttrs(final boolean inheritDerAttrs) {
-        this.inheritDerAttrs = inheritDerAttrs;
-    }
-
-    public boolean isInheritVirAttrs() {
-        return inheritVirAttrs;
-    }
-
-    public void setInheritVirAttrs(final boolean inheritVirAttrs) {
-        this.inheritVirAttrs = inheritVirAttrs;
-    }
-
-    @XmlElementWrapper(name = "entitlements")
-    @XmlElement(name = "entitlement")
-    @JsonProperty("entitlements")
-    public List<String> getEntitlements() {
-        return entitlements;
-    }
-
-    @XmlElementWrapper(name = "rAttrTemplates")
-    @XmlElement(name = "rAttrTemplate")
-    @JsonProperty("rAttrTemplates")
-    public List<String> getRAttrTemplates() {
-        return rAttrTemplates;
-    }
-
-    @XmlElementWrapper(name = "rDerAttrTemplates")
-    @XmlElement(name = "rDerAttrTemplate")
-    @JsonProperty("rDerAttrTemplates")
-    public List<String> getRDerAttrTemplates() {
-        return rDerAttrTemplates;
-    }
-
-    @XmlElementWrapper(name = "rVirAttrTemplates")
-    @XmlElement(name = "rVirAttrTemplate")
-    @JsonProperty("rVirAttrTemplates")
-    public List<String> getRVirAttrTemplates() {
-        return rVirAttrTemplates;
-    }
-
-    @XmlElementWrapper(name = "mAttrTemplates")
-    @XmlElement(name = "mAttrTemplate")
-    @JsonProperty("mAttrTemplates")
-    public List<String> getMAttrTemplates() {
-        return mAttrTemplates;
-    }
-
-    @XmlElementWrapper(name = "mDerAttrTemplates")
-    @XmlElement(name = "mDerAttrTemplate")
-    @JsonProperty("mDerAttrTemplates")
-    public List<String> getMDerAttrTemplates() {
-        return mDerAttrTemplates;
-    }
-
-    @XmlElementWrapper(name = "mVirAttrTemplates")
-    @XmlElement(name = "mVirAttrTemplate")
-    @JsonProperty("mVirAttrTemplates")
-    public List<String> getMVirAttrTemplates() {
-        return mVirAttrTemplates;
-    }
-
-    public Long getPasswordPolicy() {
-        return passwordPolicy;
-    }
-
-    public void setPasswordPolicy(final Long passwordPolicy) {
-        this.passwordPolicy = passwordPolicy;
-    }
-
-    public boolean isInheritPasswordPolicy() {
-        return inheritPasswordPolicy;
-    }
-
-    /**
-     * Specify if password policy must be inherited. In this case eventual passwordPolicy occurrence will be ignored.
-     *
-     * @param inheritPasswordPolicy 'true' to inherit policy, false otherwise.
-     */
-    public void setInheritPasswordPolicy(final boolean inheritPasswordPolicy) {
-        this.inheritPasswordPolicy = inheritPasswordPolicy;
-    }
-
-    public Long getAccountPolicy() {
-        return accountPolicy;
-    }
-
-    public void setAccountPolicy(final Long accountPolicy) {
-        this.accountPolicy = accountPolicy;
-    }
-
-    public boolean isInheritAccountPolicy() {
-        return inheritAccountPolicy;
-    }
-
-    /**
-     * Specify if account policy must be inherited. In this case eventual accountPolicy occurrence will be ignored.
-     *
-     * @param inheritAccountPolicy 'true' to inherit policy, false otherwise.
-     */
-    public void setInheritAccountPolicy(final boolean inheritAccountPolicy) {
-        this.inheritAccountPolicy = inheritAccountPolicy;
-    }
-
-    public String getDisplayName() {
-        return getId() + " " + getName();
-    }
-
-    public static long fromDisplayName(final String displayName) {
-        long result = 0;
-        if (displayName != null && !displayName.isEmpty() && displayName.indexOf(' ') != -1) {
-            try {
-                result = Long.valueOf(displayName.split(" ")[0]);
-            } catch (NumberFormatException e) {
-                // just to avoid PMD warning about "empty catch block"
-                result = 0;
-            }
-        }
-
-        return result;
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/RouteTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/RouteTO.java b/common/src/main/java/org/apache/syncope/common/to/RouteTO.java
deleted file mode 100644
index 9b6f25f..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/RouteTO.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-import org.apache.syncope.common.AbstractBaseBean;
-import org.apache.syncope.common.types.SubjectType;
-
-@XmlRootElement(name = "route")
-@XmlType
-public class RouteTO extends AbstractBaseBean {
-
-    private Long id;
-
-    private String name;
-
-    private String routeContent;
-
-    private SubjectType subject;
-
-    public void setId(Long id) {
-        this.id = id;
-    }
-
-    public Long getId() {
-        return id;
-    }
-
-    public void setName(final String name) {
-        this.name = name;
-    }
-
-    public String getName() {
-        return name;
-    }
-    
-    public SubjectType getSubject() {
-        return subject;
-    }
-
-    public void setSubject(SubjectType subject) {
-        this.subject = subject;
-    }
-
-    public String getRouteContent() {
-        return routeContent;
-    }
-
-    public void setRouteContent(final String routeContent) {
-        this.routeContent = routeContent;
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/SchedTaskTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/SchedTaskTO.java b/common/src/main/java/org/apache/syncope/common/to/SchedTaskTO.java
deleted file mode 100644
index 8f189fb..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/SchedTaskTO.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import java.util.Date;
-
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlSeeAlso;
-import javax.xml.bind.annotation.XmlType;
-
-@XmlRootElement(name = "schedTask")
-@XmlType
-@XmlSeeAlso(AbstractSyncTaskTO.class)
-public class SchedTaskTO extends AbstractTaskTO {
-
-    private static final long serialVersionUID = -5722284116974636425L;
-
-    private String cronExpression;
-
-    private String jobClassName;
-
-    private String name;
-
-    private String description;
-
-    private Date lastExec;
-
-    private Date nextExec;
-
-    public String getCronExpression() {
-        return cronExpression;
-    }
-
-    public void setCronExpression(String cronExpression) {
-        this.cronExpression = cronExpression;
-    }
-
-    public String getJobClassName() {
-        return jobClassName;
-    }
-
-    public void setJobClassName(String jobClassName) {
-        this.jobClassName = jobClassName;
-    }
-
-    public Date getLastExec() {
-        return lastExec == null
-                ? null
-                : new Date(lastExec.getTime());
-    }
-
-    public void setLastExec(Date lastExec) {
-        if (lastExec != null) {
-            this.lastExec = new Date(lastExec.getTime());
-        }
-    }
-
-    public Date getNextExec() {
-        return nextExec == null
-                ? null
-                : new Date(nextExec.getTime());
-    }
-
-    public void setNextExec(Date nextExec) {
-        if (nextExec != null) {
-            this.nextExec = new Date(nextExec.getTime());
-        }
-    }
-
-    public String getDescription() {
-        return description;
-    }
-
-    public void setDescription(String description) {
-        this.description = description;
-    }
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(String name) {
-        this.name = name;
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/SchemaTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/SchemaTO.java b/common/src/main/java/org/apache/syncope/common/to/SchemaTO.java
deleted file mode 100644
index d937f50..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/SchemaTO.java
+++ /dev/null
@@ -1,156 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.commons.lang3.StringUtils;
-import org.apache.syncope.common.types.AttributeSchemaType;
-import org.apache.syncope.common.types.CipherAlgorithm;
-
-@XmlRootElement(name = "schema")
-@XmlType
-public class SchemaTO extends AbstractSchemaTO {
-
-    private static final long serialVersionUID = -8133983392476990308L;
-
-    private AttributeSchemaType type = AttributeSchemaType.String;
-
-    private String mandatoryCondition;
-
-    private boolean multivalue;
-
-    private boolean uniqueConstraint;
-
-    private boolean readonly;
-
-    private String conversionPattern;
-
-    private String validatorClass;
-
-    private String enumerationValues;
-
-    private String enumerationKeys;
-
-    private String secretKey;
-
-    private CipherAlgorithm cipherAlgorithm;
-
-    private String mimeType;
-
-    public String getConversionPattern() {
-        return conversionPattern;
-    }
-
-    public void setConversionPattern(final String conversionPattern) {
-        this.conversionPattern = conversionPattern;
-    }
-
-    public String getMandatoryCondition() {
-        return StringUtils.isNotBlank(mandatoryCondition)
-                ? mandatoryCondition
-                : "false";
-    }
-
-    public void setMandatoryCondition(final String mandatoryCondition) {
-        this.mandatoryCondition = mandatoryCondition;
-    }
-
-    public boolean isMultivalue() {
-        return multivalue;
-    }
-
-    public void setMultivalue(final boolean multivalue) {
-        this.multivalue = multivalue;
-    }
-
-    public boolean isUniqueConstraint() {
-        return uniqueConstraint;
-    }
-
-    public void setUniqueConstraint(final boolean uniqueConstraint) {
-        this.uniqueConstraint = uniqueConstraint;
-    }
-
-    public boolean isReadonly() {
-        return readonly;
-    }
-
-    public void setReadonly(final boolean readonly) {
-        this.readonly = readonly;
-    }
-
-    public AttributeSchemaType getType() {
-        return type;
-    }
-
-    public void setType(final AttributeSchemaType type) {
-        this.type = type;
-    }
-
-    public String getValidatorClass() {
-        return validatorClass;
-    }
-
-    public void setValidatorClass(final String validatorClass) {
-        this.validatorClass = validatorClass;
-    }
-
-    public String getEnumerationValues() {
-        return enumerationValues;
-    }
-
-    public void setEnumerationValues(final String enumerationValues) {
-        this.enumerationValues = enumerationValues;
-    }
-
-    public String getEnumerationKeys() {
-        return enumerationKeys;
-    }
-
-    public void setEnumerationKeys(final String enumerationKeys) {
-        this.enumerationKeys = enumerationKeys;
-    }
-
-    public String getSecretKey() {
-        return secretKey;
-    }
-
-    public void setSecretKey(final String secretKey) {
-        this.secretKey = secretKey;
-    }
-
-    public CipherAlgorithm getCipherAlgorithm() {
-        return cipherAlgorithm;
-    }
-
-    public void setCipherAlgorithm(final CipherAlgorithm cipherAlgorithm) {
-        this.cipherAlgorithm = cipherAlgorithm;
-    }
-
-    public String getMimeType() {
-        return mimeType;
-    }
-
-    public void setMimeType(final String mimeType) {
-        this.mimeType = mimeType;
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/SecurityQuestionTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/SecurityQuestionTO.java b/common/src/main/java/org/apache/syncope/common/to/SecurityQuestionTO.java
deleted file mode 100644
index a209851..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/SecurityQuestionTO.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-import org.apache.syncope.common.AbstractBaseBean;
-
-@XmlRootElement(name = "securityQuestion")
-@XmlType
-public class SecurityQuestionTO extends AbstractBaseBean {
-
-    private static final long serialVersionUID = 5969810939993556530L;
-
-    private long id;
-
-    private String content;
-
-    public long getId() {
-        return id;
-    }
-
-    public void setId(final long id) {
-        this.id = id;
-    }
-
-    public String getContent() {
-        return content;
-    }
-
-    public void setContent(final String content) {
-        this.content = content;
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/SyncPolicyTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/SyncPolicyTO.java b/common/src/main/java/org/apache/syncope/common/to/SyncPolicyTO.java
deleted file mode 100644
index f5f1a9a..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/SyncPolicyTO.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.syncope.common.types.PolicyType;
-import org.apache.syncope.common.types.SyncPolicySpec;
-
-@XmlRootElement(name = "syncPolicy")
-@XmlType
-public class SyncPolicyTO extends AbstractPolicyTO {
-
-    private static final long serialVersionUID = 993024634238024242L;
-
-    private SyncPolicySpec specification;
-
-    public SyncPolicyTO() {
-        this(false);
-    }
-
-    public SyncPolicyTO(boolean global) {
-        super();
-
-        PolicyType type = global
-                ? PolicyType.GLOBAL_SYNC
-                : PolicyType.SYNC;
-        setType(type);
-    }
-
-    public void setSpecification(final SyncPolicySpec specification) {
-        this.specification = specification;
-    }
-
-    public SyncPolicySpec getSpecification() {
-        return specification;
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/SyncTaskTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/SyncTaskTO.java b/common/src/main/java/org/apache/syncope/common/to/SyncTaskTO.java
deleted file mode 100644
index 67f3e44..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/SyncTaskTO.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-@XmlRootElement(name = "syncTask")
-@XmlType
-public class SyncTaskTO extends AbstractSyncTaskTO {
-
-    private static final long serialVersionUID = -2143537546915809017L;
-
-    private UserTO userTemplate;
-
-    private RoleTO roleTemplate;
-
-    private boolean fullReconciliation;
-
-    public UserTO getUserTemplate() {
-        return userTemplate;
-    }
-
-    public void setUserTemplate(UserTO userTemplate) {
-        this.userTemplate = userTemplate;
-    }
-
-    public RoleTO getRoleTemplate() {
-        return roleTemplate;
-    }
-
-    public void setRoleTemplate(RoleTO roleTemplate) {
-        this.roleTemplate = roleTemplate;
-    }
-
-    public boolean isFullReconciliation() {
-        return fullReconciliation;
-    }
-
-    public void setFullReconciliation(boolean fullReconciliation) {
-        this.fullReconciliation = fullReconciliation;
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/TaskExecTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/TaskExecTO.java b/common/src/main/java/org/apache/syncope/common/to/TaskExecTO.java
deleted file mode 100644
index a242bc2..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/TaskExecTO.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-@XmlRootElement(name = "taskExec")
-@XmlType
-public class TaskExecTO extends AbstractExecTO {
-
-    private static final long serialVersionUID = -5401795154606268973L;
-
-    private long task;
-
-    public long getTask() {
-        return task;
-    }
-
-    public void setTask(final long task) {
-        this.task = task;
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/UserTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/UserTO.java b/common/src/main/java/org/apache/syncope/common/to/UserTO.java
deleted file mode 100644
index 54b75f7..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/UserTO.java
+++ /dev/null
@@ -1,183 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.lang.reflect.Field;
-import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElementWrapper;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
-
-@XmlRootElement(name = "user")
-@XmlType
-public class UserTO extends AbstractSubjectTO {
-
-    private static final long serialVersionUID = 7791304495192615740L;
-
-    private String password;
-
-    private final List<MembershipTO> memberships = new ArrayList<MembershipTO>();
-
-    private String status;
-
-    private String token;
-
-    private Date tokenExpireTime;
-
-    private String username;
-
-    private Date lastLoginDate;
-
-    private Date changePwdDate;
-
-    private Integer failedLogins;
-
-    private Long securityQuestion;
-
-    private String securityAnswer;
-
-    public String getPassword() {
-        return password;
-    }
-
-    public void setPassword(final String password) {
-        this.password = password;
-    }
-
-    @XmlElementWrapper(name = "memberships")
-    @XmlElement(name = "membership")
-    @JsonProperty("memberships")
-    public List<MembershipTO> getMemberships() {
-        return memberships;
-    }
-
-    @JsonIgnore
-    public Map<Long, MembershipTO> getMembershipMap() {
-        Map<Long, MembershipTO> result;
-
-        if (getMemberships() == null) {
-            result = Collections.emptyMap();
-        } else {
-            result = new HashMap<Long, MembershipTO>(getMemberships().size());
-            for (MembershipTO membership : getMemberships()) {
-                result.put(membership.getRoleId(), membership);
-            }
-            result = Collections.unmodifiableMap(result);
-        }
-
-        return result;
-    }
-
-    public String getStatus() {
-        return status;
-    }
-
-    public void setStatus(final String status) {
-        this.status = status;
-    }
-
-    public String getToken() {
-        return token;
-    }
-
-    public void setToken(final String token) {
-        this.token = token;
-    }
-
-    public Date getTokenExpireTime() {
-        return tokenExpireTime == null
-                ? null
-                : new Date(tokenExpireTime.getTime());
-    }
-
-    public void setTokenExpireTime(final Date tokenExpireTime) {
-        if (tokenExpireTime != null) {
-            this.tokenExpireTime = new Date(tokenExpireTime.getTime());
-        }
-    }
-
-    public String getUsername() {
-        return username;
-    }
-
-    public void setUsername(final String username) {
-        this.username = username;
-    }
-
-    public Date getChangePwdDate() {
-        return changePwdDate;
-    }
-
-    public Integer getFailedLogins() {
-        return failedLogins;
-    }
-
-    public Date getLastLoginDate() {
-        return lastLoginDate;
-    }
-
-    public void setChangePwdDate(final Date changePwdDate) {
-        this.changePwdDate = changePwdDate;
-    }
-
-    public void setFailedLogins(final Integer failedLogins) {
-        this.failedLogins = failedLogins;
-    }
-
-    public void setLastLoginDate(final Date lastLoginDate) {
-        this.lastLoginDate = lastLoginDate;
-    }
-
-    public Long getSecurityQuestion() {
-        return securityQuestion;
-    }
-
-    public void setSecurityQuestion(final Long securityQuestion) {
-        this.securityQuestion = securityQuestion;
-    }
-
-    public String getSecurityAnswer() {
-        return securityAnswer;
-    }
-
-    public void setSecurityAnswer(final String securityAnswer) {
-        this.securityAnswer = securityAnswer;
-    }
-
-    @Override
-    public String toString() {
-        return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) {
-
-            @Override
-            protected boolean accept(final Field f) {
-                return super.accept(f) && !f.getName().equals("password");
-            }
-        }.toString();
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/VirSchemaTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/VirSchemaTO.java b/common/src/main/java/org/apache/syncope/common/to/VirSchemaTO.java
deleted file mode 100644
index f7d0af6..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/VirSchemaTO.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import javax.xml.bind.annotation.XmlRootElement;
-
-@XmlRootElement(name = "virtualSchema")
-public class VirSchemaTO extends AbstractSchemaTO {
-
-    private static final long serialVersionUID = -8198557479659701343L;
-    
-    private boolean readonly;
-    
-    public boolean isReadonly() {
-        return readonly;
-    }
-
-    public void setReadonly(final boolean readonly) {
-        this.readonly = readonly;
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/WorkflowFormPropertyTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/WorkflowFormPropertyTO.java b/common/src/main/java/org/apache/syncope/common/to/WorkflowFormPropertyTO.java
deleted file mode 100644
index 94d3dc8..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/WorkflowFormPropertyTO.java
+++ /dev/null
@@ -1,121 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.syncope.common.AbstractBaseBean;
-import org.apache.syncope.common.types.WorkflowFormPropertyType;
-
-@XmlRootElement(name = "workflowFormProperty")
-@XmlType
-public class WorkflowFormPropertyTO extends AbstractBaseBean {
-
-    private static final long serialVersionUID = 9139969592634304261L;
-
-    private String id;
-
-    private String name;
-
-    private WorkflowFormPropertyType type;
-
-    private String value;
-
-    private boolean readable;
-
-    private boolean writable;
-
-    private boolean required;
-
-    private String datePattern;
-
-    private Map<String, String> enumValues = new HashMap<String, String>();
-
-    public String getId() {
-        return id;
-    }
-
-    public void setId(final String id) {
-        this.id = id;
-    }
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(final String name) {
-        this.name = name;
-    }
-
-    public boolean isReadable() {
-        return readable;
-    }
-
-    public void setReadable(final boolean readable) {
-        this.readable = readable;
-    }
-
-    public boolean isRequired() {
-        return required;
-    }
-
-    public void setRequired(final boolean required) {
-        this.required = required;
-    }
-
-    public WorkflowFormPropertyType getType() {
-        return type;
-    }
-
-    public void setType(final WorkflowFormPropertyType type) {
-        this.type = type;
-    }
-
-    public String getValue() {
-        return value;
-    }
-
-    public void setValue(final String value) {
-        this.value = value;
-    }
-
-    public boolean isWritable() {
-        return writable;
-    }
-
-    public void setWritable(final boolean writable) {
-        this.writable = writable;
-    }
-
-    public String getDatePattern() {
-        return datePattern;
-    }
-
-    public void setDatePattern(final String datePattern) {
-        this.datePattern = datePattern;
-    }
-
-    public Map<String, String> getEnumValues() {
-        return enumValues;
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/WorkflowFormTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/WorkflowFormTO.java b/common/src/main/java/org/apache/syncope/common/to/WorkflowFormTO.java
deleted file mode 100644
index 26d023b..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/WorkflowFormTO.java
+++ /dev/null
@@ -1,172 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.to;
-
-import com.fasterxml.jackson.annotation.JsonIgnore;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElementWrapper;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-import org.apache.syncope.common.AbstractBaseBean;
-
-@XmlRootElement(name = "workflowForm")
-@XmlType
-public class WorkflowFormTO extends AbstractBaseBean {
-
-    private static final long serialVersionUID = -7044543391316529128L;
-
-    private long userId;
-
-    private String taskId;
-
-    private String key;
-
-    private String description;
-
-    private Date createTime;
-
-    private Date dueDate;
-
-    private String owner;
-
-    private final List<WorkflowFormPropertyTO> properties;
-
-    public WorkflowFormTO() {
-        properties = new ArrayList<WorkflowFormPropertyTO>();
-    }
-
-    public long getUserId() {
-        return userId;
-    }
-
-    public void setUserId(long userId) {
-        this.userId = userId;
-    }
-
-    public String getTaskId() {
-        return taskId;
-    }
-
-    public void setTaskId(String taskId) {
-        this.taskId = taskId;
-    }
-
-    public String getKey() {
-        return key;
-    }
-
-    public void setKey(String key) {
-        this.key = key;
-    }
-
-    public Date getCreateTime() {
-        return createTime;
-    }
-
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
-
-    public String getDescription() {
-        return description;
-    }
-
-    public void setDescription(String description) {
-        this.description = description;
-    }
-
-    public Date getDueDate() {
-        return dueDate;
-    }
-
-    public void setDueDate(Date dueDate) {
-        this.dueDate = dueDate;
-    }
-
-    public String getOwner() {
-        return owner;
-    }
-
-    public void setOwner(String owner) {
-        this.owner = owner;
-    }
-
-    @XmlElementWrapper(name = "workflowFormProperties")
-    @XmlElement(name = "workflowFormProperty")
-    @JsonProperty("workflowFormProperties")
-    public List<WorkflowFormPropertyTO> getProperties() {
-        return properties;
-    }
-
-    public boolean addProperty(final WorkflowFormPropertyTO property) {
-        return properties.contains(property)
-                ? true
-                : properties.add(property);
-    }
-
-    public boolean removeProperty(final WorkflowFormPropertyTO property) {
-        return properties.remove(property);
-    }
-
-    public void setProperties(final Collection<WorkflowFormPropertyTO> properties) {
-        if (this.properties != properties) {
-            this.properties.clear();
-            if (properties != null) {
-                this.properties.addAll(properties);
-            }
-        }
-    }
-
-    @JsonIgnore
-    public Map<String, WorkflowFormPropertyTO> getPropertyMap() {
-        Map<String, WorkflowFormPropertyTO> result;
-
-        if (getProperties() == null) {
-            result = Collections.emptyMap();
-        } else {
-            result = new HashMap<String, WorkflowFormPropertyTO>();
-            for (WorkflowFormPropertyTO prop : getProperties()) {
-                result.put(prop.getId(), prop);
-            }
-            result = Collections.unmodifiableMap(result);
-        }
-
-        return result;
-    }
-
-    @JsonIgnore
-    public Map<String, String> getPropertiesForSubmit() {
-        Map<String, String> props = new HashMap<String, String>();
-        for (WorkflowFormPropertyTO prop : getProperties()) {
-            if (prop.isWritable()) {
-                props.put(prop.getId(), prop.getValue());
-            }
-        }
-
-        return props;
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/package-info.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/package-info.java b/common/src/main/java/org/apache/syncope/common/to/package-info.java
deleted file mode 100644
index ce838a0..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/package-info.java
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * 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.
- */
-@XmlSchema(namespace = SyncopeConstants.NAMESPACE)
-package org.apache.syncope.common.to;
-
-import javax.xml.bind.annotation.XmlSchema;
-import org.apache.syncope.common.SyncopeConstants;

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/types/AbstractPolicySpec.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/types/AbstractPolicySpec.java b/common/src/main/java/org/apache/syncope/common/types/AbstractPolicySpec.java
deleted file mode 100644
index 24b153b..0000000
--- a/common/src/main/java/org/apache/syncope/common/types/AbstractPolicySpec.java
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.types;
-
-import org.apache.syncope.common.AbstractBaseBean;
-
-public abstract class AbstractPolicySpec extends AbstractBaseBean {
-
-    private static final long serialVersionUID = 2740439904103716653L;
-
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/types/AccountPolicySpec.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/types/AccountPolicySpec.java b/common/src/main/java/org/apache/syncope/common/types/AccountPolicySpec.java
deleted file mode 100644
index 8142936..0000000
--- a/common/src/main/java/org/apache/syncope/common/types/AccountPolicySpec.java
+++ /dev/null
@@ -1,190 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.types;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElementWrapper;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.syncope.common.annotation.SchemaList;
-
-@XmlType
-public class AccountPolicySpec extends AbstractPolicySpec {
-
-    private static final long serialVersionUID = 3259256974414758406L;
-
-    /**
-     * Minimum length.
-     */
-    private int maxLength;
-
-    /**
-     * Maximum length.
-     */
-    private int minLength;
-
-    /**
-     * Pattern (regular expression) that must match.
-     */
-    private String pattern;
-
-    /**
-     * Substrings not permitted.
-     */
-    private List<String> wordsNotPermitted;
-
-    /**
-     * User attribute values not permitted.
-     */
-    @SchemaList
-    private List<String> schemasNotPermitted;
-
-    /**
-     * Substrings not permitted as prefix.
-     */
-    private List<String> prefixesNotPermitted;
-
-    /**
-     * Substrings not permitted as suffix.
-     */
-    private List<String> suffixesNotPermitted;
-
-    /**
-     * Specify if one or more lowercase characters are permitted.
-     */
-    private boolean allUpperCase;
-
-    /**
-     * Specify if one or more uppercase characters are permitted.
-     */
-    private boolean allLowerCase;
-
-    /**
-     * Specify if, when reached the maximum allowed number of subsequent login failures, user shall be suspended.
-     */
-    private boolean propagateSuspension;
-
-    /**
-     * Number of permitted login retries.
-     * 0 disabled; &gt;0 enabled.
-     * If the number of subsequent failed logins will be greater then this value
-     * the account will be suspended (lock-out).
-     */
-    private int permittedLoginRetries;
-
-    public boolean isAllLowerCase() {
-        return allLowerCase;
-    }
-
-    public void setAllLowerCase(final boolean allLowerCase) {
-        this.allLowerCase = allLowerCase;
-    }
-
-    public boolean isAllUpperCase() {
-        return allUpperCase;
-    }
-
-    public void setAllUpperCase(final boolean allUpperCase) {
-        this.allUpperCase = allUpperCase;
-    }
-
-    public int getMaxLength() {
-        return maxLength;
-    }
-
-    public void setMaxLength(final int maxLength) {
-        this.maxLength = maxLength;
-    }
-
-    public int getMinLength() {
-        return minLength;
-    }
-
-    public void setMinLength(final int minLength) {
-        this.minLength = minLength;
-    }
-
-    public String getPattern() {
-        return pattern;
-    }
-
-    public void setPattern(final String pattern) {
-        this.pattern = pattern;
-    }
-
-    @XmlElementWrapper(name = "prefixesNotPermitted")
-    @XmlElement(name = "prefix")
-    @JsonProperty("prefixesNotPermitted")
-    public List<String> getPrefixesNotPermitted() {
-        if (prefixesNotPermitted == null) {
-            prefixesNotPermitted = new ArrayList<String>();
-        }
-        return prefixesNotPermitted;
-    }
-
-    @XmlElementWrapper(name = "schemasNotPermitted")
-    @XmlElement(name = "schema")
-    @JsonProperty("schemasNotPermitted")
-    public List<String> getSchemasNotPermitted() {
-        if (schemasNotPermitted == null) {
-            schemasNotPermitted = new ArrayList<String>();
-        }
-        return schemasNotPermitted;
-    }
-
-    @XmlElementWrapper(name = "suffixesNotPermitted")
-    @XmlElement(name = "suffix")
-    @JsonProperty("suffixesNotPermitted")
-    public List<String> getSuffixesNotPermitted() {
-        if (suffixesNotPermitted == null) {
-            suffixesNotPermitted = new ArrayList<String>();
-        }
-        return suffixesNotPermitted;
-    }
-
-    @XmlElementWrapper(name = "wordsNotPermitted")
-    @XmlElement(name = "word")
-    @JsonProperty("wordsNotPermitted")
-    public List<String> getWordsNotPermitted() {
-        if (wordsNotPermitted == null) {
-            wordsNotPermitted = new ArrayList<String>();
-        }
-        return wordsNotPermitted;
-    }
-
-    public boolean isPropagateSuspension() {
-        return propagateSuspension;
-    }
-
-    public void setPropagateSuspension(final boolean propagateSuspension) {
-        this.propagateSuspension = propagateSuspension;
-    }
-
-    public int getPermittedLoginRetries() {
-        return permittedLoginRetries;
-    }
-
-    public void setPermittedLoginRetries(final int permittedLoginRetries) {
-        this.permittedLoginRetries = permittedLoginRetries;
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/types/AttributableType.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/types/AttributableType.java b/common/src/main/java/org/apache/syncope/common/types/AttributableType.java
deleted file mode 100644
index c6ad5f8..0000000
--- a/common/src/main/java/org/apache/syncope/common/types/AttributableType.java
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.types;
-
-import javax.xml.bind.annotation.XmlEnum;
-
-@XmlEnum
-public enum AttributableType {
-
-    USER,
-    ROLE,
-    MEMBERSHIP,
-    CONFIGURATION;
-
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/types/AttributeSchemaType.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/types/AttributeSchemaType.java b/common/src/main/java/org/apache/syncope/common/types/AttributeSchemaType.java
deleted file mode 100644
index 47b1529..0000000
--- a/common/src/main/java/org/apache/syncope/common/types/AttributeSchemaType.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.types;
-
-import java.util.Date;
-import javax.xml.bind.annotation.XmlEnum;
-
-@XmlEnum
-public enum AttributeSchemaType {
-
-    String(String.class),
-    Long(Long.class),
-    Double(Double.class),
-    Boolean(Boolean.class),
-    Date(Date.class),
-    Enum(Enum.class),
-    Encrypted(byte[].class),
-    Binary(byte[].class);
-
-    final private Class<?> type;
-
-    AttributeSchemaType(final Class<?> type) {
-        this.type = type;
-    }
-
-    public Class<?> getType() {
-        return type;
-    }
-
-    public boolean isConversionPatternNeeded() {
-        return this == AttributeSchemaType.Date
-                || this == AttributeSchemaType.Double
-                || this == AttributeSchemaType.Long;
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/types/AuditElements.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/types/AuditElements.java b/common/src/main/java/org/apache/syncope/common/types/AuditElements.java
deleted file mode 100644
index decf23d..0000000
--- a/common/src/main/java/org/apache/syncope/common/types/AuditElements.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.types;
-
-import java.io.Serializable;
-import javax.xml.bind.annotation.XmlEnum;
-import org.apache.commons.lang3.StringUtils;
-
-public final class AuditElements implements Serializable {
-
-    private static final long serialVersionUID = -4385059255522273254L;
-
-    private AuditElements() {
-    }
-
-    @XmlEnum
-    public enum EventCategoryType {
-
-        REST(StringUtils.EMPTY),
-        TASK(StringUtils.EMPTY),
-        PROPAGATION("PropagationTask"),
-        SYNCHRONIZATION("SyncTask"),
-        PUSH("PushTask"),
-        CUSTOM(StringUtils.EMPTY);
-
-        private final String value;
-
-        EventCategoryType(final String value) {
-            this.value = value;
-        }
-
-        @Override
-        public String toString() {
-            return value;
-        }
-    }
-
-    @XmlEnum
-    public enum Result {
-
-        SUCCESS,
-        FAILURE
-
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/types/AuditLoggerName.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/types/AuditLoggerName.java b/common/src/main/java/org/apache/syncope/common/types/AuditLoggerName.java
deleted file mode 100644
index 69e2811..0000000
--- a/common/src/main/java/org/apache/syncope/common/types/AuditLoggerName.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.types;
-
-import com.fasterxml.jackson.annotation.JsonCreator;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.text.ParseException;
-import java.util.Map;
-import org.apache.commons.lang3.StringUtils;
-import org.apache.syncope.common.AbstractBaseBean;
-import org.apache.syncope.common.to.EventCategoryTO;
-import org.apache.syncope.common.types.AuditElements.Result;
-import org.apache.syncope.common.util.LoggerEventUtils;
-
-public class AuditLoggerName extends AbstractBaseBean {
-
-    private static final long serialVersionUID = -647989486671786839L;
-
-    private final AuditElements.EventCategoryType type;
-
-    private final String category;
-
-    private final String subcategory;
-
-    private final String event;
-
-    private final Result result;
-
-    @JsonCreator
-    public AuditLoggerName(
-            @JsonProperty("type") final AuditElements.EventCategoryType type,
-            @JsonProperty("category") final String category,
-            @JsonProperty("subcategory") final String subcategory,
-            @JsonProperty("event") final String event,
-            @JsonProperty("result") final Result result)
-            throws IllegalArgumentException {
-
-        this.type = type == null ? AuditElements.EventCategoryType.CUSTOM : type;
-        this.category = category;
-        this.subcategory = subcategory;
-        this.event = event;
-        this.result = result == null ? Result.SUCCESS : result;
-    }
-
-    public AuditElements.EventCategoryType getType() {
-        return type;
-    }
-
-    public String getEvent() {
-        return event;
-    }
-
-    public String getCategory() {
-        return category;
-    }
-
-    public Result getResult() {
-        return result;
-    }
-
-    public String getSubcategory() {
-        return subcategory;
-    }
-
-    public String toLoggerName() {
-        return new StringBuilder().append(
-                LoggerType.AUDIT.getPrefix()).append('.').append(
-                        LoggerEventUtils.buildEvent(type, category, subcategory, event, result)).toString();
-    }
-
-    @SuppressWarnings("unchecked")
-    public static AuditLoggerName fromLoggerName(final String loggerName)
-            throws IllegalArgumentException, ParseException {
-
-        if (StringUtils.isBlank(loggerName)) {
-            throw new IllegalArgumentException("Null value not permitted");
-        }
-
-        if (!loggerName.startsWith(LoggerType.AUDIT.getPrefix())) {
-            throw new ParseException("Audit logger name must start with " + LoggerType.AUDIT.getPrefix(), 0);
-        }
-
-        final Map.Entry<EventCategoryTO, Result> eventCategory = LoggerEventUtils.parseEventCategory(
-                loggerName.replaceAll(LoggerType.AUDIT.getPrefix() + ".", ""));
-
-        return new AuditLoggerName(
-                eventCategory.getKey().getType(),
-                eventCategory.getKey().getCategory(),
-                eventCategory.getKey().getSubcategory(),
-                eventCategory.getKey().getEvents().isEmpty()
-                ? StringUtils.EMPTY : eventCategory.getKey().getEvents().iterator().next(),
-                eventCategory.getValue());
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/types/CipherAlgorithm.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/types/CipherAlgorithm.java b/common/src/main/java/org/apache/syncope/common/types/CipherAlgorithm.java
deleted file mode 100644
index 6d50b8a..0000000
--- a/common/src/main/java/org/apache/syncope/common/types/CipherAlgorithm.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.types;
-
-import javax.xml.bind.annotation.XmlEnum;
-
-@XmlEnum
-public enum CipherAlgorithm {
-
-    SHA("SHA-1", false),
-    SHA1("SHA-1", false),
-    SHA256("SHA-256", false),
-    SHA512("SHA-512", false),
-    AES("AES", true),
-    SMD5("S-MD5", false),
-    SSHA("S-SHA-1", false),
-    SSHA1("S-SHA-1", false),
-    SSHA256("S-SHA-256", false),
-    SSHA512("S-SHA-512", false),
-    BCRYPT("BCRYPT", false);
-
-    final private String algorithm;
-
-    final private boolean invertible;
-
-    CipherAlgorithm(final String algorithm, final boolean invertible) {
-        this.algorithm = algorithm;
-        this.invertible = invertible;
-    }
-
-    public String getAlgorithm() {
-        return algorithm;
-    }
-
-    public boolean isInvertible() {
-        return invertible;
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/types/ClientExceptionType.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/types/ClientExceptionType.java b/common/src/main/java/org/apache/syncope/common/types/ClientExceptionType.java
deleted file mode 100644
index 4113ff9..0000000
--- a/common/src/main/java/org/apache/syncope/common/types/ClientExceptionType.java
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.types;
-
-import javax.ws.rs.core.Response;
-
-public enum ClientExceptionType {
-
-    AssociatedResources(Response.Status.BAD_REQUEST),
-    Composite(Response.Status.BAD_REQUEST),
-    ConcurrentModification(Response.Status.PRECONDITION_FAILED),
-    DataIntegrityViolation(Response.Status.BAD_REQUEST),
-    EntityExists(Response.Status.CONFLICT),
-    GenericPersistence(Response.Status.BAD_REQUEST),
-    InvalidSecurityAnswer(Response.Status.BAD_REQUEST),
-    InvalidLogger(Response.Status.BAD_REQUEST),
-    InvalidConnInstance(Response.Status.BAD_REQUEST),
-    InvalidConnIdConf(Response.Status.BAD_REQUEST),
-    InvalidPolicy(Response.Status.BAD_REQUEST),
-    InvalidSyncopeConf(Response.Status.BAD_REQUEST),
-    InvalidSyncopeRole(Response.Status.BAD_REQUEST),
-    InvalidReportExec(Response.Status.BAD_REQUEST),
-    InvalidRoles(Response.Status.BAD_REQUEST),
-    InvalidSchemaDefinition(Response.Status.BAD_REQUEST),
-    InvalidSearchExpression(Response.Status.BAD_REQUEST),
-    InvalidPageOrSize(Response.Status.BAD_REQUEST),
-    InvalidPropagationTaskExecReport(Response.Status.BAD_REQUEST),
-    InvalidUSchema(Response.Status.BAD_REQUEST),
-    InvalidUDerSchema(Response.Status.BAD_REQUEST),
-    InvalidUVirSchema(Response.Status.BAD_REQUEST),
-    InvalidRSchema(Response.Status.BAD_REQUEST),
-    InvalidRDerSchema(Response.Status.BAD_REQUEST),
-    InvalidRVirSchema(Response.Status.BAD_REQUEST),
-    InvalidMSchema(Response.Status.BAD_REQUEST),
-    InvalidMDerSchema(Response.Status.BAD_REQUEST),
-    InvalidMVirSchema(Response.Status.BAD_REQUEST),
-    InvalidCSchema(Response.Status.BAD_REQUEST),
-    InvalidSchemaMapping(Response.Status.BAD_REQUEST),
-    InvalidSyncopeUser(Response.Status.BAD_REQUEST),
-    InvalidExternalResource(Response.Status.BAD_REQUEST),
-    InvalidNotification(Response.Status.BAD_REQUEST),
-    InvalidPropagationTask(Response.Status.BAD_REQUEST),
-    InvalidSchedTask(Response.Status.BAD_REQUEST),
-    InvalidSyncTask(Response.Status.BAD_REQUEST),
-    InvalidPushTask(Response.Status.BAD_REQUEST),
-    InvalidValues(Response.Status.BAD_REQUEST),
-    NotFound(Response.Status.NOT_FOUND),
-    RejectedUserCreate(Response.Status.BAD_REQUEST),
-    RequiredValuesMissing(Response.Status.BAD_REQUEST),
-    RESTValidation(Response.Status.BAD_REQUEST),
-    RoleOwnership(Response.Status.BAD_REQUEST),
-    Scheduling(Response.Status.BAD_REQUEST),
-    UnauthorizedRole(Response.Status.UNAUTHORIZED),
-    Unauthorized(Response.Status.UNAUTHORIZED),
-    Unknown(Response.Status.BAD_REQUEST),
-    Workflow(Response.Status.BAD_REQUEST);
-
-    private final Response.Status responseStatus;
-
-    private ClientExceptionType(final Response.Status responseStatus) {
-        this.responseStatus = responseStatus;
-    }
-
-    public static ClientExceptionType fromHeaderValue(final String exceptionTypeHeaderValue) {
-        ClientExceptionType result = null;
-        for (ClientExceptionType type : values()) {
-            if (exceptionTypeHeaderValue.equals(type.getHeaderValue())) {
-                result = type;
-            }
-        }
-
-        if (result == null) {
-            throw new IllegalArgumentException("Unexpected header value: " + exceptionTypeHeaderValue);
-        }
-
-        return result;
-    }
-
-    public String getHeaderValue() {
-        return name();
-    }
-
-    public String getInfoHeaderValue(final String value) {
-        return getHeaderValue() + ":" + value;
-    }
-
-    public Response.Status getResponseStatus() {
-        return responseStatus;
-    }
-
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/types/ConflictResolutionAction.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/types/ConflictResolutionAction.java b/common/src/main/java/org/apache/syncope/common/types/ConflictResolutionAction.java
deleted file mode 100644
index 4195360..0000000
--- a/common/src/main/java/org/apache/syncope/common/types/ConflictResolutionAction.java
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.types;
-
-import javax.xml.bind.annotation.XmlEnum;
-
-@XmlEnum
-public enum ConflictResolutionAction {
-
-    // ignore sync
-    IGNORE,
-    // sync first matcgh
-    FIRSTMATCH,
-    // sync last match
-    LASTMATCH,
-    // sync all
-    ALL;
-
-    public static ConflictResolutionAction fromString(final String value) {
-        return ConflictResolutionAction.valueOf(value.toUpperCase());
-    }
-}

http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/types/ConnConfPropSchema.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/types/ConnConfPropSchema.java b/common/src/main/java/org/apache/syncope/common/types/ConnConfPropSchema.java
deleted file mode 100644
index 1a6930e..0000000
--- a/common/src/main/java/org/apache/syncope/common/types/ConnConfPropSchema.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/*
- * 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.
- */
-package org.apache.syncope.common.types;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-import java.util.ArrayList;
-import java.util.List;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElementWrapper;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-import org.apache.syncope.common.AbstractBaseBean;
-
-@XmlRootElement
-@XmlType
-public class ConnConfPropSchema extends AbstractBaseBean implements Comparable<ConnConfPropSchema> {
-
-    private static final long serialVersionUID = -1976365781005801296L;
-
-    private String name;
-
-    private String displayName;
-
-    private String helpMessage;
-
-    private String type;
-
-    private boolean required;
-
-    private int order;
-
-    private boolean confidential;
-
-    private final List<Object> defaultValues = new ArrayList<Object>();
-
-    public String getName() {
-        return name;
-    }
-
-    public void setName(final String name) {
-        this.name = name;
-    }
-
-    public boolean isRequired() {
-        return required;
-    }
-
-    public void setRequired(final boolean required) {
-        this.required = required;
-    }
-
-    public String getType() {
-        return type;
-    }
-
-    public void setType(final String type) {
-        this.type = type;
-    }
-
-    public String getDisplayName() {
-        return displayName;
-    }
-
-    public void setDisplayName(final String displayName) {
-        this.displayName = displayName;
-    }
-
-    public String getHelpMessage() {
-        return helpMessage;
-    }
-
-    public void setHelpMessage(final String helpMessage) {
-        this.helpMessage = helpMessage;
-    }
-
-    public int getOrder() {
-        return order;
-    }
-
-    public void setOrder(final int order) {
-        this.order = order;
-    }
-
-    public boolean isConfidential() {
-        return confidential;
-    }
-
-    public void setConfidential(final boolean confidential) {
-        this.confidential = confidential;
-    }
-
-    @XmlElementWrapper(name = "defaultValues")
-    @XmlElement(name = "defaultValue")
-    @JsonProperty("defaultValues")
-    public List<Object> getDefaultValues() {
-        return defaultValues;
-    }
-
-    @Override
-    public int compareTo(final ConnConfPropSchema connConfPropSchema) {
-        if (this.getOrder() > connConfPropSchema.getOrder()) {
-            return 1;
-        } else if (this.getOrder() < connConfPropSchema.getOrder()) {
-            return -1;
-        } else {
-            return 0;
-        }
-    }
-}


Mime
View raw message