public SystemConfigurationType clone() { SystemConfigurationType object = new SystemConfigurationType(); PrismObject value = asPrismObject().clone(); object.setupContainer(value); return object; }
@SuppressWarnings("unchecked") public static void mockGetSystemConfiguration(RepositoryService repository, File file) throws JAXBException, ObjectNotFoundException, SchemaException, IOException { SystemConfigurationType systemConfiguration = (SystemConfigurationType) PrismTestUtil.parseObject(file).asObjectable(); when( repository.getObject(eq(SystemConfigurationType.class), eq(SystemObjectsType.SYSTEM_CONFIGURATION.value()), any(Collection.class), any(OperationResult.class))).thenReturn( systemConfiguration.asPrismObject()); }
public static ExpressionVariables getDefaultExpressionVariables(ObjectType focusType, ShadowType shadowType, ResourceType resourceType, SystemConfigurationType configurationType) { PrismObject<? extends ObjectType> focus = null; if (focusType != null) { focus = focusType.asPrismObject(); } PrismObject<? extends ShadowType> shadow = null; if (shadowType != null) { shadow = shadowType.asPrismObject(); } PrismObject<ResourceType> resource = null; if (resourceType != null) { resource = resourceType.asPrismObject(); } PrismObject<SystemConfigurationType> configuration = null; if (configurationType != null) { configuration = configurationType.asPrismObject(); } return getDefaultExpressionVariables(focus, shadow, null, resource, configuration, null); }
@Override protected void assertPrismContainerValueLocal(PrismContainerValue<SystemConfigurationType> value) throws SchemaException { PrismObject<SystemConfigurationType> object = value.asContainerable().asPrismObject(); object.checkConsistence(); assertPrism(object, false); assertJaxb(value.asContainerable(), false); }
@Test public void test000Sanity() throws Exception { final String TEST_NAME = "test000Sanity"; displayTestTitle(TEST_NAME); AccountActivationNotifierType accountActivationNotifier = null; SystemConfigurationType systemConfig = getObject(SystemConfigurationType.class, SystemObjectsType.SYSTEM_CONFIGURATION.value()).asObjectable(); IntegrationTestTools.displayXml("system config", systemConfig.asPrismObject()); for (EventHandlerType handler: systemConfig.getNotificationConfiguration().getHandler()) { display("Handler: ", handler); List<AccountActivationNotifierType> accountActivationNotifiers = handler.getAccountActivationNotifier(); if (!accountActivationNotifiers.isEmpty()) { accountActivationNotifier = accountActivationNotifiers.get(0); } } display("Account activation notifier", accountActivationNotifier); assertNotNull("No accountActivationNotifier", accountActivationNotifier); }
SecurityPolicyType securityPolicy = securityHelper.locateGlobalSecurityPolicy(user, systemConfigurationType.asPrismObject(), task, parentResult); if (securityPolicy != null) { policy = securityPolicy.getCredentials();
syncCtx.setSystemConfiguration(systemConfiguration.asPrismObject());