Examples of ContentSourceType


Examples of org.rhq.core.domain.content.ContentSourceType

     *
     * @return the content source type with the given name or <code>null</code> if none exists
     */
    public synchronized ContentSourceType getContentSourceType(String typeName) {
        for (Map<String, ContentSourceType> pluginTypes : loadedPlugins.values()) {
            ContentSourceType type = pluginTypes.get(typeName);
            if (type != null) {
                return type;
            }
        }

View Full Code Here

Examples of org.rhq.core.domain.content.ContentSourceType

            // protect if it aleady exists due to a failed run
            contentSourceType = contentSourceManager.getContentSourceType("testType");
            if (null == contentSourceType) {
                // Create a sample content source type that will be used in this test
                contentSourceType = new ContentSourceType("testType");
                entityManager.persist(contentSourceType);
                entityManager.flush();
            }

            // protect if it aleady exists due to a failed run
View Full Code Here

Examples of org.rhq.core.domain.content.ContentSourceType

            public void execute() throws Exception {

                EntityManager entityManager = getEntityManager();

                // I just want to see this tested even though I haven't seen this fail on oracle or postgres ever
                ContentSourceType cst = new ContentSourceType("testLongVarCharCST");
                entityManager.persist(cst);
                ContentSource cs = new ContentSource("testLongVarCharCS", cst);
                cs.setLoadErrorMessage("longvarchar column here");
                entityManager.persist(cs);
View Full Code Here

Examples of org.rhq.core.domain.content.ContentSourceType

@Test
public class SerializableTest {
    public void testSerialization() {
        List<Serializable> objects = new ArrayList<Serializable>();
        Serializable[] simpleObjects = new Serializable[] { new AvailabilityReport("fakeAgent"), new PackageType(),
            new Architecture(), new Repo(), new ContentServiceRequest(), new ContentSource(), new ContentSourceType(),
            new InstalledPackage(), new Package(), new PackageInstallationStep(), new PackageType(),
            new PackageVersion() };
        objects.addAll(Arrays.asList(simpleObjects));

        ResourceType resourceType = new ResourceType("name", "plugin", ResourceCategory.PLATFORM, null);
View Full Code Here

Examples of org.rhq.core.domain.content.ContentSourceType

        RepoManagerLocal repoManager = LookupUtil.getRepoManagerLocal();
        SubjectManagerLocal subjectManager = LookupUtil.getSubjectManager();
        Subject overlord = subjectManager.getOverlord();

        // Create a sample content source type that will be used in this test
        testSourceType = new ContentSourceType("testType");
        entityManager.persist(testSourceType);
        entityManager.flush();
       
        //need to actually commit the tx so that the subsequent code can see the new entry in
        //the database
View Full Code Here

Examples of org.rhq.core.domain.content.ContentSourceType

            resource.setUuid("" + new Random().nextInt());
            Architecture arch = new Architecture("testCSInsertArch");
            PackageType pt = new PackageType("testCSInsertPT", resource.getResourceType());
            Package pkg = new Package("testCSInsertPackage", pt);
            PackageVersion pv = new PackageVersion(pkg, "version", arch);
            ContentSourceType cst = new ContentSourceType("testCSContentSourceType");
            ContentSource cs = new ContentSource("testCSContentSource", cst);

            Configuration config = new Configuration();
            config.put(new PropertySimple("one", "oneValue"));
            cs.setConfiguration(config);
View Full Code Here

Examples of org.rhq.core.domain.content.ContentSourceType

            resource.setUuid("" + new Random().nextInt());
            Architecture arch = new Architecture("testCSInsertArch");
            PackageType pt = new PackageType("testCSInsertPT", resource.getResourceType());
            Package pkg = new Package("testCSInsertPackage", pt);
            PackageVersion pv = new PackageVersion(pkg, "version", arch);
            ContentSourceType cst = new ContentSourceType("testCSContentSourceType");
            cst.setDefaultSyncSchedule(null);
            ContentSource cs = new ContentSource("testCSContentSource", cst);
            cs.setSyncSchedule(null);

            Configuration config = new Configuration();
            config.put(new PropertySimple("one", "oneValue"));
View Full Code Here

Examples of org.rhq.core.domain.content.ContentSourceType

            resource.setUuid("" + new Random().nextInt());
            Architecture arch = new Architecture("testCSInsertArch");
            PackageType pt = new PackageType("testCSInsertPT", resource.getResourceType());
            Package pkg = new Package("testCSInsertPackage", pt);
            PackageVersion pv = new PackageVersion(pkg, "version", arch);
            ContentSourceType cst = new ContentSourceType("testCSContentSourceType");
            cst.setDefaultSyncSchedule("");
            ContentSource cs = new ContentSource("testCSContentSource", cst);
            cs.setSyncSchedule("");

            Configuration config = new Configuration();
            config.put(new PropertySimple("one", "oneValue"));
View Full Code Here

Examples of org.rhq.core.domain.content.ContentSourceType

            resource.setUuid("" + new Random().nextInt());
            Architecture arch = new Architecture("testCSInsertArch");
            PackageType pt = new PackageType("testCSInsertPT", resource.getResourceType());
            Package pkg = new Package("testCSInsertPackage", pt);
            PackageVersion pv = new PackageVersion(pkg, "version", arch);
            ContentSourceType cst = new ContentSourceType("testCSContentSourceType");
            ContentSource cs = new ContentSource("testCSContentSource", cst);

            Configuration config = new Configuration();
            config.put(new PropertySimple("one", "oneValue"));
            cs.setConfiguration(config);
View Full Code Here

Examples of org.rhq.core.domain.content.ContentSourceType

            resource.setUuid("" + new Random().nextInt());
            Architecture arch = new Architecture("testCSInsertArch");
            PackageType pt = new PackageType("testCSInsertPT", resource.getResourceType());
            Package pkg = new Package("testCSInsertPackage", pt);
            PackageVersion pv = new PackageVersion(pkg, "version", arch);
            ContentSourceType cst = new ContentSourceType("testCSContentSourceType");
            cst.setDefaultSyncSchedule(null);
            ContentSource cs = new ContentSource("testCSContentSource", cst);
            cs.setSyncSchedule(null);

            Configuration config = new Configuration();
            config.put(new PropertySimple("one", "oneValue"));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.