4.26 - Delete a Dynamic Separation of Duty (DSD) Set

SDSet deleteDsdSet(SDSet ssdSet) throws SecurityException

This command deletes a DSD role set completely. The command is valid if and only if the DSD role set exists.

required parameters:

  • SDSet#name - contains the name of DSD set to be removed.

Throws:

  • SecurityException - thrown in the event of data validation or system error.

deleteDsdSet

import org.apache.directory.fortress.core.AdminMgr;
import org.apache.directory.fortress.core.AdminMgrFactory;
import org.apache.directory.fortress.core.model.SDSet;
import org.apache.directory.fortress.core.SecurityException;

@test
public static void testDeleteDsdSet()
{
    String szLocation = ".testDeleteDsdSet";
    try
    {
        AdminMgr adminMgr = AdminMgrFactory.createInstance();
        SDSet inDsdSet = new SDSet();
        inDsdSet.setName( "myDsdSetName" );
        SDSet outDsdSet = am.deleteDsdSet( inDsdSet );
    }
    catch (SecurityException ex)
    {
        LOG.error(szLocation + " caught SecurityException rc=" + ex.getErrorId() + ", msg=" + ex.getMessage(), ex);
        fail(ex.getMessage());
    }
}