basis.setOrganisationalProcedures("Organisational procedures");
basis.setPreservationRights("Preservation rights");
basis.setReferenceToAgreements("Reference to agreements");
basis.setPlanRelations("Plan relations");
TriggerDefinition triggers = new TriggerDefinition();
Trigger newTrigger = new Trigger(TriggerType.NEW_COLLECTION);
newTrigger.setActive(true);
newTrigger.setDescription("New description");
triggers.setTrigger(newTrigger);
Trigger ceTrigger = new Trigger(TriggerType.CHANGED_ENVIRONMENT);
ceTrigger.setActive(false);
ceTrigger.setDescription("Changed environment description");
triggers.setTrigger(ceTrigger);
triggers.setTrigger(new Trigger(TriggerType.CHANGED_COLLECTION_PROFILE));
basis.setTriggers(triggers);
PolicyTree policyTree = new PolicyTree();
PolicyNode root = new PolicyNode();
root.setName("Root node");