]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.cms.jcr/src/org/argeo/cms/internal/jcr/RepoConf.java
1 package org
.argeo
.cms
.internal
.jcr
;
3 import org
.argeo
.api
.NodeConstants
;
4 import org
.argeo
.osgi
.metatype
.EnumAD
;
5 import org
.argeo
.osgi
.metatype
.EnumOCD
;
7 /** JCR repository configuration */
8 public enum RepoConf
implements EnumAD
{
11 /** Default workspace */
12 defaultWorkspace(NodeConstants
.SYS_WORKSPACE
),
17 /** Database password */
20 /** The identifier (can be an URL locating the repo) */
23 // JACKRABBIT SPECIFIC
25 /** Maximum database pool size */
27 /** Maximum cache size in MB */
29 /** Bundle cache size in MB */
31 /** Extractor pool size */
33 /** Search cache size */
34 searchCacheSize(1000),
35 /** Max volatile index size */
36 maxVolatileIndexSize(1048576),
37 /** Cluster id (if appropriate configuration) */
39 /** Indexes base path */
42 /** The default value. */
46 RepoConf(String oid
, Object def
) {
51 RepoConf(Object def
) {
55 public Object
getDefault() {
60 public String
getID() {
63 return EnumAD
.super.getID();
66 public static class OCD
extends EnumOCD
<RepoConf
> {
67 public OCD(String locale
) {
68 super(RepoConf
.class, locale
);