You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2015/02/16 09:06:33 UTC
[08/59] [abbrv] [partial] syncope git commit: [SYNCOPE-620]
Re-organization completed
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/AbstractPolicyTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/AbstractPolicyTO.java b/common/src/main/java/org/apache/syncope/common/to/AbstractPolicyTO.java
deleted file mode 100644
index d541556..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/AbstractPolicyTO.java
+++ /dev/null
@@ -1,91 +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 com.fasterxml.jackson.annotation.JsonTypeInfo;
-
-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.XmlSeeAlso;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.syncope.common.AbstractBaseBean;
-import org.apache.syncope.common.types.PolicyType;
-
-@XmlRootElement(name = "abstractPolicy")
-@XmlType
-@XmlSeeAlso({ AccountPolicyTO.class, PasswordPolicyTO.class, SyncPolicyTO.class })
-@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
-public abstract class AbstractPolicyTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = -2903888572649721035L;
-
- private long id;
-
- private String description;
-
- private PolicyType type;
-
- private final List<String> usedByResources = new ArrayList<String>();
-
- private final List<Long> usedByRoles = new ArrayList<Long>();
-
- public long getId() {
- return id;
- }
-
- public void setId(long id) {
- this.id = id;
- }
-
- public String getDescription() {
- return description;
- }
-
- public void setDescription(final String description) {
- this.description = description;
- }
-
- public PolicyType getType() {
- return type;
- }
-
- public void setType(final PolicyType type) {
- this.type = type;
- }
-
- @XmlElementWrapper(name = "usedByResources")
- @XmlElement(name = "resource")
- @JsonProperty("usedByResources")
- public List<String> getUsedByResources() {
- return usedByResources;
- }
-
- @XmlElementWrapper(name = "usedByRoles")
- @XmlElement(name = "role")
- @JsonProperty("usedByRoles")
- public List<Long> getUsedByRoles() {
- return usedByRoles;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/AbstractSchemaTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/AbstractSchemaTO.java b/common/src/main/java/org/apache/syncope/common/to/AbstractSchemaTO.java
deleted file mode 100644
index 7742f84..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/AbstractSchemaTO.java
+++ /dev/null
@@ -1,45 +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.JsonTypeInfo;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlSeeAlso;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.syncope.common.AbstractBaseBean;
-
-@XmlRootElement(name = "abstractSchema")
-@XmlType
-@XmlSeeAlso({ SchemaTO.class, DerSchemaTO.class, VirSchemaTO.class })
-@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
-public abstract class AbstractSchemaTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = 4088388951694301759L;
-
- private String name;
-
- public String getName() {
- return name;
- }
-
- public void setName(final 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/AbstractSubjectTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/AbstractSubjectTO.java b/common/src/main/java/org/apache/syncope/common/to/AbstractSubjectTO.java
deleted file mode 100644
index 9cfae4e..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/AbstractSubjectTO.java
+++ /dev/null
@@ -1,68 +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.XmlType;
-
-@XmlType
-public abstract class AbstractSubjectTO extends AbstractAttributableTO {
-
- private static final long serialVersionUID = 114668706977919206L;
-
- private final Set<String> resources = new HashSet<String>();
-
- private final List<PropagationStatus> propagationStatusTOs = new ArrayList<PropagationStatus>();
-
- @XmlElementWrapper(name = "resources")
- @XmlElement(name = "resource")
- @JsonProperty("resources")
- public Set<String> getResources() {
- return resources;
- }
-
- public boolean removePropagationTO(final String resource) {
- if (resource != null && getPropagationStatusTOs().isEmpty()) {
- final List<PropagationStatus> toBeRemoved = new ArrayList<PropagationStatus>();
-
- for (PropagationStatus propagationTO : getPropagationStatusTOs()) {
- if (resource.equals(propagationTO.getResource())) {
- toBeRemoved.add(propagationTO);
- }
- }
-
- return propagationStatusTOs.removeAll(toBeRemoved);
- }
- return false;
- }
-
- @XmlElementWrapper(name = "propagationStatuses")
- @XmlElement(name = "propagationStatus")
- @JsonProperty("propagationStatuses")
- public List<PropagationStatus> getPropagationStatusTOs() {
- return propagationStatusTOs;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/AbstractSyncTaskTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/AbstractSyncTaskTO.java b/common/src/main/java/org/apache/syncope/common/to/AbstractSyncTaskTO.java
deleted file mode 100644
index 8d6c129..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/AbstractSyncTaskTO.java
+++ /dev/null
@@ -1,117 +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.List;
-import javax.xml.bind.annotation.XmlElement;
-import javax.xml.bind.annotation.XmlElementWrapper;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlSeeAlso;
-import javax.xml.bind.annotation.XmlType;
-import org.apache.syncope.common.types.MatchingRule;
-import org.apache.syncope.common.types.UnmatchingRule;
-
-@XmlRootElement(name = "abstractSyncTask")
-@XmlType
-@XmlSeeAlso({ PushTaskTO.class, SyncTaskTO.class })
-public class AbstractSyncTaskTO extends SchedTaskTO {
-
- private static final long serialVersionUID = -2143537546915809016L;
-
- private String resource;
-
- private boolean performCreate;
-
- private boolean performUpdate;
-
- private boolean performDelete;
-
- private boolean syncStatus;
-
- private UnmatchingRule unmatchingRule;
-
- private MatchingRule matchingRule;
-
- private List<String> actionsClassNames = new ArrayList<String>();
-
- public String getResource() {
- return resource;
- }
-
- public void setResource(String resource) {
- this.resource = resource;
- }
-
- public boolean isPerformCreate() {
- return performCreate;
- }
-
- public void setPerformCreate(boolean performCreate) {
- this.performCreate = performCreate;
- }
-
- public boolean isPerformUpdate() {
- return performUpdate;
- }
-
- public void setPerformUpdate(boolean performUpdate) {
- this.performUpdate = performUpdate;
- }
-
- public boolean isPerformDelete() {
- return performDelete;
- }
-
- public void setPerformDelete(boolean performDelete) {
- this.performDelete = performDelete;
- }
-
- public boolean isSyncStatus() {
- return syncStatus;
- }
-
- public void setSyncStatus(boolean syncStatus) {
- this.syncStatus = syncStatus;
- }
-
- @XmlElementWrapper(name = "actionsClassNames")
- @XmlElement(name = "actionsClassName")
- @JsonProperty("actionsClassNames")
- public List<String> getActionsClassNames() {
- return actionsClassNames;
- }
-
- public UnmatchingRule getUnmatchingRule() {
- return unmatchingRule;
- }
-
- public void setUnmatchingRule(final UnmatchingRule unmatchigRule) {
- this.unmatchingRule = unmatchigRule;
- }
-
- public MatchingRule getMatchingRule() {
- return matchingRule;
- }
-
- public void setMatchingRule(final MatchingRule matchigRule) {
- this.matchingRule = matchigRule;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/AbstractSysInfoTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/AbstractSysInfoTO.java b/common/src/main/java/org/apache/syncope/common/to/AbstractSysInfoTO.java
deleted file mode 100644
index 7790a3c..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/AbstractSysInfoTO.java
+++ /dev/null
@@ -1,108 +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 java.util.Date;
-import javax.xml.bind.annotation.XmlType;
-import org.apache.commons.lang3.StringUtils;
-import org.apache.syncope.common.AbstractBaseBean;
-
-/**
- * Abstract wrapper for common system information.
- */
-@XmlType
-public class AbstractSysInfoTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = -930797879027642457L;
-
- /**
- * Username of the user that has created this profile.
- * <p>
- * Cannot be used a reference to an existing user for two main reasons: the creator can be the user <tt>admin</tt>;
- * the creator could have been removed.
- */
- private String creator;
-
- /**
- * Creation date.
- */
- private Date creationDate;
-
- /**
- * Username of the user that has performed the last modification to this profile.
- * <p>
- * This field cannot be null: at creation time it have to be initialized with the creator username.
- * <p>
- * The modifier can be the user itself whether the last performed change has been a self-modification.
- * <p>
- * Cannot be used a reference to an existing user for two main reasons: the modifier can be the user <tt>admin</tt>;
- * the modifier could have been removed.
- */
- private String lastModifier;
-
- /**
- * Last change date.
- * <p>
- * This field cannot be null: at creation time it has to be initialized with <tt>creationDate</tt> field value.
- */
- private Date lastChangeDate;
-
- public String getCreator() {
- return creator;
- }
-
- public void setCreator(final String creator) {
- this.creator = creator;
- }
-
- public Date getCreationDate() {
- return creationDate;
- }
-
- public void setCreationDate(final Date creationDate) {
- this.creationDate = creationDate;
- }
-
- public String getLastModifier() {
- return lastModifier;
- }
-
- public void setLastModifier(final String lastModifier) {
- this.lastModifier = lastModifier;
- }
-
- public Date getLastChangeDate() {
- return lastChangeDate;
- }
-
- public void setLastChangeDate(final Date lastChangeDate) {
- this.lastChangeDate = lastChangeDate;
- }
-
- @JsonIgnore
- public String getETagValue() {
- Date etagDate = getLastChangeDate() == null
- ? getCreationDate() : getLastChangeDate();
- return etagDate == null
- ? StringUtils.EMPTY
- : String.valueOf(etagDate.getTime());
-
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/AbstractTaskTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/AbstractTaskTO.java b/common/src/main/java/org/apache/syncope/common/to/AbstractTaskTO.java
deleted file mode 100644
index 518f985..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/AbstractTaskTO.java
+++ /dev/null
@@ -1,100 +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 com.fasterxml.jackson.annotation.JsonTypeInfo;
-
-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.XmlSeeAlso;
-import javax.xml.bind.annotation.XmlType;
-
-import org.apache.syncope.common.AbstractBaseBean;
-
-@XmlRootElement(name = "abstractTask")
-@XmlType
-@XmlSeeAlso({ PropagationTaskTO.class, SchedTaskTO.class, NotificationTaskTO.class })
-@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS, include = JsonTypeInfo.As.PROPERTY, property = "@class")
-public abstract class AbstractTaskTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = 386450127003321197L;
-
- private long id;
-
- private String latestExecStatus;
-
- private List<TaskExecTO> executions = new ArrayList<TaskExecTO>();
-
- private Date startDate;
-
- private Date endDate;
-
- public long getId() {
- return id;
- }
-
- public void setId(final long id) {
- this.id = id;
- }
-
- public String getLatestExecStatus() {
- return latestExecStatus;
- }
-
- public void setLatestExecStatus(final String latestExecStatus) {
- this.latestExecStatus = latestExecStatus;
- }
-
- @XmlElementWrapper(name = "executions")
- @XmlElement(name = "execution")
- @JsonProperty("executions")
- public List<TaskExecTO> getExecutions() {
- return executions;
- }
-
- 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/AccountPolicyTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/AccountPolicyTO.java b/common/src/main/java/org/apache/syncope/common/to/AccountPolicyTO.java
deleted file mode 100644
index 34dce95..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/AccountPolicyTO.java
+++ /dev/null
@@ -1,69 +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.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.types.AccountPolicySpec;
-import org.apache.syncope.common.types.PolicyType;
-
-@XmlRootElement(name = "accountPolicy")
-@XmlType
-public class AccountPolicyTO extends AbstractPolicyTO {
-
- private static final long serialVersionUID = -1557150042828800134L;
-
- private AccountPolicySpec specification;
-
- private final List<String> resources = new ArrayList<String>();
-
- public AccountPolicyTO() {
- this(false);
- }
-
- public AccountPolicyTO(boolean global) {
- super();
-
- PolicyType type = global
- ? PolicyType.GLOBAL_ACCOUNT
- : PolicyType.ACCOUNT;
- setType(type);
- }
-
- public void setSpecification(final AccountPolicySpec specification) {
- this.specification = specification;
- }
-
- public AccountPolicySpec getSpecification() {
- return specification;
- }
-
- @XmlElementWrapper(name = "resources")
- @XmlElement(name = "resource")
- @JsonProperty("resources")
- public List<String> getResources() {
- return resources;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/AttributeTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/AttributeTO.java b/common/src/main/java/org/apache/syncope/common/to/AttributeTO.java
deleted file mode 100644
index 0e4d55d..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/AttributeTO.java
+++ /dev/null
@@ -1,94 +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.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(name = "attribute")
-@XmlType
-public class AttributeTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = 4941691338796323623L;
-
- /**
- * Name of the schema that this attribute is referring to.
- */
- private String schema;
-
- /**
- * Set of (string) values of this attribute.
- */
- private final List<String> values;
-
- /**
- * Whether this attribute is read-only or not.
- */
- private boolean readonly;
-
- /**
- * Default constructor.
- */
- public AttributeTO() {
- super();
- values = new ArrayList<String>();
- readonly = false;
- }
-
- /**
- * @return the name of the schema that this attribute is referring to
- */
- public String getSchema() {
- return schema;
- }
-
- /**
- * @param schema name to be set
- */
- public void setSchema(final String schema) {
- this.schema = schema;
-
- }
-
- /**
- * @return attribute values as strings
- */
- @XmlElementWrapper(name = "values")
- @XmlElement(name = "value")
- @JsonProperty("values")
- public List<String> getValues() {
- return values;
- }
-
- public boolean isReadonly() {
- return readonly;
- }
-
- public void setReadonly(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/ConfTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/ConfTO.java b/common/src/main/java/org/apache/syncope/common/to/ConfTO.java
deleted file mode 100644
index 1a0b349..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/ConfTO.java
+++ /dev/null
@@ -1,30 +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 = "conf")
-@XmlType
-public class ConfTO extends AbstractAttributableTO {
-
- private static final long serialVersionUID = -3825039700228595590L;
-
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/ConnBundleTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/ConnBundleTO.java b/common/src/main/java/org/apache/syncope/common/to/ConnBundleTO.java
deleted file mode 100644
index baa4bb9..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/ConnBundleTO.java
+++ /dev/null
@@ -1,97 +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.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.types.ConnConfPropSchema;
-
-@XmlRootElement(name = "connectorBundle")
-@XmlType
-public class ConnBundleTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = 7215115961910138005L;
-
- private String displayName;
-
- private String location;
-
- private String bundleName;
-
- private String connectorName;
-
- private String version;
-
- private List<ConnConfPropSchema> properties = new ArrayList<ConnConfPropSchema>();
-
- public String getDisplayName() {
- return displayName;
- }
-
- public void setDisplayName(final String displayName) {
- this.displayName = displayName;
- }
-
- public String getLocation() {
- return location;
- }
-
- public void setLocation(final String location) {
- this.location = location;
- }
-
- public String getBundleName() {
- return bundleName;
- }
-
- public void setBundleName(final String bundleName) {
- this.bundleName = bundleName;
- }
-
- public String getConnectorName() {
- return connectorName;
- }
-
- public void setConnectorName(final String connectorName) {
- this.connectorName = connectorName;
- }
-
- @XmlElementWrapper(name = "properties")
- @XmlElement(name = "connConfPropSchema")
- @JsonProperty("properties")
- public List<ConnConfPropSchema> getProperties() {
- return properties;
- }
-
- public String getVersion() {
- return version;
- }
-
- public void setVersion(final String version) {
- this.version = version;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/ConnIdObjectClassTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/ConnIdObjectClassTO.java b/common/src/main/java/org/apache/syncope/common/to/ConnIdObjectClassTO.java
deleted file mode 100644
index 9778e96..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/ConnIdObjectClassTO.java
+++ /dev/null
@@ -1,72 +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.XmlEnum;
-import javax.xml.bind.annotation.XmlRootElement;
-import javax.xml.bind.annotation.XmlType;
-import org.apache.syncope.common.AbstractBaseBean;
-
-/**
- * Mimic ConnId's ObjectClass information.
- */
-@XmlRootElement(name = "connIdObjectClass")
-@XmlType
-public class ConnIdObjectClassTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = 5802458031138859994L;
-
- @XmlEnum
- public enum DefaultType {
-
- ACCOUNT("__ACCOUNT__"),
- GROUP("__GROUP__");
-
- private String specialName;
-
- private DefaultType(final String specialName) {
- this.specialName = specialName;
- }
-
- public String getSpecialName() {
- return specialName;
- }
- }
-
- public static ConnIdObjectClassTO ACCOUNT = new ConnIdObjectClassTO(DefaultType.ACCOUNT.getSpecialName());
-
- public static ConnIdObjectClassTO GROUP = new ConnIdObjectClassTO(DefaultType.GROUP.getSpecialName());
-
- private String type;
-
- public ConnIdObjectClassTO() {
- }
-
- public ConnIdObjectClassTO(final String type) {
- this.type = type;
- }
-
- public String getType() {
- return type;
- }
-
- public void setType(final String type) {
- this.type = type;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/ConnInstanceTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/ConnInstanceTO.java b/common/src/main/java/org/apache/syncope/common/to/ConnInstanceTO.java
deleted file mode 100644
index 19d8ab3..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/ConnInstanceTO.java
+++ /dev/null
@@ -1,177 +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.Collections;
-import java.util.EnumSet;
-import java.util.HashMap;
-import java.util.HashSet;
-import java.util.Map;
-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.AbstractBaseBean;
-import org.apache.syncope.common.types.ConnConfProperty;
-import org.apache.syncope.common.types.ConnectorCapability;
-
-@XmlRootElement(name = "connInstance")
-@XmlType
-public class ConnInstanceTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = 2707778645445168671L;
-
- private long id;
-
- private String location;
-
- private String connectorName;
-
- private String bundleName;
-
- private String version;
-
- private final Set<ConnConfProperty> configuration;
-
- private final Set<ConnectorCapability> capabilities;
-
- private String displayName;
-
- private Integer connRequestTimeout;
-
- private ConnPoolConfTO poolConf;
-
- public ConnInstanceTO() {
- super();
-
- configuration = new HashSet<ConnConfProperty>();
- capabilities = EnumSet.noneOf(ConnectorCapability.class);
- }
-
- public long getId() {
- return id;
- }
-
- public void setId(long id) {
- this.id = id;
- }
-
- public String getLocation() {
- return location;
- }
-
- public void setLocation(final String location) {
- this.location = location;
- }
-
- public String getConnectorName() {
- return connectorName;
- }
-
- public void setConnectorName(final String connectorname) {
- this.connectorName = connectorname;
- }
-
- public String getBundleName() {
- return bundleName;
- }
-
- public void setBundleName(final String bundlename) {
- this.bundleName = bundlename;
- }
-
- public String getVersion() {
- return version;
- }
-
- public void setVersion(final String version) {
- this.version = version;
- }
-
- @XmlElementWrapper(name = "configuration")
- @XmlElement(name = "property")
- @JsonProperty("configuration")
- public Set<ConnConfProperty> getConfiguration() {
- return this.configuration;
- }
-
- @JsonIgnore
- public Map<String, ConnConfProperty> getConfigurationMap() {
- Map<String, ConnConfProperty> result;
-
- if (getConfiguration() == null) {
- result = Collections.<String, ConnConfProperty>emptyMap();
- } else {
- result = new HashMap<String, ConnConfProperty>();
- for (ConnConfProperty prop : getConfiguration()) {
- result.put(prop.getSchema().getName(), prop);
- }
- result = Collections.unmodifiableMap(result);
- }
-
- return result;
- }
-
- @XmlElementWrapper(name = "capabilities")
- @XmlElement(name = "capability")
- @JsonProperty("capabilities")
- public Set<ConnectorCapability> getCapabilities() {
- return capabilities;
- }
-
- public String getDisplayName() {
- return displayName;
- }
-
- public void setDisplayName(final String displayName) {
- this.displayName = displayName;
- }
-
- /**
- * Get connector request timeout.
- * It is not applied in case of sync, full reconciliation and search.
- *
- * @return timeout.
- */
- public Integer getConnRequestTimeout() {
- return connRequestTimeout;
- }
-
- /**
- * Set connector request timeout.
- * It is not applied in case of sync, full reconciliation and search.
- *
- * @param connRequestTimeout timeout
- */
- public void setConnRequestTimeout(final Integer connRequestTimeout) {
- this.connRequestTimeout = connRequestTimeout;
- }
-
- public ConnPoolConfTO getPoolConf() {
- return poolConf;
- }
-
- public void setPoolConf(final ConnPoolConfTO poolConf) {
- this.poolConf = poolConf;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/ConnObjectTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/ConnObjectTO.java b/common/src/main/java/org/apache/syncope/common/to/ConnObjectTO.java
deleted file mode 100644
index 9e24736..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/ConnObjectTO.java
+++ /dev/null
@@ -1,58 +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.Collections;
-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;
-
-@XmlRootElement(name = "connObject")
-@XmlType
-public class ConnObjectTO extends AbstractSysInfoTO {
-
- private static final long serialVersionUID = 5139554911265442497L;
-
- private final List<AttributeTO> attrs = new ArrayList<AttributeTO>();
-
- @XmlElementWrapper(name = "attributes")
- @XmlElement(name = "attribute")
- @JsonProperty("attributes")
- public List<AttributeTO> getAttrs() {
- return attrs;
- }
-
- @JsonIgnore
- public Map<String, AttributeTO> getAttrMap() {
- Map<String, AttributeTO> result = new HashMap<String, AttributeTO>(attrs.size());
- for (AttributeTO attributeTO : attrs) {
- result.put(attributeTO.getSchema(), attributeTO);
- }
- result = Collections.<String, AttributeTO>unmodifiableMap(result);
-
- return result;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/ConnPoolConfTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/ConnPoolConfTO.java b/common/src/main/java/org/apache/syncope/common/to/ConnPoolConfTO.java
deleted file mode 100644
index 5660b54..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/ConnPoolConfTO.java
+++ /dev/null
@@ -1,81 +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 = "connPoolConf")
-@XmlType
-public class ConnPoolConfTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = -214360178113476623L;
-
- private Integer maxObjects;
-
- private Integer minIdle;
-
- private Integer maxIdle;
-
- private Long maxWait;
-
- private Long minEvictableIdleTimeMillis;
-
- public Integer getMaxObjects() {
- return maxObjects;
- }
-
- public void setMaxObjects(final Integer maxObjects) {
- this.maxObjects = maxObjects;
- }
-
- public Integer getMinIdle() {
- return minIdle;
- }
-
- public void setMinIdle(final Integer minIdle) {
- this.minIdle = minIdle;
- }
-
- public Integer getMaxIdle() {
- return maxIdle;
- }
-
- public void setMaxIdle(final Integer maxIdle) {
- this.maxIdle = maxIdle;
- }
-
- public Long getMaxWait() {
- return maxWait;
- }
-
- public void setMaxWait(final Long maxWait) {
- this.maxWait = maxWait;
- }
-
- public Long getMinEvictableIdleTimeMillis() {
- return minEvictableIdleTimeMillis;
- }
-
- public void setMinEvictableIdleTimeMillis(final Long minEvictableIdleTimeMillis) {
- this.minEvictableIdleTimeMillis = minEvictableIdleTimeMillis;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/DerSchemaTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/DerSchemaTO.java b/common/src/main/java/org/apache/syncope/common/to/DerSchemaTO.java
deleted file mode 100644
index 570bfa0..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/DerSchemaTO.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 = "derivedSchema")
-@XmlType
-public class DerSchemaTO extends AbstractSchemaTO {
-
- private static final long serialVersionUID = -6747399803792103108L;
-
- private String expression;
-
- public String getExpression() {
- return expression;
- }
-
- public void setExpression(final String expression) {
- this.expression = expression;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/EventCategoryTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/EventCategoryTO.java b/common/src/main/java/org/apache/syncope/common/to/EventCategoryTO.java
deleted file mode 100644
index 64a41ee..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/EventCategoryTO.java
+++ /dev/null
@@ -1,89 +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.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.types.AuditElements;
-
-@XmlRootElement(name = "eventCategory")
-@XmlType
-public class EventCategoryTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = -4340060002701633401L;
-
- private AuditElements.EventCategoryType type;
-
- private String category;
-
- private String subcategory;
-
- private final List<String> events = new ArrayList<String>();
-
- /**
- * Constructor for Type.REST event category.
- */
- public EventCategoryTO() {
- this.type = AuditElements.EventCategoryType.REST;
- }
-
- /**
- * Constructor for the given Type event category.
- */
- public EventCategoryTO(final AuditElements.EventCategoryType type) {
- this.type = type;
- }
-
- public AuditElements.EventCategoryType getType() {
- return type;
- }
-
- public void setType(final AuditElements.EventCategoryType type) {
- this.type = type == null ? AuditElements.EventCategoryType.CUSTOM : type;
- }
-
- public String getCategory() {
- return category;
- }
-
- public void setCategory(final String category) {
- this.category = category;
- }
-
- public String getSubcategory() {
- return subcategory;
- }
-
- public void setSubcategory(final String subcategory) {
- this.subcategory = subcategory;
- }
-
- @XmlElementWrapper(name = "events")
- @XmlElement(name = "event")
- @JsonProperty("events")
- public List<String> getEvents() {
- return events;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/LoggerTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/LoggerTO.java b/common/src/main/java/org/apache/syncope/common/to/LoggerTO.java
deleted file mode 100644
index 4490585..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/LoggerTO.java
+++ /dev/null
@@ -1,52 +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.LoggerLevel;
-
-@XmlRootElement(name = "logger")
-@XmlType
-public class LoggerTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = -7794833835668648505L;
-
- private String name;
-
- private LoggerLevel level;
-
- public LoggerLevel getLevel() {
- return level;
- }
-
- public void setLevel(final LoggerLevel level) {
- this.level = level;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(final 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/MappingItemTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/MappingItemTO.java b/common/src/main/java/org/apache/syncope/common/to/MappingItemTO.java
deleted file mode 100644
index e28f17a..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/MappingItemTO.java
+++ /dev/null
@@ -1,135 +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.IntMappingType;
-import org.apache.syncope.common.types.MappingPurpose;
-
-@XmlRootElement(name = "mappingItem")
-@XmlType
-public class MappingItemTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = 2983498836767176862L;
-
- private Long id;
-
- /**
- * Attribute schema to be mapped. Consider that we can associate tha same attribute schema more than once, with
- * different aliases, to different resource attributes.
- */
- private String intAttrName;
-
- /**
- * Schema type to be mapped.
- */
- private IntMappingType intMappingType;
-
- /**
- * External resource's field to be mapped.
- */
- private String extAttrName;
-
- /**
- * Specify if the mapped target resource's field is the key.
- */
- private boolean accountid;
-
- /**
- * Specify if the mapped target resource's field is the password.
- */
- private boolean password;
-
- /**
- * Specify if the mapped target resource's field is nullable.
- */
- private String mandatoryCondition = "false";
-
- /**
- * Mapping purposes: SYNCHRONIZATION, PROPAGATION, BOTH, NONE.
- */
- private MappingPurpose purpose;
-
- public boolean isAccountid() {
- return accountid;
- }
-
- public void setAccountid(boolean accountid) {
- this.accountid = accountid;
- }
-
- public String getExtAttrName() {
- return extAttrName;
- }
-
- public void setExtAttrName(String extAttrName) {
- this.extAttrName = extAttrName;
- }
-
- public Long getId() {
- return id;
- }
-
- public void setId(Long id) {
- this.id = id;
- }
-
- public String getMandatoryCondition() {
- return mandatoryCondition;
- }
-
- public void setMandatoryCondition(String mandatoryCondition) {
- this.mandatoryCondition = mandatoryCondition;
- }
-
- public boolean isPassword() {
- return password;
- }
-
- public void setPassword(boolean password) {
- this.password = password;
- }
-
- public String getIntAttrName() {
- return intAttrName;
- }
-
- public void setIntAttrName(String intAttrName) {
- this.intAttrName = intAttrName;
- }
-
- public IntMappingType getIntMappingType() {
- return intMappingType;
- }
-
- public void setIntMappingType(IntMappingType intMappingType) {
- this.intMappingType = intMappingType;
- }
-
- public MappingPurpose getPurpose() {
- return purpose;
- }
-
- public void setPurpose(MappingPurpose purpose) {
- this.purpose = purpose;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/MappingTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/MappingTO.java b/common/src/main/java/org/apache/syncope/common/to/MappingTO.java
deleted file mode 100644
index 3acd063..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/MappingTO.java
+++ /dev/null
@@ -1,119 +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.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.types.IntMappingType;
-
-@XmlRootElement(name = "mapping")
-@XmlType
-public class MappingTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = 8447688036282611118L;
-
- private String accountLink;
-
- private final List<MappingItemTO> items = new ArrayList<MappingItemTO>();
-
- public String getAccountLink() {
- return accountLink;
- }
-
- public void setAccountLink(String accountLink) {
- this.accountLink = accountLink;
- }
-
- public MappingItemTO getAccountIdItem() {
- MappingItemTO accountIdItem = null;
- for (MappingItemTO item : getItems()) {
- if (item.isAccountid()) {
- accountIdItem = item;
- }
- }
- return accountIdItem;
- }
-
- protected boolean addAccountIdItem(final MappingItemTO accountIdItem) {
- if (IntMappingType.UserVirtualSchema == accountIdItem.getIntMappingType()
- || IntMappingType.RoleVirtualSchema == accountIdItem.getIntMappingType()
- || IntMappingType.MembershipVirtualSchema == accountIdItem.getIntMappingType()
- || IntMappingType.Password == accountIdItem.getIntMappingType()) {
-
- throw new IllegalArgumentException("Virtual attributes cannot be set as accountId");
- }
- if (IntMappingType.Password == accountIdItem.getIntMappingType()) {
- throw new IllegalArgumentException("Password attributes cannot be set as accountId");
- }
-
- accountIdItem.setExtAttrName(accountIdItem.getExtAttrName());
- accountIdItem.setAccountid(true);
-
- return this.addItem(accountIdItem);
- }
-
- public boolean setAccountIdItem(final MappingItemTO accountIdItem) {
- return accountIdItem == null
- ? this.removeItem(getAccountIdItem())
- : addAccountIdItem(accountIdItem);
- }
-
- public MappingItemTO getPasswordItem() {
- MappingItemTO passwordItem = null;
- for (MappingItemTO item : getItems()) {
- if (item.isPassword()) {
- passwordItem = item;
- }
- }
- return passwordItem;
- }
-
- public boolean setPasswordItem(final MappingItemTO passwordItem) {
- if (passwordItem == null) {
- return this.removeItem(getPasswordItem());
- } else {
- passwordItem.setExtAttrName(null);
- passwordItem.setPassword(true);
- return addItem(passwordItem);
- }
- }
-
- @XmlElementWrapper(name = "items")
- @XmlElement(name = "item")
- @JsonProperty("items")
- public List<MappingItemTO> getItems() {
- return items;
- }
-
- public boolean addItem(final MappingItemTO item) {
- return item == null ? false : this.items.contains(item) || this.items.add(item);
- }
-
- public boolean removeItem(final MappingItemTO item) {
- return this.items.remove(item);
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/MembershipTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/MembershipTO.java b/common/src/main/java/org/apache/syncope/common/to/MembershipTO.java
deleted file mode 100644
index 00cabf3..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/MembershipTO.java
+++ /dev/null
@@ -1,49 +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 = "membership")
-@XmlType
-public class MembershipTO extends AbstractAttributableTO {
-
- private static final long serialVersionUID = 5992828670273935861L;
-
- private long roleId;
-
- private String roleName;
-
- public long getRoleId() {
- return roleId;
- }
-
- public void setRoleId(long roleId) {
- this.roleId = roleId;
- }
-
- public String getRoleName() {
- return roleName;
- }
-
- public void setRoleName(String roleName) {
- this.roleName = roleName;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/NotificationTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/NotificationTO.java b/common/src/main/java/org/apache/syncope/common/to/NotificationTO.java
deleted file mode 100644
index 20fb9cc..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/NotificationTO.java
+++ /dev/null
@@ -1,177 +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.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.types.IntMappingType;
-import org.apache.syncope.common.types.TraceLevel;
-
-@XmlRootElement(name = "notification")
-@XmlType
-public class NotificationTO extends AbstractBaseBean {
-
- private static final long serialVersionUID = -6145117115632592612L;
-
- private Long id;
-
- private List<String> events = new ArrayList<String>();
-
- private String userAbout;
-
- private String roleAbout;
-
- private String recipients;
-
- private List<String> staticRecipients = new ArrayList<String>();
-
- private IntMappingType recipientAttrType;
-
- private String recipientAttrName;
-
- private boolean selfAsRecipient;
-
- private String sender;
-
- private String subject;
-
- private String template;
-
- private TraceLevel traceLevel;
-
- private boolean active;
-
- public String getUserAbout() {
- return userAbout;
- }
-
- public void setUserAbout(final String userAbout) {
- this.userAbout = userAbout;
- }
-
- public String getRoleAbout() {
- return roleAbout;
- }
-
- public void setRoleAbout(final String roleAbout) {
- this.roleAbout = roleAbout;
- }
-
- @XmlElementWrapper(name = "events")
- @XmlElement(name = "event")
- @JsonProperty("events")
- public List<String> getEvents() {
- return events;
- }
-
- @XmlElementWrapper(name = "staticRecipients")
- @XmlElement(name = "staticRecipient")
- @JsonProperty("staticRecipients")
- public List<String> getStaticRecipients() {
- return staticRecipients;
- }
-
- public Long getId() {
- return id;
- }
-
- public void setId(Long id) {
- this.id = id;
- }
-
- public String getRecipients() {
- return recipients;
- }
-
- public void setRecipients(String recipients) {
- this.recipients = recipients;
- }
-
- public String getRecipientAttrName() {
- return recipientAttrName;
- }
-
- public void setRecipientAttrName(String recipientAttrName) {
- this.recipientAttrName = recipientAttrName;
- }
-
- public IntMappingType getRecipientAttrType() {
- return recipientAttrType;
- }
-
- public void setRecipientAttrType(IntMappingType recipientAttrType) {
- this.recipientAttrType = recipientAttrType;
- }
-
- public boolean isSelfAsRecipient() {
- return selfAsRecipient;
- }
-
- public void setSelfAsRecipient(boolean selfAsRecipient) {
- this.selfAsRecipient = selfAsRecipient;
- }
-
- public String getSender() {
- return sender;
- }
-
- public void setSender(String sender) {
- this.sender = sender;
- }
-
- public String getSubject() {
- return subject;
- }
-
- public void setSubject(String subject) {
- this.subject = subject;
- }
-
- public String getTemplate() {
- return template;
- }
-
- public void setTemplate(String template) {
- this.template = template;
- }
-
- public TraceLevel getTraceLevel() {
- return traceLevel;
- }
-
- public void setTraceLevel(TraceLevel traceLevel) {
- this.traceLevel = traceLevel;
- }
-
- public boolean isActive() {
- return active;
- }
-
- public void setActive(boolean active) {
- this.active = active;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/NotificationTaskTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/NotificationTaskTO.java b/common/src/main/java/org/apache/syncope/common/to/NotificationTaskTO.java
deleted file mode 100644
index d0ef1b1..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/NotificationTaskTO.java
+++ /dev/null
@@ -1,106 +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.HashSet;
-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.TraceLevel;
-
-@XmlRootElement(name = "notificationTask")
-@XmlType
-public class NotificationTaskTO extends AbstractTaskTO {
-
- private static final long serialVersionUID = 371671242591093846L;
-
- private final Set<String> recipients = new HashSet<String>();
-
- private String sender;
-
- private String subject;
-
- private String textBody;
-
- private String htmlBody;
-
- private boolean executed;
-
- private TraceLevel traceLevel;
-
- @XmlElementWrapper(name = "recipients")
- @XmlElement(name = "recipient")
- @JsonProperty("recipients")
- public Set<String> getRecipients() {
- return recipients;
- }
-
- public String getSender() {
- return sender;
- }
-
- public void setSender(final String sender) {
- this.sender = sender;
- }
-
- public String getSubject() {
- return subject;
- }
-
- public void setSubject(final String subject) {
- this.subject = subject;
- }
-
- public String getTextBody() {
- return textBody;
- }
-
- public void setTextBody(final String textBody) {
- this.textBody = textBody;
- }
-
- public String getHtmlBody() {
- return htmlBody;
- }
-
- public void setHtmlBody(final String htmlBody) {
- this.htmlBody = htmlBody;
- }
-
- public boolean isExecuted() {
- return executed;
- }
-
- public void setExecuted(boolean executed) {
- this.executed = executed;
- }
-
- public TraceLevel getTraceLevel() {
- return traceLevel;
- }
-
- public void setTraceLevel(TraceLevel traceLevel) {
- this.traceLevel = traceLevel;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/PasswordPolicyTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/PasswordPolicyTO.java b/common/src/main/java/org/apache/syncope/common/to/PasswordPolicyTO.java
deleted file mode 100644
index a51f2a7..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/PasswordPolicyTO.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.PasswordPolicySpec;
-import org.apache.syncope.common.types.PolicyType;
-
-@XmlRootElement(name = "passwordPolicy")
-@XmlType
-public class PasswordPolicyTO extends AbstractPolicyTO {
-
- private static final long serialVersionUID = -5606086441294799690L;
-
- private PasswordPolicySpec specification;
-
- public PasswordPolicyTO() {
- this(false);
- }
-
- public PasswordPolicyTO(boolean global) {
- super();
-
- PolicyType type = global
- ? PolicyType.GLOBAL_PASSWORD
- : PolicyType.PASSWORD;
- setType(type);
- }
-
- public void setSpecification(final PasswordPolicySpec specification) {
- this.specification = specification;
- }
-
- public PasswordPolicySpec getSpecification() {
- return specification;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/PropagationStatus.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/PropagationStatus.java b/common/src/main/java/org/apache/syncope/common/to/PropagationStatus.java
deleted file mode 100644
index 9983c2a..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/PropagationStatus.java
+++ /dev/null
@@ -1,154 +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.to.ConnObjectTO;
-import org.apache.syncope.common.types.PropagationTaskExecStatus;
-
-/**
- * Single propagation status.
- */
-@XmlRootElement(name = "propagationStatus")
-@XmlType
-public class PropagationStatus extends AbstractBaseBean {
-
- /**
- * Serial version ID.
- */
- private static final long serialVersionUID = 3921498450222857690L;
-
- /**
- * Object before propagation.
- */
- private ConnObjectTO beforeObj;
-
- /**
- * Object after propagation.
- */
- private ConnObjectTO afterObj;
-
- /**
- * Propagated resource name.
- */
- private String resource;
-
- /**
- * Propagation task execution status.
- */
- private PropagationTaskExecStatus status;
-
- /**
- * Propagation task execution failure message.
- */
- private String failureReason;
-
- /**
- * After object getter.
- *
- * @return after object.
- */
- public ConnObjectTO getAfterObj() {
- return afterObj;
- }
-
- /**
- * After object setter.
- *
- * @param afterObj object.
- */
- public void setAfterObj(final ConnObjectTO afterObj) {
- this.afterObj = afterObj;
- }
-
- /**
- * Before object getter.
- *
- * @return before object.
- */
- public ConnObjectTO getBeforeObj() {
- return beforeObj;
- }
-
- /**
- * Before object setter.
- *
- * @param beforeObj object.
- */
- public void setBeforeObj(final ConnObjectTO beforeObj) {
- this.beforeObj = beforeObj;
- }
-
- /**
- * resource name getter.
- *
- * @return resource name.
- */
- public String getResource() {
- return resource;
- }
-
- /**
- * Resource name setter.
- *
- * @param resource resource name
- */
- public void setResource(final String resource) {
- this.resource = resource;
- }
-
- /**
- * Propagation execution status getter.
- *
- * @return status
- */
- public PropagationTaskExecStatus getStatus() {
- return status;
- }
-
- /**
- * Propagation execution status setter.
- *
- * @param status propagation execution status
- */
- public void setStatus(final PropagationTaskExecStatus status) {
- this.status = status;
- }
-
- /**
- * Propagation execution message getter.
- *
- * @return failureReason.
- */
- public String getFailureReason() {
- return failureReason;
- }
-
- /**
- * Propagation execution failure message setter.
- *
- * @param failureReason describes why this propagation failed
- */
- public void setFailureReason(final String failureReason) {
- this.failureReason = failureReason;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/PropagationTaskTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/PropagationTaskTO.java b/common/src/main/java/org/apache/syncope/common/to/PropagationTaskTO.java
deleted file mode 100644
index d6283d9..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/PropagationTaskTO.java
+++ /dev/null
@@ -1,123 +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.PropagationMode;
-import org.apache.syncope.common.types.ResourceOperation;
-import org.apache.syncope.common.types.SubjectType;
-
-@XmlRootElement(name = "propagationTask")
-@XmlType
-public class PropagationTaskTO extends AbstractTaskTO {
-
- private static final long serialVersionUID = 386450127003321197L;
-
- private PropagationMode propagationMode;
-
- private ResourceOperation propagationOperation;
-
- private String accountId;
-
- private String oldAccountId;
-
- private String xmlAttributes;
-
- private String resource;
-
- private String objectClassName;
-
- private SubjectType subjectType;
-
- private Long subjectId;
-
- public String getAccountId() {
- return accountId;
- }
-
- public void setAccountId(final String accountId) {
- this.accountId = accountId;
- }
-
- public String getOldAccountId() {
- return oldAccountId;
- }
-
- public void setOldAccountId(final String oldAccountId) {
- this.oldAccountId = oldAccountId;
- }
-
- public PropagationMode getPropagationMode() {
- return propagationMode;
- }
-
- public void setPropagationMode(final PropagationMode propagationMode) {
- this.propagationMode = propagationMode;
- }
-
- public String getResource() {
- return resource;
- }
-
- public void setResource(final String resource) {
- this.resource = resource;
- }
-
- public ResourceOperation getPropagationOperation() {
- return propagationOperation;
- }
-
- public void setPropagationOperation(final ResourceOperation propagationOperation) {
-
- this.propagationOperation = propagationOperation;
- }
-
- public String getXmlAttributes() {
- return xmlAttributes;
- }
-
- public void setXmlAttributes(final String xmlAttributes) {
- this.xmlAttributes = xmlAttributes;
- }
-
- public String getObjectClassName() {
- return objectClassName;
- }
-
- public void setObjectClassName(final String objectClassName) {
- this.objectClassName = objectClassName;
- }
-
- public SubjectType getSubjectType() {
- return subjectType;
- }
-
- public void setSubjectType(final SubjectType subjectType) {
- this.subjectType = subjectType;
- }
-
- public Long getSubjectId() {
- return subjectId;
- }
-
- public void setSubjectId(final Long subjectId) {
- this.subjectId = subjectId;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/PushTaskTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/PushTaskTO.java b/common/src/main/java/org/apache/syncope/common/to/PushTaskTO.java
deleted file mode 100644
index 60b840e..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/PushTaskTO.java
+++ /dev/null
@@ -1,49 +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 = "pushTask")
-@XmlType
-public class PushTaskTO extends AbstractSyncTaskTO {
-
- private static final long serialVersionUID = -2143537546915809018L;
-
- private String userFilter;
-
- private String roleFilter;
-
- public String getUserFilter() {
- return userFilter;
- }
-
- public void setUserFilter(String filter) {
- this.userFilter = filter;
- }
-
- public String getRoleFilter() {
- return roleFilter;
- }
-
- public void setRoleFilter(String roleFilter) {
- this.roleFilter = roleFilter;
- }
-}
http://git-wip-us.apache.org/repos/asf/syncope/blob/2d194636/common/src/main/java/org/apache/syncope/common/to/ReportExecTO.java
----------------------------------------------------------------------
diff --git a/common/src/main/java/org/apache/syncope/common/to/ReportExecTO.java b/common/src/main/java/org/apache/syncope/common/to/ReportExecTO.java
deleted file mode 100644
index 95c5164..0000000
--- a/common/src/main/java/org/apache/syncope/common/to/ReportExecTO.java
+++ /dev/null
@@ -1,40 +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 = "reportExec")
-@XmlType
-public class ReportExecTO extends AbstractExecTO {
-
- private static final long serialVersionUID = -1025555939724089215L;
-
- private long report;
-
- public long getReport() {
- return report;
- }
-
- public void setReport(long report) {
- this.report = report;
- }
-
-}