Search in sources :

Example 1 with SObjectIDMPluginDescriptor

use of org.bimserver.interfaces.objects.SObjectIDMPluginDescriptor in project BIMserver by opensourceBIM.

the class PluginServiceImpl method getAllObjectIDMPluginDescriptors.

@Override
public List<SObjectIDMPluginDescriptor> getAllObjectIDMPluginDescriptors() throws UserException {
    requireRealUserAuthentication();
    Collection<ObjectIDMPlugin> allObjectIDMs = getBimServer().getPluginManager().getAllObjectIDMPlugins(true).values();
    List<SObjectIDMPluginDescriptor> descriptors = new ArrayList<SObjectIDMPluginDescriptor>();
    for (ObjectIDMPlugin ObjectIDMPlugin : allObjectIDMs) {
        SObjectIDMPluginDescriptor descriptor = new SObjectIDMPluginDescriptor();
        descriptor.setClassName(ObjectIDMPlugin.getClass().getName());
        descriptors.add(descriptor);
    }
    return descriptors;
}
Also used : ArrayList(java.util.ArrayList) ObjectIDMPlugin(org.bimserver.plugins.objectidms.ObjectIDMPlugin) SObjectIDMPluginDescriptor(org.bimserver.interfaces.objects.SObjectIDMPluginDescriptor)

Aggregations

ArrayList (java.util.ArrayList)1 SObjectIDMPluginDescriptor (org.bimserver.interfaces.objects.SObjectIDMPluginDescriptor)1 ObjectIDMPlugin (org.bimserver.plugins.objectidms.ObjectIDMPlugin)1