diff options
Diffstat (limited to 'das-java/contrib/ldap/das.ldap.constants')
11 files changed, 352 insertions, 0 deletions
diff --git a/das-java/contrib/ldap/das.ldap.constants/pom.xml b/das-java/contrib/ldap/das.ldap.constants/pom.xml new file mode 100644 index 0000000000..e501f8b1e5 --- /dev/null +++ b/das-java/contrib/ldap/das.ldap.constants/pom.xml @@ -0,0 +1,20 @@ +<?xml version="1.0"?><project> + <parent> + <artifactId>tuscany-das-ldap</artifactId> + <groupId>org.apache.tuscany.das</groupId> + <version>1.0-SNAPSHOT</version> + </parent> + <modelVersion>4.0.0</modelVersion> + <artifactId>das.ldap.constants</artifactId> + <name>das.ldap.constants</name> + + <url>http://maven.apache.org</url> + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + </dependencies> +</project> diff --git a/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/ApacheDSConnectionConstants.java b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/ApacheDSConnectionConstants.java new file mode 100644 index 0000000000..01e4d63789 --- /dev/null +++ b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/ApacheDSConnectionConstants.java @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.tuscany.das.ldap.constants; + +public interface ApacheDSConnectionConstants +{ + String APACHE_CONTEXT_FACTORY = + "org.apache.directory.server.core.jndi.CoreContextFactory"; + + String SUN_CONTEXT_FACTORY = + "com.sun.jndi.ldap.LdapCtxFactory"; + + String SIMPLE_SECURITY_AUTHENTICATION_VALUE = + "simple"; + + String DEFAULT_SECURITY_PRINCIPAL_VALUE = + "uid=admin,ou=system"; + + String DEFAULT_SECURITY_CREDENTIALS_VALUE = + "secret"; + + String SCHEMA_PROVIDER_PATH = + "ou=schema"; + + String SYSTEM_PROVIDER_PATH = + "ou=system"; + + String NLOG4J_CONFIGURATION_FILEPATH = + "src/test/resources/log4j.properties"; + +} diff --git a/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/DASConstants.java b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/DASConstants.java new file mode 100644 index 0000000000..91745e0980 --- /dev/null +++ b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/DASConstants.java @@ -0,0 +1,95 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.tuscany.das.ldap.constants; + +public interface DASConstants { + String DAS_META_ID_DEFAULT = + "0"; + + + String DAS_XSD_NAMESPACE = + "http://org.apache.tuscany/das/ldap"; + + String M_META_TOP_SDO_OBJECT_CLASS = + "metaTopSDO"; + + String M_COMPLEX_MAY = + "m-complexMay"; + + String M_COMPLEX_MAY_DESCRIPTION = + "SDO Type member that is a reference"; + + String M_COMPLEX_MUST = + "m-complexMust"; + + String M_COMPLEX_MUST_DESCRIPTION = + "Required SDO Type member reference."; + + String ID = + "id"; + + String ID_DESCRIPTION = + "Unique DataObject Instance Integer ID"; + + //================================================== + String XSD_CONTEXT_NAME = + "xsd"; + + String ECORE_CONTEXT_NAME = + "ecore"; + + String DAS_CONTEXT_NAME = + "das"; + + String SYNTAXES_CONTEXT_NAME = + "syntaxes"; + + String SYNTAX_CHECKERS_CONTEXT_NAME = + "syntaxCheckers"; + + String ATTRIBUTE_TYPES_CONTEXT_NAME = + "attributeTypes"; + + String OBJECT_CLASSES_CONTEXT_NAME = + "objectClasses"; + + String META_CONTEXT_NAME = + "meta"; + //================================================== + + String LDAP_USER_APPLICATIONS = + "USER_APPLICATIONS"; + + String LDAP_FALSE = + "FALSE"; + + String TUSCANY_OID_PREFIX_VALUE = + "1.3.6.1.4.1.18060.4"; + + + String OID_SYNTAX_OID_VALUE = + "1.3.6.1.4.1.1466.115.121.1.38"; + + String INTEGER_SYNTAX_OID_VALUE = + "1.3.6.1.4.1.1466.115.121.1.27"; + + String DISTINGUISHED_NAME_SYNTAX_OID_VALUE = + "1.3.6.1.4.1.1466.115.121.1.12"; +} diff --git a/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/SyntaxOIDValues.java b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/SyntaxOIDValues.java new file mode 100644 index 0000000000..32dece8648 --- /dev/null +++ b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/constants/SyntaxOIDValues.java @@ -0,0 +1,8 @@ +package org.apache.tuscany.das.ldap.constants; + +public interface SyntaxOIDValues { + + String SYNTAX_STRING_OID_VALUE = "1.3.6.1.4.1.1466.115.121.1.15"; + String SYNTAX_INTEGER_OID_VALUE = "1.3.6.1.4.1.1466.115.121.1.27"; + String SYNTAX_BOOLEAN_OID_VALUE = "1.3.6.1.4.1.1466.115.121.1.7"; +} diff --git a/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/AttributeTypeConstants.java b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/AttributeTypeConstants.java new file mode 100644 index 0000000000..9a61986318 --- /dev/null +++ b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/AttributeTypeConstants.java @@ -0,0 +1,25 @@ + +package org.apache.tuscany.das.ldap.schema.constants; + +public interface AttributeTypeConstants +{ + String CN = "cn"; + String OU = "ou"; + String OBJECT_CLASS = "objectClass"; + String CREATORS_NAME = "creatorsName"; + String CREATE_TIMESTAMP = "createTimestamp"; + String MODIFY_TIMESTAMP = "modifyTimestamp"; + String MODIFIERS_NAME = "modifiersName"; + + String LDAP_SYNTAXES = "ldapSyntaxes"; + String SYNTAXES = "syntaxes"; + String SYNTAX_CHECKERS = "syntaxCheckers"; + String MATCHING_RULES = "matchingRules"; + String ATTRIBUTE_TYPES = "attributeTypes"; + String OBJECT_CLASSES = "objectClasses"; + String MATCHING_RULE = "matchingRuleUse"; + String DIT_STRUCTURE = "ditStructureRules"; + String DIT_CONTENT = "ditContentRules"; + String NAME_FORMS = "nameForms"; + String UNIQUE_IDENTIFIER = "uniqueIdentifier"; +} diff --git a/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/EnumeratedSchemaAttributeTypeValues.java b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/EnumeratedSchemaAttributeTypeValues.java new file mode 100644 index 0000000000..6658beeafa --- /dev/null +++ b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/EnumeratedSchemaAttributeTypeValues.java @@ -0,0 +1,7 @@ + +package org.apache.tuscany.das.ldap.schema.constants; + +public interface EnumeratedSchemaAttributeTypeValues +{ + String M_EQUALITY__NAME_OR_NUMERIC_ID_MATCH="nameOrNumericIdMatch"; +} diff --git a/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/ObjectClassConstants.java b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/ObjectClassConstants.java new file mode 100644 index 0000000000..c722ef8631 --- /dev/null +++ b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/ObjectClassConstants.java @@ -0,0 +1,35 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.tuscany.das.ldap.schema.constants; + + +/** + * These constants are used by the DAS and DAS Clients. + * + */ +public interface ObjectClassConstants +{ + String TOP = "top"; + String ORGANIZATIONAL_UNIT = "organizationalUnit"; + + String ABSTRACT = "ABSTRACT"; + String STRUCTURAL = "STRUCTURAL"; + String AUXILIARY = "AUXILIARY"; +} diff --git a/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/PartitionConstants.java b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/PartitionConstants.java new file mode 100644 index 0000000000..c5ef1f2392 --- /dev/null +++ b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/PartitionConstants.java @@ -0,0 +1,8 @@ + +package org.apache.tuscany.das.ldap.schema.constants; + +public interface PartitionConstants +{ + + +} diff --git a/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/SchemaAttributeTypeConstants.java b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/SchemaAttributeTypeConstants.java new file mode 100644 index 0000000000..8cf39ce172 --- /dev/null +++ b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/SchemaAttributeTypeConstants.java @@ -0,0 +1,33 @@ + +package org.apache.tuscany.das.ldap.schema.constants; + +public interface SchemaAttributeTypeConstants +{ + String M_SUP_OBJECT_CLASS = "m-supObjectClass"; + String M_BYTECODE = "m-bytecode"; + String M_FQCN = "m-fqcn"; + String M_DEPENDENCIES = "m-dependencies"; + String M_DISABLED = "m-disabled"; + String M_DESCRIPTION = "m-description"; + String M_OBSOLETE = "m-obsolete"; + String M_NAME = "m-name"; + String M_OID = "m-oid"; + String M_OC = "m-oc"; + String M_AUX = "m-aux"; + String M_USAGE = "m-usage"; + String M_NO_USER_MODIFICATION = "m-noUserModification"; + String M_SINGLE_VALUE = "m-singleValue"; + String M_COLLECTIVE = "m-collective"; + String M_SUBSTR = "m-substr"; + String M_SUP = "m-supAttributeType"; + String M_ORDERING = "m-ordering"; + String M_EQUALITY = "m-equality"; + String M_SYNTAX = "m-syntax"; + String M_MUST = "m-must"; + String M_MAY = "m-may"; + String M_TYPE_OBJECT_CLASS = "m-typeObjectClass"; + String X_HUMAN_READIBLE = "x-humanReadible";//TODO Fix spelling once fixed in ADS + + String M_FQCN_DEFAULT_VALUE = + "org.apache.directory.shared.ldap.schema.syntax.AcceptAllSyntaxChecker"; +} diff --git a/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/SchemaObjectClassConstants.java b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/SchemaObjectClassConstants.java new file mode 100644 index 0000000000..34f04d3498 --- /dev/null +++ b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/SchemaObjectClassConstants.java @@ -0,0 +1,39 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.tuscany.das.ldap.schema.constants; + + +/** + * These constants are used by the DAS and DAS Clients. + */ +public interface SchemaObjectClassConstants +{ + String META_TOP = "metaTop"; + String META_SCHEMA = "metaSchema"; + String META_OBJECT_CLASS = "metaObjectClass"; + String META_ATTRIBUTE_TYPE = "metaAttributeType"; + String META_MATCHING_RULE = "metaMatchingRule"; + String META_NORMALIZER = "metaNormalizer"; + String META_SYNTAX = "metaSyntax"; + String META_SYNTAX_CHECKER = "metaSyntaxChecker"; + String META_COMPARATOR = "metaComparator"; + String META_NAME_FORM = "metaNameForm"; + String META_DIT_CONTENT_RULE = "metaDITContentRule"; +} diff --git a/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/SystemSchemaConstants.java b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/SystemSchemaConstants.java new file mode 100644 index 0000000000..2e8dac3cbb --- /dev/null +++ b/das-java/contrib/ldap/das.ldap.constants/src/main/java/org/apache/tuscany/das/ldap/schema/constants/SystemSchemaConstants.java @@ -0,0 +1,34 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ +package org.apache.tuscany.das.ldap.schema.constants; + + +/** + * Constants for the System schema. + * + * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> + * @version $Rev$, $Date$ + */ +public interface SystemSchemaConstants +{ + String SCHEMA_NAME = "system"; + + +} |