
com.hp.autonomy.frontend.configuration.CommunityServiceImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configuration-idol Show documentation
Show all versions of configuration-idol Show documentation
IDOL implementation of the Micro Focus IDOL Configuration API
/*
* Copyright 2013-2015 Hewlett-Packard Development Company, L.P.
* Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
*/
package com.hp.autonomy.frontend.configuration;
import com.autonomy.aci.client.annotations.IdolAnnotationsProcessorFactory;
import com.autonomy.aci.client.services.AciService;
import com.autonomy.aci.client.transport.AciServerDetails;
import com.autonomy.aci.client.util.AciParameters;
import java.util.List;
/**
* Default implementation of {@link CommunityService}.
*/
public class CommunityServiceImpl implements CommunityService {
private AciService aciService;
private IdolAnnotationsProcessorFactory processorFactory;
@Override
public List getSecurityTypes(final AciServerDetails community) {
try {
return aciService.executeAction(community, new AciParameters("getstatus"),
processorFactory.listProcessorForClass(SecurityType.class));
} catch (final RuntimeException e) {
return null;
}
}
/**
* @param aciService The {@link AciService} to use for interacting with Community
*/
public void setAciService(final AciService aciService) {
this.aciService = aciService;
}
/**
* @param processorFactory The {@link IdolAnnotationsProcessorFactory} to use for reading Community responses
*/
public void setProcessorFactory(final IdolAnnotationsProcessorFactory processorFactory) {
this.processorFactory = processorFactory;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy