Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/RoleTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/RoleTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/RoleTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/RoleTO.java Tue Aug 5 11:20:00 2014 @@ -1,258 +1,258 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.syncope.common.to; - -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.ArrayList; -import java.util.List; - -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementWrapper; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - -@XmlRootElement(name = "role") -@XmlType -@JsonIgnoreProperties({ "displayName" }) -public class RoleTO extends AbstractSubjectTO { - - private static final long serialVersionUID = -7785920258290147542L; - - private String name; - - private long parent; - - private Long userOwner; - - private Long roleOwner; - - private boolean inheritOwner; - - private boolean inheritTemplates; - - private boolean inheritAttrs; - - private boolean inheritDerAttrs; - - private boolean inheritVirAttrs; - - private boolean inheritPasswordPolicy; - - private boolean inheritAccountPolicy; - - private final List<String> entitlements = new ArrayList<String>(); - - private List<String> rAttrTemplates = new ArrayList<String>(); - - private List<String> rDerAttrTemplates = new ArrayList<String>(); - - private List<String> rVirAttrTemplates = new ArrayList<String>(); - - private List<String> mAttrTemplates = new ArrayList<String>(); - - private List<String> mDerAttrTemplates = new ArrayList<String>(); - - private List<String> mVirAttrTemplates = new ArrayList<String>(); - - private Long passwordPolicy; - - private Long accountPolicy; - - public String getName() { - return name; - } - - public void setName(final String name) { - this.name = name; - } - - public long getParent() { - return parent; - } - - public void setParent(final long parent) { - this.parent = parent; - } - - public Long getUserOwner() { - return userOwner; - } - - public void setUserOwner(final Long userOwner) { - this.userOwner = userOwner; - } - - public Long getRoleOwner() { - return roleOwner; - } - - public void setRoleOwner(final Long roleOwner) { - this.roleOwner = roleOwner; - } - - public boolean isInheritOwner() { - return inheritOwner; - } - - public void setInheritOwner(final boolean inheritOwner) { - this.inheritOwner = inheritOwner; - } - - public boolean isInheritTemplates() { - return inheritTemplates; - } - - public void setInheritTemplates(boolean inheritTemplates) { - this.inheritTemplates = inheritTemplates; - } - - public boolean isInheritAttrs() { - return inheritAttrs; - } - - public void setInheritAttrs(final boolean inheritAttrs) { - this.inheritAttrs = inheritAttrs; - } - - public boolean isInheritDerAttrs() { - return inheritDerAttrs; - } - - public void setInheritDerAttrs(final boolean inheritDerAttrs) { - this.inheritDerAttrs = inheritDerAttrs; - } - - public boolean isInheritVirAttrs() { - return inheritVirAttrs; - } - - public void setInheritVirAttrs(final boolean inheritVirAttrs) { - this.inheritVirAttrs = inheritVirAttrs; - } - - @XmlElementWrapper(name = "entitlements") - @XmlElement(name = "entitlement") - @JsonProperty("entitlements") - public List<String> getEntitlements() { - return entitlements; - } - - @XmlElementWrapper(name = "rAttrTemplates") - @XmlElement(name = "rAttrTemplate") - @JsonProperty("rAttrTemplates") - public List<String> getRAttrTemplates() { - return rAttrTemplates; - } - - @XmlElementWrapper(name = "rDerAttrTemplates") - @XmlElement(name = "rDerAttrTemplate") - @JsonProperty("rDerAttrTemplates") - public List<String> getRDerAttrTemplates() { - return rDerAttrTemplates; - } - - @XmlElementWrapper(name = "rVirAttrTemplates") - @XmlElement(name = "rVirAttrTemplate") - @JsonProperty("rVirAttrTemplates") - public List<String> getRVirAttrTemplates() { - return rVirAttrTemplates; - } - - @XmlElementWrapper(name = "mAttrTemplates") - @XmlElement(name = "mAttrTemplate") - @JsonProperty("mAttrTemplates") - public List<String> getMAttrTemplates() { - return mAttrTemplates; - } - - @XmlElementWrapper(name = "mDerAttrTemplates") - @XmlElement(name = "mDerAttrTemplate") - @JsonProperty("mDerAttrTemplates") - public List<String> getMDerAttrTemplates() { - return mDerAttrTemplates; - } - - @XmlElementWrapper(name = "mVirAttrTemplates") - @XmlElement(name = "mVirAttrTemplate") - @JsonProperty("mVirAttrTemplates") - public List<String> getMVirAttrTemplates() { - return mVirAttrTemplates; - } - - public Long getPasswordPolicy() { - return passwordPolicy; - } - - public void setPasswordPolicy(final Long passwordPolicy) { - this.passwordPolicy = passwordPolicy; - } - - public boolean isInheritPasswordPolicy() { - return inheritPasswordPolicy; - } - - /** - * Specify if password policy must be inherited. In this case eventual passwordPolicy occurrence will be ignored. - * - * @param inheritPasswordPolicy 'true' to inherit policy, false otherwise. - */ - public void setInheritPasswordPolicy(final boolean inheritPasswordPolicy) { - this.inheritPasswordPolicy = inheritPasswordPolicy; - } - - public Long getAccountPolicy() { - return accountPolicy; - } - - public void setAccountPolicy(final Long accountPolicy) { - this.accountPolicy = accountPolicy; - } - - public boolean isInheritAccountPolicy() { - return inheritAccountPolicy; - } - - /** - * Specify if account policy must be inherited. In this case eventual accountPolicy occurrence will be ignored. - * - * @param inheritAccountPolicy 'true' to inherit policy, false otherwise. - */ - public void setInheritAccountPolicy(final boolean inheritAccountPolicy) { - this.inheritAccountPolicy = inheritAccountPolicy; - } - - public String getDisplayName() { - return getId() + " " + getName(); - } - - public static long fromDisplayName(final String displayName) { - long result = 0; - if (displayName != null && !displayName.isEmpty() && displayName.indexOf(' ') != -1) { - try { - result = Long.valueOf(displayName.split(" ")[0]); - } catch (NumberFormatException e) { - // just to avoid PMD warning about "empty catch block" - result = 0; - } - } - - return result; - } -} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.common.to; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; +import java.util.List; + +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElementWrapper; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + +@XmlRootElement(name = "role") +@XmlType +@JsonIgnoreProperties({ "displayName" }) +public class RoleTO extends AbstractSubjectTO { + + private static final long serialVersionUID = -7785920258290147542L; + + private String name; + + private long parent; + + private Long userOwner; + + private Long roleOwner; + + private boolean inheritOwner; + + private boolean inheritTemplates; + + private boolean inheritAttrs; + + private boolean inheritDerAttrs; + + private boolean inheritVirAttrs; + + private boolean inheritPasswordPolicy; + + private boolean inheritAccountPolicy; + + private final List<String> entitlements = new ArrayList<String>(); + + private List<String> rAttrTemplates = new ArrayList<String>(); + + private List<String> rDerAttrTemplates = new ArrayList<String>(); + + private List<String> rVirAttrTemplates = new ArrayList<String>(); + + private List<String> mAttrTemplates = new ArrayList<String>(); + + private List<String> mDerAttrTemplates = new ArrayList<String>(); + + private List<String> mVirAttrTemplates = new ArrayList<String>(); + + private Long passwordPolicy; + + private Long accountPolicy; + + public String getName() { + return name; + } + + public void setName(final String name) { + this.name = name; + } + + public long getParent() { + return parent; + } + + public void setParent(final long parent) { + this.parent = parent; + } + + public Long getUserOwner() { + return userOwner; + } + + public void setUserOwner(final Long userOwner) { + this.userOwner = userOwner; + } + + public Long getRoleOwner() { + return roleOwner; + } + + public void setRoleOwner(final Long roleOwner) { + this.roleOwner = roleOwner; + } + + public boolean isInheritOwner() { + return inheritOwner; + } + + public void setInheritOwner(final boolean inheritOwner) { + this.inheritOwner = inheritOwner; + } + + public boolean isInheritTemplates() { + return inheritTemplates; + } + + public void setInheritTemplates(boolean inheritTemplates) { + this.inheritTemplates = inheritTemplates; + } + + public boolean isInheritAttrs() { + return inheritAttrs; + } + + public void setInheritAttrs(final boolean inheritAttrs) { + this.inheritAttrs = inheritAttrs; + } + + public boolean isInheritDerAttrs() { + return inheritDerAttrs; + } + + public void setInheritDerAttrs(final boolean inheritDerAttrs) { + this.inheritDerAttrs = inheritDerAttrs; + } + + public boolean isInheritVirAttrs() { + return inheritVirAttrs; + } + + public void setInheritVirAttrs(final boolean inheritVirAttrs) { + this.inheritVirAttrs = inheritVirAttrs; + } + + @XmlElementWrapper(name = "entitlements") + @XmlElement(name = "entitlement") + @JsonProperty("entitlements") + public List<String> getEntitlements() { + return entitlements; + } + + @XmlElementWrapper(name = "rAttrTemplates") + @XmlElement(name = "rAttrTemplate") + @JsonProperty("rAttrTemplates") + public List<String> getRAttrTemplates() { + return rAttrTemplates; + } + + @XmlElementWrapper(name = "rDerAttrTemplates") + @XmlElement(name = "rDerAttrTemplate") + @JsonProperty("rDerAttrTemplates") + public List<String> getRDerAttrTemplates() { + return rDerAttrTemplates; + } + + @XmlElementWrapper(name = "rVirAttrTemplates") + @XmlElement(name = "rVirAttrTemplate") + @JsonProperty("rVirAttrTemplates") + public List<String> getRVirAttrTemplates() { + return rVirAttrTemplates; + } + + @XmlElementWrapper(name = "mAttrTemplates") + @XmlElement(name = "mAttrTemplate") + @JsonProperty("mAttrTemplates") + public List<String> getMAttrTemplates() { + return mAttrTemplates; + } + + @XmlElementWrapper(name = "mDerAttrTemplates") + @XmlElement(name = "mDerAttrTemplate") + @JsonProperty("mDerAttrTemplates") + public List<String> getMDerAttrTemplates() { + return mDerAttrTemplates; + } + + @XmlElementWrapper(name = "mVirAttrTemplates") + @XmlElement(name = "mVirAttrTemplate") + @JsonProperty("mVirAttrTemplates") + public List<String> getMVirAttrTemplates() { + return mVirAttrTemplates; + } + + public Long getPasswordPolicy() { + return passwordPolicy; + } + + public void setPasswordPolicy(final Long passwordPolicy) { + this.passwordPolicy = passwordPolicy; + } + + public boolean isInheritPasswordPolicy() { + return inheritPasswordPolicy; + } + + /** + * Specify if password policy must be inherited. In this case eventual passwordPolicy occurrence will be ignored. + * + * @param inheritPasswordPolicy 'true' to inherit policy, false otherwise. + */ + public void setInheritPasswordPolicy(final boolean inheritPasswordPolicy) { + this.inheritPasswordPolicy = inheritPasswordPolicy; + } + + public Long getAccountPolicy() { + return accountPolicy; + } + + public void setAccountPolicy(final Long accountPolicy) { + this.accountPolicy = accountPolicy; + } + + public boolean isInheritAccountPolicy() { + return inheritAccountPolicy; + } + + /** + * Specify if account policy must be inherited. In this case eventual accountPolicy occurrence will be ignored. + * + * @param inheritAccountPolicy 'true' to inherit policy, false otherwise. + */ + public void setInheritAccountPolicy(final boolean inheritAccountPolicy) { + this.inheritAccountPolicy = inheritAccountPolicy; + } + + public String getDisplayName() { + return getId() + " " + getName(); + } + + public static long fromDisplayName(final String displayName) { + long result = 0; + if (displayName != null && !displayName.isEmpty() && displayName.indexOf(' ') != -1) { + try { + result = Long.valueOf(displayName.split(" ")[0]); + } catch (NumberFormatException e) { + // just to avoid PMD warning about "empty catch block" + result = 0; + } + } + + return result; + } +}
Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SchedTaskTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SchedTaskTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SchedTaskTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SchedTaskTO.java Tue Aug 5 11:20:00 2014 @@ -1,101 +1,101 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.syncope.common.to; - -import java.util.Date; - -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlSeeAlso; -import javax.xml.bind.annotation.XmlType; - -@XmlRootElement(name = "schedTask") -@XmlType -@XmlSeeAlso(AbstractSyncTaskTO.class) -public class SchedTaskTO extends AbstractTaskTO { - - private static final long serialVersionUID = -5722284116974636425L; - - private String cronExpression; - - private String jobClassName; - - private String name; - - private String description; - - private Date lastExec; - - private Date nextExec; - - public String getCronExpression() { - return cronExpression; - } - - public void setCronExpression(String cronExpression) { - this.cronExpression = cronExpression; - } - - public String getJobClassName() { - return jobClassName; - } - - public void setJobClassName(String jobClassName) { - this.jobClassName = jobClassName; - } - - public Date getLastExec() { - return lastExec == null - ? null - : new Date(lastExec.getTime()); - } - - public void setLastExec(Date lastExec) { - if (lastExec != null) { - this.lastExec = new Date(lastExec.getTime()); - } - } - - public Date getNextExec() { - return nextExec == null - ? null - : new Date(nextExec.getTime()); - } - - public void setNextExec(Date nextExec) { - if (nextExec != null) { - this.nextExec = new Date(nextExec.getTime()); - } - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } -} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.common.to; + +import java.util.Date; + +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + +@XmlRootElement(name = "schedTask") +@XmlType +@XmlSeeAlso(AbstractSyncTaskTO.class) +public class SchedTaskTO extends AbstractTaskTO { + + private static final long serialVersionUID = -5722284116974636425L; + + private String cronExpression; + + private String jobClassName; + + private String name; + + private String description; + + private Date lastExec; + + private Date nextExec; + + public String getCronExpression() { + return cronExpression; + } + + public void setCronExpression(String cronExpression) { + this.cronExpression = cronExpression; + } + + public String getJobClassName() { + return jobClassName; + } + + public void setJobClassName(String jobClassName) { + this.jobClassName = jobClassName; + } + + public Date getLastExec() { + return lastExec == null + ? null + : new Date(lastExec.getTime()); + } + + public void setLastExec(Date lastExec) { + if (lastExec != null) { + this.lastExec = new Date(lastExec.getTime()); + } + } + + public Date getNextExec() { + return nextExec == null + ? null + : new Date(nextExec.getTime()); + } + + public void setNextExec(Date nextExec) { + if (nextExec != null) { + this.nextExec = new Date(nextExec.getTime()); + } + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SchemaTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SchemaTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SchemaTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SchemaTO.java Tue Aug 5 11:20:00 2014 @@ -1,156 +1,156 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.syncope.common.to; - -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - -import org.apache.commons.lang3.StringUtils; -import org.apache.syncope.common.types.AttributeSchemaType; -import org.apache.syncope.common.types.CipherAlgorithm; - -@XmlRootElement(name = "schema") -@XmlType -public class SchemaTO extends AbstractSchemaTO { - - private static final long serialVersionUID = -8133983392476990308L; - - private AttributeSchemaType type = AttributeSchemaType.String; - - private String mandatoryCondition; - - private boolean multivalue; - - private boolean uniqueConstraint; - - private boolean readonly; - - private String conversionPattern; - - private String validatorClass; - - private String enumerationValues; - - private String enumerationKeys; - - private String secretKey; - - private CipherAlgorithm cipherAlgorithm; - - private String mimeType; - - public String getConversionPattern() { - return conversionPattern; - } - - public void setConversionPattern(final String conversionPattern) { - this.conversionPattern = conversionPattern; - } - - public String getMandatoryCondition() { - return StringUtils.isNotBlank(mandatoryCondition) - ? mandatoryCondition - : "false"; - } - - public void setMandatoryCondition(final String mandatoryCondition) { - this.mandatoryCondition = mandatoryCondition; - } - - public boolean isMultivalue() { - return multivalue; - } - - public void setMultivalue(final boolean multivalue) { - this.multivalue = multivalue; - } - - public boolean isUniqueConstraint() { - return uniqueConstraint; - } - - public void setUniqueConstraint(final boolean uniqueConstraint) { - this.uniqueConstraint = uniqueConstraint; - } - - public boolean isReadonly() { - return readonly; - } - - public void setReadonly(final boolean readonly) { - this.readonly = readonly; - } - - public AttributeSchemaType getType() { - return type; - } - - public void setType(final AttributeSchemaType type) { - this.type = type; - } - - public String getValidatorClass() { - return validatorClass; - } - - public void setValidatorClass(final String validatorClass) { - this.validatorClass = validatorClass; - } - - public String getEnumerationValues() { - return enumerationValues; - } - - public void setEnumerationValues(final String enumerationValues) { - this.enumerationValues = enumerationValues; - } - - public String getEnumerationKeys() { - return enumerationKeys; - } - - public void setEnumerationKeys(final String enumerationKeys) { - this.enumerationKeys = enumerationKeys; - } - - public String getSecretKey() { - return secretKey; - } - - public void setSecretKey(final String secretKey) { - this.secretKey = secretKey; - } - - public CipherAlgorithm getCipherAlgorithm() { - return cipherAlgorithm; - } - - public void setCipherAlgorithm(final CipherAlgorithm cipherAlgorithm) { - this.cipherAlgorithm = cipherAlgorithm; - } - - public String getMimeType() { - return mimeType; - } - - public void setMimeType(final String mimeType) { - this.mimeType = mimeType; - } - -} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.common.to; + +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + +import org.apache.commons.lang3.StringUtils; +import org.apache.syncope.common.types.AttributeSchemaType; +import org.apache.syncope.common.types.CipherAlgorithm; + +@XmlRootElement(name = "schema") +@XmlType +public class SchemaTO extends AbstractSchemaTO { + + private static final long serialVersionUID = -8133983392476990308L; + + private AttributeSchemaType type = AttributeSchemaType.String; + + private String mandatoryCondition; + + private boolean multivalue; + + private boolean uniqueConstraint; + + private boolean readonly; + + private String conversionPattern; + + private String validatorClass; + + private String enumerationValues; + + private String enumerationKeys; + + private String secretKey; + + private CipherAlgorithm cipherAlgorithm; + + private String mimeType; + + public String getConversionPattern() { + return conversionPattern; + } + + public void setConversionPattern(final String conversionPattern) { + this.conversionPattern = conversionPattern; + } + + public String getMandatoryCondition() { + return StringUtils.isNotBlank(mandatoryCondition) + ? mandatoryCondition + : "false"; + } + + public void setMandatoryCondition(final String mandatoryCondition) { + this.mandatoryCondition = mandatoryCondition; + } + + public boolean isMultivalue() { + return multivalue; + } + + public void setMultivalue(final boolean multivalue) { + this.multivalue = multivalue; + } + + public boolean isUniqueConstraint() { + return uniqueConstraint; + } + + public void setUniqueConstraint(final boolean uniqueConstraint) { + this.uniqueConstraint = uniqueConstraint; + } + + public boolean isReadonly() { + return readonly; + } + + public void setReadonly(final boolean readonly) { + this.readonly = readonly; + } + + public AttributeSchemaType getType() { + return type; + } + + public void setType(final AttributeSchemaType type) { + this.type = type; + } + + public String getValidatorClass() { + return validatorClass; + } + + public void setValidatorClass(final String validatorClass) { + this.validatorClass = validatorClass; + } + + public String getEnumerationValues() { + return enumerationValues; + } + + public void setEnumerationValues(final String enumerationValues) { + this.enumerationValues = enumerationValues; + } + + public String getEnumerationKeys() { + return enumerationKeys; + } + + public void setEnumerationKeys(final String enumerationKeys) { + this.enumerationKeys = enumerationKeys; + } + + public String getSecretKey() { + return secretKey; + } + + public void setSecretKey(final String secretKey) { + this.secretKey = secretKey; + } + + public CipherAlgorithm getCipherAlgorithm() { + return cipherAlgorithm; + } + + public void setCipherAlgorithm(final CipherAlgorithm cipherAlgorithm) { + this.cipherAlgorithm = cipherAlgorithm; + } + + public String getMimeType() { + return mimeType; + } + + public void setMimeType(final String mimeType) { + this.mimeType = mimeType; + } + +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SyncPolicyTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SyncPolicyTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SyncPolicyTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SyncPolicyTO.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.PolicyType; -import org.apache.syncope.common.types.SyncPolicySpec; - -@XmlRootElement(name = "syncPolicy") -@XmlType -public class SyncPolicyTO extends AbstractPolicyTO { - - private static final long serialVersionUID = 993024634238024242L; - - private SyncPolicySpec specification; - - public SyncPolicyTO() { - this(false); - } - - public SyncPolicyTO(boolean global) { - super(); - - PolicyType type = global - ? PolicyType.GLOBAL_SYNC - : PolicyType.SYNC; - setType(type); - } - - public void setSpecification(final SyncPolicySpec specification) { - this.specification = specification; - } - - public SyncPolicySpec getSpecification() { - return specification; - } -} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.common.to; + +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + +import org.apache.syncope.common.types.PolicyType; +import org.apache.syncope.common.types.SyncPolicySpec; + +@XmlRootElement(name = "syncPolicy") +@XmlType +public class SyncPolicyTO extends AbstractPolicyTO { + + private static final long serialVersionUID = 993024634238024242L; + + private SyncPolicySpec specification; + + public SyncPolicyTO() { + this(false); + } + + public SyncPolicyTO(boolean global) { + super(); + + PolicyType type = global + ? PolicyType.GLOBAL_SYNC + : PolicyType.SYNC; + setType(type); + } + + public void setSpecification(final SyncPolicySpec specification) { + this.specification = specification; + } + + public SyncPolicySpec getSpecification() { + return specification; + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SyncTaskTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SyncTaskTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SyncTaskTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/SyncTaskTO.java Tue Aug 5 11:20:00 2014 @@ -1,59 +1,59 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.syncope.common.to; - -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - -@XmlRootElement(name = "syncTask") -@XmlType -public class SyncTaskTO extends AbstractSyncTaskTO { - - private static final long serialVersionUID = -2143537546915809017L; - - private UserTO userTemplate; - - private RoleTO roleTemplate; - - private boolean fullReconciliation; - - public UserTO getUserTemplate() { - return userTemplate; - } - - public void setUserTemplate(UserTO userTemplate) { - this.userTemplate = userTemplate; - } - - public RoleTO getRoleTemplate() { - return roleTemplate; - } - - public void setRoleTemplate(RoleTO roleTemplate) { - this.roleTemplate = roleTemplate; - } - - public boolean isFullReconciliation() { - return fullReconciliation; - } - - public void setFullReconciliation(boolean fullReconciliation) { - this.fullReconciliation = fullReconciliation; - } -} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.common.to; + +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + +@XmlRootElement(name = "syncTask") +@XmlType +public class SyncTaskTO extends AbstractSyncTaskTO { + + private static final long serialVersionUID = -2143537546915809017L; + + private UserTO userTemplate; + + private RoleTO roleTemplate; + + private boolean fullReconciliation; + + public UserTO getUserTemplate() { + return userTemplate; + } + + public void setUserTemplate(UserTO userTemplate) { + this.userTemplate = userTemplate; + } + + public RoleTO getRoleTemplate() { + return roleTemplate; + } + + public void setRoleTemplate(RoleTO roleTemplate) { + this.roleTemplate = roleTemplate; + } + + public boolean isFullReconciliation() { + return fullReconciliation; + } + + public void setFullReconciliation(boolean fullReconciliation) { + this.fullReconciliation = fullReconciliation; + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/TaskExecTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/TaskExecTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/TaskExecTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/TaskExecTO.java Tue Aug 5 11:20:00 2014 @@ -1,39 +1,39 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.syncope.common.to; - -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - -@XmlRootElement(name = "taskExec") -@XmlType -public class TaskExecTO extends AbstractExecTO { - - private static final long serialVersionUID = -5401795154606268973L; - - private long task; - - public long getTask() { - return task; - } - - public void setTask(final long task) { - this.task = task; - } -} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.common.to; + +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + +@XmlRootElement(name = "taskExec") +@XmlType +public class TaskExecTO extends AbstractExecTO { + + private static final long serialVersionUID = -5401795154606268973L; + + private long task; + + public long getTask() { + return task; + } + + public void setTask(final long task) { + this.task = task; + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/UserTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/UserTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/UserTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/UserTO.java Tue Aug 5 11:20:00 2014 @@ -1,163 +1,163 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.syncope.common.to; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.lang.reflect.Field; -import java.util.ArrayList; -import java.util.Collections; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementWrapper; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; -import org.apache.commons.lang3.builder.ReflectionToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; - -@XmlRootElement(name = "user") -@XmlType -public class UserTO extends AbstractSubjectTO { - - private static final long serialVersionUID = 7791304495192615740L; - - private String password; - - private final List<MembershipTO> memberships = new ArrayList<MembershipTO>(); - - private String status; - - private String token; - - private Date tokenExpireTime; - - private String username; - - private Date lastLoginDate; - - private Date changePwdDate; - - private Integer failedLogins; - - public String getPassword() { - return password; - } - - public void setPassword(final String password) { - this.password = password; - } - - @XmlElementWrapper(name = "memberships") - @XmlElement(name = "membership") - @JsonProperty("memberships") - public List<MembershipTO> getMemberships() { - return memberships; - } - - @JsonIgnore - public Map<Long, MembershipTO> getMembershipMap() { - Map<Long, MembershipTO> result; - - if (getMemberships() == null) { - result = Collections.emptyMap(); - } else { - result = new HashMap<Long, MembershipTO>(getMemberships().size()); - for (MembershipTO membership : getMemberships()) { - result.put(membership.getRoleId(), membership); - } - result = Collections.unmodifiableMap(result); - } - - return result; - } - - public String getStatus() { - return status; - } - - public void setStatus(final String status) { - this.status = status; - } - - public String getToken() { - return token; - } - - public void setToken(final String token) { - this.token = token; - } - - public Date getTokenExpireTime() { - return tokenExpireTime == null - ? null - : new Date(tokenExpireTime.getTime()); - } - - public void setTokenExpireTime(final Date tokenExpireTime) { - if (tokenExpireTime != null) { - this.tokenExpireTime = new Date(tokenExpireTime.getTime()); - } - } - - public String getUsername() { - return username; - } - - public void setUsername(final String username) { - this.username = username; - } - - public Date getChangePwdDate() { - return changePwdDate; - } - - public Integer getFailedLogins() { - return failedLogins; - } - - public Date getLastLoginDate() { - return lastLoginDate; - } - - public void setChangePwdDate(final Date changePwdDate) { - this.changePwdDate = changePwdDate; - } - - public void setFailedLogins(final Integer failedLogins) { - this.failedLogins = failedLogins; - } - - public void setLastLoginDate(final Date lastLoginDate) { - this.lastLoginDate = lastLoginDate; - } - - @Override - public String toString() { - return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) { - - @Override - protected boolean accept(final Field f) { - return super.accept(f) && !f.getName().equals("password"); - } - }.toString(); - } -} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.common.to; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.lang.reflect.Field; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElementWrapper; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import org.apache.commons.lang3.builder.ReflectionToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +@XmlRootElement(name = "user") +@XmlType +public class UserTO extends AbstractSubjectTO { + + private static final long serialVersionUID = 7791304495192615740L; + + private String password; + + private final List<MembershipTO> memberships = new ArrayList<MembershipTO>(); + + private String status; + + private String token; + + private Date tokenExpireTime; + + private String username; + + private Date lastLoginDate; + + private Date changePwdDate; + + private Integer failedLogins; + + public String getPassword() { + return password; + } + + public void setPassword(final String password) { + this.password = password; + } + + @XmlElementWrapper(name = "memberships") + @XmlElement(name = "membership") + @JsonProperty("memberships") + public List<MembershipTO> getMemberships() { + return memberships; + } + + @JsonIgnore + public Map<Long, MembershipTO> getMembershipMap() { + Map<Long, MembershipTO> result; + + if (getMemberships() == null) { + result = Collections.emptyMap(); + } else { + result = new HashMap<Long, MembershipTO>(getMemberships().size()); + for (MembershipTO membership : getMemberships()) { + result.put(membership.getRoleId(), membership); + } + result = Collections.unmodifiableMap(result); + } + + return result; + } + + public String getStatus() { + return status; + } + + public void setStatus(final String status) { + this.status = status; + } + + public String getToken() { + return token; + } + + public void setToken(final String token) { + this.token = token; + } + + public Date getTokenExpireTime() { + return tokenExpireTime == null + ? null + : new Date(tokenExpireTime.getTime()); + } + + public void setTokenExpireTime(final Date tokenExpireTime) { + if (tokenExpireTime != null) { + this.tokenExpireTime = new Date(tokenExpireTime.getTime()); + } + } + + public String getUsername() { + return username; + } + + public void setUsername(final String username) { + this.username = username; + } + + public Date getChangePwdDate() { + return changePwdDate; + } + + public Integer getFailedLogins() { + return failedLogins; + } + + public Date getLastLoginDate() { + return lastLoginDate; + } + + public void setChangePwdDate(final Date changePwdDate) { + this.changePwdDate = changePwdDate; + } + + public void setFailedLogins(final Integer failedLogins) { + this.failedLogins = failedLogins; + } + + public void setLastLoginDate(final Date lastLoginDate) { + this.lastLoginDate = lastLoginDate; + } + + @Override + public String toString() { + return new ReflectionToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) { + + @Override + protected boolean accept(final Field f) { + return super.accept(f) && !f.getName().equals("password"); + } + }.toString(); + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/VirSchemaTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/VirSchemaTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/VirSchemaTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/VirSchemaTO.java Tue Aug 5 11:20:00 2014 @@ -1,38 +1,38 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.syncope.common.to; - -import javax.xml.bind.annotation.XmlRootElement; - -@XmlRootElement(name = "virtualSchema") -public class VirSchemaTO extends AbstractSchemaTO { - - private static final long serialVersionUID = -8198557479659701343L; - - private boolean readonly; - - public boolean isReadonly() { - return readonly; - } - - public void setReadonly(final boolean readonly) { - this.readonly = readonly; - } - -} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.common.to; + +import javax.xml.bind.annotation.XmlRootElement; + +@XmlRootElement(name = "virtualSchema") +public class VirSchemaTO extends AbstractSchemaTO { + + private static final long serialVersionUID = -8198557479659701343L; + + private boolean readonly; + + public boolean isReadonly() { + return readonly; + } + + public void setReadonly(final boolean readonly) { + this.readonly = readonly; + } + +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/WorkflowFormPropertyTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/WorkflowFormPropertyTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/WorkflowFormPropertyTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/WorkflowFormPropertyTO.java Tue Aug 5 11:20:00 2014 @@ -1,121 +1,121 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.syncope.common.to; - -import java.util.HashMap; -import java.util.Map; - -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; - -import org.apache.syncope.common.AbstractBaseBean; -import org.apache.syncope.common.types.WorkflowFormPropertyType; - -@XmlRootElement(name = "workflowFormProperty") -@XmlType -public class WorkflowFormPropertyTO extends AbstractBaseBean { - - private static final long serialVersionUID = 9139969592634304261L; - - private String id; - - private String name; - - private WorkflowFormPropertyType type; - - private String value; - - private boolean readable; - - private boolean writable; - - private boolean required; - - private String datePattern; - - private Map<String, String> enumValues = new HashMap<String, String>(); - - public String getId() { - return id; - } - - public void setId(final String id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(final String name) { - this.name = name; - } - - public boolean isReadable() { - return readable; - } - - public void setReadable(final boolean readable) { - this.readable = readable; - } - - public boolean isRequired() { - return required; - } - - public void setRequired(final boolean required) { - this.required = required; - } - - public WorkflowFormPropertyType getType() { - return type; - } - - public void setType(final WorkflowFormPropertyType type) { - this.type = type; - } - - public String getValue() { - return value; - } - - public void setValue(final String value) { - this.value = value; - } - - public boolean isWritable() { - return writable; - } - - public void setWritable(final boolean writable) { - this.writable = writable; - } - - public String getDatePattern() { - return datePattern; - } - - public void setDatePattern(final String datePattern) { - this.datePattern = datePattern; - } - - public Map<String, String> getEnumValues() { - return enumValues; - } -} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.common.to; + +import java.util.HashMap; +import java.util.Map; + +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + +import org.apache.syncope.common.AbstractBaseBean; +import org.apache.syncope.common.types.WorkflowFormPropertyType; + +@XmlRootElement(name = "workflowFormProperty") +@XmlType +public class WorkflowFormPropertyTO extends AbstractBaseBean { + + private static final long serialVersionUID = 9139969592634304261L; + + private String id; + + private String name; + + private WorkflowFormPropertyType type; + + private String value; + + private boolean readable; + + private boolean writable; + + private boolean required; + + private String datePattern; + + private Map<String, String> enumValues = new HashMap<String, String>(); + + public String getId() { + return id; + } + + public void setId(final String id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(final String name) { + this.name = name; + } + + public boolean isReadable() { + return readable; + } + + public void setReadable(final boolean readable) { + this.readable = readable; + } + + public boolean isRequired() { + return required; + } + + public void setRequired(final boolean required) { + this.required = required; + } + + public WorkflowFormPropertyType getType() { + return type; + } + + public void setType(final WorkflowFormPropertyType type) { + this.type = type; + } + + public String getValue() { + return value; + } + + public void setValue(final String value) { + this.value = value; + } + + public boolean isWritable() { + return writable; + } + + public void setWritable(final boolean writable) { + this.writable = writable; + } + + public String getDatePattern() { + return datePattern; + } + + public void setDatePattern(final String datePattern) { + this.datePattern = datePattern; + } + + public Map<String, String> getEnumValues() { + return enumValues; + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/to/WorkflowFormTO.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/to/WorkflowFormTO.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/to/WorkflowFormTO.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/to/WorkflowFormTO.java Tue Aug 5 11:20:00 2014 @@ -1,173 +1,173 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.syncope.common.to; - -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementWrapper; -import javax.xml.bind.annotation.XmlRootElement; -import javax.xml.bind.annotation.XmlType; -import org.apache.syncope.common.AbstractBaseBean; -import org.apache.syncope.common.to.WorkflowFormPropertyTO; - -@XmlRootElement(name = "workflowForm") -@XmlType -public class WorkflowFormTO extends AbstractBaseBean { - - private static final long serialVersionUID = -7044543391316529128L; - - private long userId; - - private String taskId; - - private String key; - - private String description; - - private Date createTime; - - private Date dueDate; - - private String owner; - - private final List<WorkflowFormPropertyTO> properties; - - public WorkflowFormTO() { - properties = new ArrayList<WorkflowFormPropertyTO>(); - } - - public long getUserId() { - return userId; - } - - public void setUserId(long userId) { - this.userId = userId; - } - - public String getTaskId() { - return taskId; - } - - public void setTaskId(String taskId) { - this.taskId = taskId; - } - - public String getKey() { - return key; - } - - public void setKey(String key) { - this.key = key; - } - - public Date getCreateTime() { - return createTime; - } - - public void setCreateTime(Date createTime) { - this.createTime = createTime; - } - - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public Date getDueDate() { - return dueDate; - } - - public void setDueDate(Date dueDate) { - this.dueDate = dueDate; - } - - public String getOwner() { - return owner; - } - - public void setOwner(String owner) { - this.owner = owner; - } - - @XmlElementWrapper(name = "workflowFormProperties") - @XmlElement(name = "workflowFormProperty") - @JsonProperty("workflowFormProperties") - public List<WorkflowFormPropertyTO> getProperties() { - return properties; - } - - public boolean addProperty(final WorkflowFormPropertyTO property) { - return properties.contains(property) - ? true - : properties.add(property); - } - - public boolean removeProperty(final WorkflowFormPropertyTO property) { - return properties.remove(property); - } - - public void setProperties(final Collection<WorkflowFormPropertyTO> properties) { - if (this.properties != properties) { - this.properties.clear(); - if (properties != null) { - this.properties.addAll(properties); - } - } - } - - @JsonIgnore - public Map<String, WorkflowFormPropertyTO> getPropertyMap() { - Map<String, WorkflowFormPropertyTO> result; - - if (getProperties() == null) { - result = Collections.emptyMap(); - } else { - result = new HashMap<String, WorkflowFormPropertyTO>(); - for (WorkflowFormPropertyTO prop : getProperties()) { - result.put(prop.getId(), prop); - } - result = Collections.unmodifiableMap(result); - } - - return result; - } - - @JsonIgnore - public Map<String, String> getPropertiesForSubmit() { - Map<String, String> props = new HashMap<String, String>(); - for (WorkflowFormPropertyTO prop : getProperties()) { - if (prop.isWritable()) { - props.put(prop.getId(), prop.getValue()); - } - } - - return props; - } -} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.common.to; + +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElementWrapper; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import org.apache.syncope.common.AbstractBaseBean; +import org.apache.syncope.common.to.WorkflowFormPropertyTO; + +@XmlRootElement(name = "workflowForm") +@XmlType +public class WorkflowFormTO extends AbstractBaseBean { + + private static final long serialVersionUID = -7044543391316529128L; + + private long userId; + + private String taskId; + + private String key; + + private String description; + + private Date createTime; + + private Date dueDate; + + private String owner; + + private final List<WorkflowFormPropertyTO> properties; + + public WorkflowFormTO() { + properties = new ArrayList<WorkflowFormPropertyTO>(); + } + + public long getUserId() { + return userId; + } + + public void setUserId(long userId) { + this.userId = userId; + } + + public String getTaskId() { + return taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public Date getDueDate() { + return dueDate; + } + + public void setDueDate(Date dueDate) { + this.dueDate = dueDate; + } + + public String getOwner() { + return owner; + } + + public void setOwner(String owner) { + this.owner = owner; + } + + @XmlElementWrapper(name = "workflowFormProperties") + @XmlElement(name = "workflowFormProperty") + @JsonProperty("workflowFormProperties") + public List<WorkflowFormPropertyTO> getProperties() { + return properties; + } + + public boolean addProperty(final WorkflowFormPropertyTO property) { + return properties.contains(property) + ? true + : properties.add(property); + } + + public boolean removeProperty(final WorkflowFormPropertyTO property) { + return properties.remove(property); + } + + public void setProperties(final Collection<WorkflowFormPropertyTO> properties) { + if (this.properties != properties) { + this.properties.clear(); + if (properties != null) { + this.properties.addAll(properties); + } + } + } + + @JsonIgnore + public Map<String, WorkflowFormPropertyTO> getPropertyMap() { + Map<String, WorkflowFormPropertyTO> result; + + if (getProperties() == null) { + result = Collections.emptyMap(); + } else { + result = new HashMap<String, WorkflowFormPropertyTO>(); + for (WorkflowFormPropertyTO prop : getProperties()) { + result.put(prop.getId(), prop); + } + result = Collections.unmodifiableMap(result); + } + + return result; + } + + @JsonIgnore + public Map<String, String> getPropertiesForSubmit() { + Map<String, String> props = new HashMap<String, String>(); + for (WorkflowFormPropertyTO prop : getProperties()) { + if (prop.isWritable()) { + props.put(prop.getId(), prop.getValue()); + } + } + + return props; + } +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/types/AbstractPolicySpec.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/types/AbstractPolicySpec.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/types/AbstractPolicySpec.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/types/AbstractPolicySpec.java Tue Aug 5 11:20:00 2014 @@ -1,27 +1,27 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.syncope.common.types; - -import org.apache.syncope.common.AbstractBaseBean; - -public abstract class AbstractPolicySpec extends AbstractBaseBean { - - private static final long serialVersionUID = 2740439904103716653L; - -} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.common.types; + +import org.apache.syncope.common.AbstractBaseBean; + +public abstract class AbstractPolicySpec extends AbstractBaseBean { + + private static final long serialVersionUID = 2740439904103716653L; + +} Modified: syncope/trunk/common/src/main/java/org/apache/syncope/common/types/AccountPolicySpec.java URL: http://svn.apache.org/viewvc/syncope/trunk/common/src/main/java/org/apache/syncope/common/types/AccountPolicySpec.java?rev=1615910&r1=1615909&r2=1615910&view=diff ============================================================================== --- syncope/trunk/common/src/main/java/org/apache/syncope/common/types/AccountPolicySpec.java (original) +++ syncope/trunk/common/src/main/java/org/apache/syncope/common/types/AccountPolicySpec.java Tue Aug 5 11:20:00 2014 @@ -1,190 +1,190 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package org.apache.syncope.common.types; - -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.ArrayList; -import java.util.List; - -import javax.xml.bind.annotation.XmlElement; -import javax.xml.bind.annotation.XmlElementWrapper; -import javax.xml.bind.annotation.XmlType; - -import org.apache.syncope.common.annotation.SchemaList; - -@XmlType -public class AccountPolicySpec extends AbstractPolicySpec { - - private static final long serialVersionUID = 3259256974414758406L; - - /** - * Minimum length. - */ - private int maxLength; - - /** - * Maximum length. - */ - private int minLength; - - /** - * Pattern (regular expression) that must match. - */ - private String pattern; - - /** - * Substrings not permitted. - */ - private List<String> wordsNotPermitted; - - /** - * User attribute values not permitted. - */ - @SchemaList - private List<String> schemasNotPermitted; - - /** - * Substrings not permitted as prefix. - */ - private List<String> prefixesNotPermitted; - - /** - * Substrings not permitted as suffix. - */ - private List<String> suffixesNotPermitted; - - /** - * Specify if one or more lowercase characters are permitted. - */ - private boolean allUpperCase; - - /** - * Specify if one or more uppercase characters are permitted. - */ - private boolean allLowerCase; - - /** - * Specify if, when reached the maximum allowed number of subsequent login failures, user shall be suspended. - */ - private boolean propagateSuspension; - - /** - * Number of permitted login retries. - * 0 disabled; >0 enabled. - * If the number of subsequent failed logins will be greater then this value - * the account will be suspended (lock-out). - */ - private int permittedLoginRetries; - - public boolean isAllLowerCase() { - return allLowerCase; - } - - public void setAllLowerCase(final boolean allLowerCase) { - this.allLowerCase = allLowerCase; - } - - public boolean isAllUpperCase() { - return allUpperCase; - } - - public void setAllUpperCase(final boolean allUpperCase) { - this.allUpperCase = allUpperCase; - } - - public int getMaxLength() { - return maxLength; - } - - public void setMaxLength(final int maxLength) { - this.maxLength = maxLength; - } - - public int getMinLength() { - return minLength; - } - - public void setMinLength(final int minLength) { - this.minLength = minLength; - } - - public String getPattern() { - return pattern; - } - - public void setPattern(final String pattern) { - this.pattern = pattern; - } - - @XmlElementWrapper(name = "prefixesNotPermitted") - @XmlElement(name = "prefix") - @JsonProperty("prefixesNotPermitted") - public List<String> getPrefixesNotPermitted() { - if (prefixesNotPermitted == null) { - prefixesNotPermitted = new ArrayList<String>(); - } - return prefixesNotPermitted; - } - - @XmlElementWrapper(name = "schemasNotPermitted") - @XmlElement(name = "schema") - @JsonProperty("schemasNotPermitted") - public List<String> getSchemasNotPermitted() { - if (schemasNotPermitted == null) { - schemasNotPermitted = new ArrayList<String>(); - } - return schemasNotPermitted; - } - - @XmlElementWrapper(name = "suffixesNotPermitted") - @XmlElement(name = "suffix") - @JsonProperty("suffixesNotPermitted") - public List<String> getSuffixesNotPermitted() { - if (suffixesNotPermitted == null) { - suffixesNotPermitted = new ArrayList<String>(); - } - return suffixesNotPermitted; - } - - @XmlElementWrapper(name = "wordsNotPermitted") - @XmlElement(name = "word") - @JsonProperty("wordsNotPermitted") - public List<String> getWordsNotPermitted() { - if (wordsNotPermitted == null) { - wordsNotPermitted = new ArrayList<String>(); - } - return wordsNotPermitted; - } - - public boolean isPropagateSuspension() { - return propagateSuspension; - } - - public void setPropagateSuspension(final boolean propagateSuspension) { - this.propagateSuspension = propagateSuspension; - } - - public int getPermittedLoginRetries() { - return permittedLoginRetries; - } - - public void setPermittedLoginRetries(final int permittedLoginRetries) { - this.permittedLoginRetries = permittedLoginRetries; - } -} +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.apache.syncope.common.types; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; +import java.util.List; + +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElementWrapper; +import javax.xml.bind.annotation.XmlType; + +import org.apache.syncope.common.annotation.SchemaList; + +@XmlType +public class AccountPolicySpec extends AbstractPolicySpec { + + private static final long serialVersionUID = 3259256974414758406L; + + /** + * Minimum length. + */ + private int maxLength; + + /** + * Maximum length. + */ + private int minLength; + + /** + * Pattern (regular expression) that must match. + */ + private String pattern; + + /** + * Substrings not permitted. + */ + private List<String> wordsNotPermitted; + + /** + * User attribute values not permitted. + */ + @SchemaList + private List<String> schemasNotPermitted; + + /** + * Substrings not permitted as prefix. + */ + private List<String> prefixesNotPermitted; + + /** + * Substrings not permitted as suffix. + */ + private List<String> suffixesNotPermitted; + + /** + * Specify if one or more lowercase characters are permitted. + */ + private boolean allUpperCase; + + /** + * Specify if one or more uppercase characters are permitted. + */ + private boolean allLowerCase; + + /** + * Specify if, when reached the maximum allowed number of subsequent login failures, user shall be suspended. + */ + private boolean propagateSuspension; + + /** + * Number of permitted login retries. + * 0 disabled; >0 enabled. + * If the number of subsequent failed logins will be greater then this value + * the account will be suspended (lock-out). + */ + private int permittedLoginRetries; + + public boolean isAllLowerCase() { + return allLowerCase; + } + + public void setAllLowerCase(final boolean allLowerCase) { + this.allLowerCase = allLowerCase; + } + + public boolean isAllUpperCase() { + return allUpperCase; + } + + public void setAllUpperCase(final boolean allUpperCase) { + this.allUpperCase = allUpperCase; + } + + public int getMaxLength() { + return maxLength; + } + + public void setMaxLength(final int maxLength) { + this.maxLength = maxLength; + } + + public int getMinLength() { + return minLength; + } + + public void setMinLength(final int minLength) { + this.minLength = minLength; + } + + public String getPattern() { + return pattern; + } + + public void setPattern(final String pattern) { + this.pattern = pattern; + } + + @XmlElementWrapper(name = "prefixesNotPermitted") + @XmlElement(name = "prefix") + @JsonProperty("prefixesNotPermitted") + public List<String> getPrefixesNotPermitted() { + if (prefixesNotPermitted == null) { + prefixesNotPermitted = new ArrayList<String>(); + } + return prefixesNotPermitted; + } + + @XmlElementWrapper(name = "schemasNotPermitted") + @XmlElement(name = "schema") + @JsonProperty("schemasNotPermitted") + public List<String> getSchemasNotPermitted() { + if (schemasNotPermitted == null) { + schemasNotPermitted = new ArrayList<String>(); + } + return schemasNotPermitted; + } + + @XmlElementWrapper(name = "suffixesNotPermitted") + @XmlElement(name = "suffix") + @JsonProperty("suffixesNotPermitted") + public List<String> getSuffixesNotPermitted() { + if (suffixesNotPermitted == null) { + suffixesNotPermitted = new ArrayList<String>(); + } + return suffixesNotPermitted; + } + + @XmlElementWrapper(name = "wordsNotPermitted") + @XmlElement(name = "word") + @JsonProperty("wordsNotPermitted") + public List<String> getWordsNotPermitted() { + if (wordsNotPermitted == null) { + wordsNotPermitted = new ArrayList<String>(); + } + return wordsNotPermitted; + } + + public boolean isPropagateSuspension() { + return propagateSuspension; + } + + public void setPropagateSuspension(final boolean propagateSuspension) { + this.propagateSuspension = propagateSuspension; + } + + public int getPermittedLoginRetries() { + return permittedLoginRetries; + } + + public void setPermittedLoginRetries(final int permittedLoginRetries) { + this.permittedLoginRetries = permittedLoginRetries; + } +}
