-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from ExclamationLabs/2024/10/FIN-12352_suppor…
…t_attr_constraints FIN-12352 - support attribute constraint meta information
- Loading branch information
Showing
10 changed files
with
165 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
software_version=4.2.8 | ||
software_version=4.2.9 | ||
test_connector_version=3.0.2 | ||
spring_boot_version=2.7.18 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
...in/java/com/exclamationlabs/connid/base/connector/attribute/meta/AttributeConstraint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.exclamationlabs.connid.base.connector.attribute.meta; | ||
|
||
public class AttributeConstraint { | ||
private Boolean outbound = Boolean.FALSE; | ||
private Boolean inbound = Boolean.FALSE; | ||
|
||
private AttributeConstraintRule rule; | ||
|
||
private String ruleData; | ||
|
||
public Boolean getOutbound() { | ||
return outbound; | ||
} | ||
|
||
public void setOutbound(Boolean outbound) { | ||
this.outbound = outbound; | ||
} | ||
|
||
public Boolean getInbound() { | ||
return inbound; | ||
} | ||
|
||
public void setInbound(Boolean inbound) { | ||
this.inbound = inbound; | ||
} | ||
|
||
public AttributeConstraintRule getRule() { | ||
return rule; | ||
} | ||
|
||
public void setRule(AttributeConstraintRule rule) { | ||
this.rule = rule; | ||
} | ||
|
||
public String getRuleData() { | ||
return ruleData; | ||
} | ||
|
||
public void setRuleData(String ruleData) { | ||
this.ruleData = ruleData; | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
...ava/com/exclamationlabs/connid/base/connector/attribute/meta/AttributeConstraintRule.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.exclamationlabs.connid.base.connector.attribute.meta; | ||
|
||
public enum AttributeConstraintRule { | ||
MAX_LENGTH, | ||
REGEX_MATCH | ||
} |
20 changes: 20 additions & 0 deletions
20
...main/java/com/exclamationlabs/connid/base/connector/attribute/meta/AttributeMetaInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.exclamationlabs.connid.base.connector.attribute.meta; | ||
|
||
import java.util.List; | ||
|
||
/** | ||
* This class and others in this package are used to provide an advised structure for the optional | ||
* attribute metaInfo. At this time, we're using this primarily to store attribute data | ||
* constraint/validation info. | ||
*/ | ||
public class AttributeMetaInfo { | ||
List<AttributeConstraint> constraints; | ||
|
||
public List<AttributeConstraint> getConstraints() { | ||
return constraints; | ||
} | ||
|
||
public void setConstraints(List<AttributeConstraint> constraints) { | ||
this.constraints = constraints; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters