Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/MappingTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/MappingTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/MappingTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/MappingTO.java Tue Aug 5 11:20:00 2014 @@ -1,122 +1,122 @@ -/* - * 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; - } - - @SuppressWarnings("unchecked") - public <T extends MappingItemTO> T getAccountIdItem() { - T accountIdItem = null; - for (MappingItemTO item : getItems()) { - if (item.isAccountid()) { - accountIdItem = (T) item; - } - } - return accountIdItem; - } - - protected <T extends MappingItemTO> boolean addAccountIdItem(final T 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) { - if (accountIdItem == null) { - return this.removeItem(getAccountIdItem()); - } else { - return 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); - } -} +/* + * 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; + } + + @SuppressWarnings("unchecked") + public <T extends MappingItemTO> T getAccountIdItem() { + T accountIdItem = null; + for (MappingItemTO item : getItems()) { + if (item.isAccountid()) { + accountIdItem = (T) item; + } + } + return accountIdItem; + } + + protected <T extends MappingItemTO> boolean addAccountIdItem(final T 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) { + if (accountIdItem == null) { + return this.removeItem(getAccountIdItem()); + } else { + return 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); + } +}
Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/MembershipTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/MembershipTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/MembershipTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/MembershipTO.java Tue Aug 5 11:20:00 2014 @@ -1,49 +1,49 @@ -/* - * 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; - } -} +/* + * 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; + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/NotificationTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/NotificationTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/NotificationTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/NotificationTO.java Tue Aug 5 11:20:00 2014 @@ -1,177 +1,177 @@ -/* - * 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; - } -} +/* + * 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; + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/NotificationTaskTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/NotificationTaskTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/NotificationTaskTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/NotificationTaskTO.java Tue Aug 5 11:20:00 2014 @@ -1,106 +1,106 @@ -/* - * 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; - } -} +/* + * 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; + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PasswordPolicyTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PasswordPolicyTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PasswordPolicyTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PasswordPolicyTO.java Tue Aug 5 11:20:00 2014 @@ -1,55 +1,55 @@ -/* - * 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; - } -} +/* + * 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; + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PropagationStatus.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PropagationStatus.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PropagationStatus.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PropagationStatus.java Tue Aug 5 11:20:00 2014 @@ -1,154 +1,154 @@ -/* - * 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; - } -} +/* + * 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; + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PropagationTaskTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PropagationTaskTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PropagationTaskTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PropagationTaskTO.java Tue Aug 5 11:20:00 2014 @@ -1,123 +1,123 @@ -/* - * 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; - } -} +/* + * 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; + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PushTaskTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PushTaskTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PushTaskTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/PushTaskTO.java Tue Aug 5 11:20:00 2014 @@ -1,49 +1,49 @@ -/* - * 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; - } -} +/* + * 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; + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/ReportExecTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/ReportExecTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/ReportExecTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/ReportExecTO.java Tue Aug 5 11:20:00 2014 @@ -1,40 +1,40 @@ -/* - * 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; - } - -} +/* + * 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; + } + +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/ReportTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/ReportTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/ReportTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/ReportTO.java Tue Aug 5 11:20:00 2014 @@ -1,153 +1,153 @@ -/* - * 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()); - } - } -} +/* + * 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()); + } + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/ResourceTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/ResourceTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/ResourceTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/ResourceTO.java Tue Aug 5 11:20:00 2014 @@ -1,270 +1,270 @@ -/* - * 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; - } - -} +/* + * 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; + } + +}
