public static List<Entry> permissionStructure(Permission permission) {
        List<Entry> entryList = new LinkedList<>();
        entryList.add(namedObject(DnFactory.permission(permission)));
        entryList.add(namedDescriptiveObject(DnFactory.permissionAction(permission), permission.getAction()));
        entryList
                .add(namedDescriptiveObject(DnFactory.permissionComponent(permission), permission.getComponentName()));
        return entryList;
    }
public static List < Entry > permissionStructure ( Permission permission ) { List < Entry > entryList = new LinkedList < > ( ) ; entryList . add ( namedObject ( DnFactory . permission ( permission ) ) ) ; entryList . add ( namedDescriptiveObject ( DnFactory . permissionAction ( permission ) , permission . getAction ( ) ) ) ; entryList . add ( namedDescriptiveObject ( DnFactory . permissionComponent ( permission ) , permission . getComponentName ( ) ) ) ; return entryList ; }
Returns a list of entries representing a permission. The list should not be reordered since its order follows the
tree structure of the DIT. It can be inserted into the DIT right away.