Package org.apache.syncope.core.persistence.beans.conf

Examples of org.apache.syncope.core.persistence.beans.conf.SyncopeConf


    @Autowired
    private SchemaDAO schemaDAO;

    @Override
    public SyncopeConf get() {
        SyncopeConf instance = entityManager.find(SyncopeConf.class, 1L);
        if (instance == null) {
            instance = new SyncopeConf();
            instance.setId(1L);

            instance = entityManager.merge(instance);
        }

        return instance;
View Full Code Here


    @Override
    public SyncopeConf save(final CAttr attr) {
        delete(attr.getSchema().getName());

        SyncopeConf instance = get();
        instance.addAttr(attr);
        return entityManager.merge(instance);
    }
View Full Code Here

        return entityManager.merge(instance);
    }

    @Override
    public SyncopeConf delete(final String key) {
        SyncopeConf instance = get();
        CAttr attr = instance.getAttr(key);
        if (attr != null) {
            instance.removeAttr(attr);
            instance = entityManager.merge(instance);
        }

        return instance;
    }
View Full Code Here

TOP

Related Classes of org.apache.syncope.core.persistence.beans.conf.SyncopeConf

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.