Package eu.planets_project.pp.plato.services.action

Examples of eu.planets_project.pp.plato.services.action.PreservationActionRegistryDefinition


        if (sample == null) {
            return null;
        }
        FormatInfo formatInfo = sample.getFormatInfo();

        PreservationActionRegistryDefinition reg = (PreservationActionRegistryDefinition) registry;
        try {
            availableActions.clear();
            List<PreservationActionDefinition> actions = queryRegistry(formatInfo, reg);
            availableActions.addAll(actions);
            // this registry is responsible for the result - mark it as selected
            for (PreservationActionRegistryDefinition r: registrySelection.keySet()) {
                registrySelection.put(r, (registry == r) );
            }
        } catch (PlatoServiceException e) {
            log.error(e.getMessage(),e);
            FacesMessages.instance().add(FacesMessage.SEVERITY_ERROR,
                    "Failed to look up services of: " + reg.getShortname()
                    + ": " + e.getMessage());
        }
        return null;
    }
View Full Code Here


       
        IPreservationActionRegistry registry = null;
       
        List<PreservationActionRegistryDefinition> list = PreservationActionRegistryFactory.getAvailableRegistries();
       
        PreservationActionRegistryDefinition minimee = null;
        for (PreservationActionRegistryDefinition par : list) {
            if (par.getType().equalsIgnoreCase(MiniMeeServiceRegistry.class.getName())) {
                minimee = par;
                break;
            }
View Full Code Here

TOP

Related Classes of eu.planets_project.pp.plato.services.action.PreservationActionRegistryDefinition

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.