Search in sources :

Example 1 with WikiPropertyGroupProvider

use of org.xwiki.wiki.properties.WikiPropertyGroupProvider in project xwiki-platform by xwiki.

the class DefaultWikiPropertyGroupManager method saveForDescriptor.

@Override
public void saveForDescriptor(WikiDescriptor descriptor) throws WikiPropertyGroupException {
    String wikiId = descriptor.getId();
    for (String propertyGroupName : propertyGroupProviders.keySet()) {
        WikiPropertyGroup group = descriptor.getPropertyGroup(propertyGroupName);
        if (group != null) {
            WikiPropertyGroupProvider provider = propertyGroupProviders.get(propertyGroupName);
            provider.save(group, wikiId);
        }
    }
}
Also used : WikiPropertyGroupProvider(org.xwiki.wiki.properties.WikiPropertyGroupProvider) WikiPropertyGroup(org.xwiki.wiki.properties.WikiPropertyGroup)

Aggregations

WikiPropertyGroup (org.xwiki.wiki.properties.WikiPropertyGroup)1 WikiPropertyGroupProvider (org.xwiki.wiki.properties.WikiPropertyGroupProvider)1