Skip to content

Commit 88c2b5b

Browse files
authored
[SYNCOPE-1907] Groovy sandbox (#1166)
1 parent e43b7b2 commit 88c2b5b

File tree

61 files changed

+1422
-1156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1422
-1156
lines changed

client/idrepo/console/src/main/resources/org/apache/syncope/client/console/implementations/MyAccountRule.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
import groovy.transform.CompileStatic
2019
import org.apache.syncope.core.persistence.api.dao.AccountRule
2120
import org.apache.syncope.core.persistence.api.entity.user.LinkedAccount
2221
import org.apache.syncope.core.persistence.api.entity.user.User
2322

24-
@CompileStatic
2523
class MyAccountRule implements AccountRule {
2624

2725
void enforce(String username) {

client/idrepo/console/src/main/resources/org/apache/syncope/client/console/implementations/MyAttrValueValidator.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
import groovy.transform.CompileStatic
2019
import org.apache.syncope.core.persistence.api.attrvalue.validation.PlainAttrValueValidator
2120
import org.apache.syncope.core.persistence.api.entity.PlainAttrValue
2221
import org.apache.syncope.core.persistence.api.entity.PlainSchema
2322

24-
@CompileStatic
2523
class MyAttrValueValidator implements PlainAttrValueValidator {
2624

2725
@Override

client/idrepo/console/src/main/resources/org/apache/syncope/client/console/implementations/MyCommand.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
import groovy.transform.CompileStatic
2019
import org.apache.syncope.common.lib.command.CommandArgs
2120
import org.apache.syncope.core.provisioning.api.macro.Command
2221

23-
@CompileStatic
2422
class MyCommand implements Command<CommandArgs> {
2523

2624
String run(CommandArgs args) {

client/idrepo/console/src/main/resources/org/apache/syncope/client/console/implementations/MyItemTransformer.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
import groovy.transform.CompileStatic
2019
import java.util.List;
2120
import org.apache.commons.lang3.tuple.Pair
2221
import org.apache.syncope.common.lib.to.EntityTO
@@ -26,7 +25,6 @@ import org.apache.syncope.core.persistence.api.entity.Any
2625
import org.apache.syncope.core.persistence.api.entity.PlainAttrValue
2726
import org.apache.syncope.core.provisioning.api.data.ItemTransformer
2827

29-
@CompileStatic
3028
class MyItemTransformer implements ItemTransformer {
3129

3230
@Override

client/idrepo/console/src/main/resources/org/apache/syncope/client/console/implementations/MyLogicActions.groovy

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
import groovy.transform.CompileStatic
2019
import org.apache.syncope.common.lib.request.AnyCR
2120
import org.apache.syncope.common.lib.request.AnyUR
2221
import org.apache.syncope.common.lib.to.AnyTO
2322
import org.apache.syncope.common.lib.to.PropagationStatus
2423
import org.apache.syncope.core.logic.api.LogicActions
2524

26-
@CompileStatic
2725
class MyLogicActions implements LogicActions {
2826

2927
@Override
@@ -55,4 +53,4 @@ class MyLogicActions implements LogicActions {
5553
<A extends AnyTO> A afterDelete(A input, List<PropagationStatus> statuses) {
5654
return input;
5755
}
58-
}
56+
}

client/idrepo/console/src/main/resources/org/apache/syncope/client/console/implementations/MyMacroActions.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
import groovy.transform.CompileStatic
2019
import java.util.Map
2120
import java.util.Optional
2221
import javax.validation.ValidationException
@@ -25,7 +24,6 @@ import org.apache.syncope.common.lib.form.SyncopeForm
2524
import org.apache.syncope.core.provisioning.api.macro.Command
2625
import org.apache.syncope.core.provisioning.api.macro.MacroActions
2726

28-
@CompileStatic
2927
class MyMacroActions implements MacroActions {
3028

3129
@Override

client/idrepo/console/src/main/resources/org/apache/syncope/client/console/implementations/MyPasswordRule.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
import groovy.transform.CompileStatic
2019
import org.apache.syncope.core.persistence.api.dao.PasswordRule
2120
import org.apache.syncope.core.persistence.api.entity.user.LinkedAccount
2221
import org.apache.syncope.core.persistence.api.entity.user.User
2322

24-
@CompileStatic
2523
class MyPasswordRule implements PasswordRule {
2624

2725
void enforce(String username, String clearPassword) {

client/idrepo/console/src/main/resources/org/apache/syncope/client/console/implementations/MyPropagationActions.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
import groovy.transform.CompileStatic
2019
import java.util.Optional
2120
import java.util.Set
2221
import org.apache.syncope.common.lib.to.OrgUnit
@@ -26,7 +25,6 @@ import org.apache.syncope.core.provisioning.api.propagation.PropagationActions
2625
import org.apache.syncope.core.provisioning.api.propagation.PropagationTaskInfo;
2726
import org.identityconnectors.framework.common.objects.ConnectorObject
2827

29-
@CompileStatic
3028
class MyPropagationActions implements PropagationActions {
3129

3230
@Override

client/idrepo/console/src/main/resources/org/apache/syncope/client/console/implementations/MyProvisionSorter.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
import groovy.transform.CompileStatic
2019
import org.apache.syncope.common.lib.to.Provision
2120
import org.apache.syncope.core.provisioning.api.ProvisionSorter
2221

23-
@CompileStatic
2422
class MyProvisionSorter implements ProvisionSorter {
2523

2624
@Override

client/idrepo/console/src/main/resources/org/apache/syncope/client/console/implementations/MyPullActions.groovy

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
import groovy.transform.CompileStatic
2019
import java.util.Set
2120
import org.apache.syncope.common.lib.request.AnyCR
2221
import org.apache.syncope.common.lib.request.AnyUR
@@ -34,7 +33,6 @@ import org.apache.syncope.core.provisioning.api.pushpull.PullActions
3433
import org.identityconnectors.framework.common.objects.SyncDelta
3534
import org.quartz.JobExecutionException
3635

37-
@CompileStatic
3836
class MyPullActions implements PullActions {
3937

4038
@Override

0 commit comments

Comments
 (0)