// The CA AAP
CollectiveAttributeAdministrativePoint caAap = new CollectiveAttributeAAP( dn, uuid );
directoryService.getCollectiveAttributeAPCache().add( dn, caAap );
// The TE AAP
TriggerExecutionAdministrativePoint teAap = new TriggerExecutionAAP( dn, uuid );
directoryService.getTriggerExecutionAPCache().add( dn, teAap );
// The SS AAP
SubschemaAdministrativePoint ssAap = new SubschemaAAP( dn, uuid );
directoryService.getSubschemaAPCache().add( dn, ssAap );
// TODO : Here, we have to update the children, removing any
// reference to any other underlying AP
// If it's an AAP, we can get out immediately
return;
}
for ( Value<?> value : adminPoint )
{
String role = value.getString();
// Deal with AccessControl AP
if ( isAccessControlSpecificRole( role ) )
{
AccessControlAdministrativePoint sap = new AccessControlSAP( dn, uuid );
directoryService.getAccessControlAPCache().add( dn, sap );
// TODO : Here, we have to update the children, removing any
// reference to any other underlying AccessControl IAP or SAP
continue;
}
if ( isAccessControlInnerRole( role ) )
{
AccessControlAdministrativePoint iap = new AccessControlIAP( dn, uuid );
directoryService.getAccessControlAPCache().add( dn, iap );
continue;
}
// Deal with CollectiveAttribute AP
if ( isCollectiveAttributeSpecificRole( role ) )
{
CollectiveAttributeAdministrativePoint sap = new CollectiveAttributeSAP( dn, uuid );
directoryService.getCollectiveAttributeAPCache().add( dn, sap );
// TODO : Here, we have to update the children, removing any
// reference to any other underlying CollectiveAttribute IAP or SAP
continue;
}
if ( isCollectiveAttributeInnerRole( role ) )
{
CollectiveAttributeAdministrativePoint iap = new CollectiveAttributeIAP( dn, uuid );
directoryService.getCollectiveAttributeAPCache().add( dn, iap );
continue;
}
// Deal with SubSchema AP
if ( isSubschemaSpecficRole( role ) )
{
SubschemaAdministrativePoint sap = new SubschemaSAP( dn, uuid );
directoryService.getSubschemaAPCache().add( dn, sap );
// TODO : Here, we have to update the children, removing any
// reference to any other underlying Subschema IAP or SAP
continue;
}
// Deal with TriggerExecution AP
if ( isTriggerExecutionSpecificRole( role ) )
{
TriggerExecutionAdministrativePoint sap = new TriggerExecutionSAP( dn, uuid );
directoryService.getTriggerExecutionAPCache().add( dn, sap );
// TODO : Here, we have to update the children, removing any
// reference to any other underlying TriggerExecution IAP or SAP
continue;
}
if ( isTriggerExecutionInnerRole( role ) )
{
TriggerExecutionAdministrativePoint iap = new TriggerExecutionIAP( dn, uuid );
directoryService.getTriggerExecutionAPCache().add( dn, iap );
continue;
}
}