SearchScript.groovy revision 69684909313b92c40bb70f8c315ebc15766469de
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * Copyright (c) 2013-2015 ForgeRock AS. All rights reserved.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * The contents of this file are subject to the terms
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * of the Common Development and Distribution License
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * (the License). You may not use this file except in
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * compliance with the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * You can obtain a copy of the License at
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * See the License for the specific language governing
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * permission and limitations under the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * When distributing Covered Code, include this CDDL
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * Header Notice in each file and include the License file
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * If applicable, add the following below the CDDL Header,
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * with the fields enclosed by brackets [] replaced by
4bff34e37def8a90f9194d81bc345c52ba20086athurlow * your own identifying information:
a547be5daca7e465ca82df6d179f6b1f8e0cda72Gordon Ross * "Portions Copyrighted [year] [name of copyright owner]"
4bff34e37def8a90f9194d81bc345c52ba20086athurlowimport org.identityconnectors.framework.common.objects.AttributeUtil;
4bff34e37def8a90f9194d81bc345c52ba20086athurlowimport org.identityconnectors.framework.common.objects.ObjectClass;
a547be5daca7e465ca82df6d179f6b1f8e0cda72Gordon Rossimport org.identityconnectors.framework.common.objects.Uid;
a547be5daca7e465ca82df6d179f6b1f8e0cda72Gordon Rossimport org.identityconnectors.framework.common.objects.SearchResult;
4bff34e37def8a90f9194d81bc345c52ba20086athurlowimport org.identityconnectors.framework.common.objects.filter.EqualsFilter;
4bff34e37def8a90f9194d81bc345c52ba20086athurlowimport org.identityconnectors.framework.common.objects.filter.Filter;
a547be5daca7e465ca82df6d179f6b1f8e0cda72Gordon Rossdef auditauthentication = new ObjectClass("auditauthentication");
4bff34e37def8a90f9194d81bc345c52ba20086athurlowdef auditactivity = new ObjectClass("auditactivity");
a547be5daca7e465ca82df6d179f6b1f8e0cda72Gordon Rossif (filter instanceof EqualsFilter && ((EqualsFilter) filter).getAttribute().is(Uid.NAME)) {
a547be5daca7e465ca82df6d179f6b1f8e0cda72Gordon Ross def id = AttributeUtil.getStringValue(((EqualsFilter) filter).getAttribute());
4bff34e37def8a90f9194d81bc345c52ba20086athurlowlog.info("Search: ObjectClass {0}, where {1}", objectClass, where);
handler {
).getObject()
).getObject()
).getObject()
).getObject()
).getObject()
).getObject()
).getObject()
case auditauthentication:
{ row ->
handler {
).getObject()
case auditactivity:
{ row ->
handler {
).getObject()
).getObject())
).getObject()
case auditrecon:
{ row ->
handler {
).getObject()
case auditsync:
{ row ->
handler {
).getObject()
return new SearchResult();