directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r721416 - in /directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152: ExtendedOperationEnum.java InterceptorEnum.java messages.properties
Date Fri, 28 Nov 2008 10:33:14 GMT
Author: felixk
Date: Fri Nov 28 02:33:14 2008
New Revision: 721416

URL: http://svn.apache.org/viewvc?rev=721416&view=rev
Log:
Externalize Strings

Modified:
    directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/ExtendedOperationEnum.java
    directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/InterceptorEnum.java
    directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/messages.properties

Modified: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/ExtendedOperationEnum.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/ExtendedOperationEnum.java?rev=721416&r1=721415&r2=721416&view=diff
==============================================================================
--- directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/ExtendedOperationEnum.java
(original)
+++ directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/ExtendedOperationEnum.java
Fri Nov 28 02:33:14 2008
@@ -29,18 +29,16 @@
 public enum ExtendedOperationEnum
 {
     /** The Start TLS Extended Operation */
-    START_TLS("Start TLS", "The Start TLS extended operation allows an application to serialize
secure and "
-        + "plain requests against an LDAP server on a single connection."),
+    START_TLS(
+        Messages.getString( "ExtendedOperationEnum.StartTLS" ), Messages.getString( "ExtendedOperationEnum.StartTLSDescription"
)), //$NON-NLS-1$
 
     /** The Graceful Shutdown Extended Operation */
-    GRACEFUL_SHUTDOWN("Graceful Shutdown", "The Graceful Shutdown TLS extended operation
allows an application to "
-        + "gracefully manage server's that must go offline or shutdown with proper notification
to bound clients."),
+    GRACEFUL_SHUTDOWN(
+        Messages.getString( "ExtendedOperationEnum.Shutdown" ), Messages.getString( "ExtendedOperationEnum.ShutdownDescription"
)), //$NON-NLS-1$
 
     /** The Launch Diagnostic UI Extended Operation */
-    LAUNCH_DIAGNOSTIC_UI("Launch Diagnostic UI",
-        "The Launch Diagnostic UI extended operation allows an application to "
-            + "launch the diagnostic user interface which can be used to look at "
-            + "the master table and the indices.");
+    LAUNCH_DIAGNOSTIC_UI(Messages.getString( "ExtendedOperationEnum.DiagnosticUI" ), //$NON-NLS-1$
+        Messages.getString( "ExtendedOperationEnum.DiagnosticUIDescription" )); //$NON-NLS-1$
 
     /** The name */
     private String name;

Modified: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/InterceptorEnum.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/InterceptorEnum.java?rev=721416&r1=721415&r2=721416&view=diff
==============================================================================
--- directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/InterceptorEnum.java
(original)
+++ directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/InterceptorEnum.java
Fri Nov 28 02:33:14 2008
@@ -20,8 +20,6 @@
 package org.apache.directory.studio.apacheds.configuration.model.v152;
 
 
-
-
 /**
  * This enum contains all the interceptors.
  *
@@ -31,62 +29,53 @@
 public enum InterceptorEnum
 {
     /** The Normalization Interceptor */
-    NORMALIZATION("Normalization", "A name normalization interceptor. This interceptor makes
sure all relative "
-        + "and distinguished names are normalized before calls are made against "
-        + "the respective interface methods on PartitionNexus."),
+    NORMALIZATION(
+        Messages.getString( "InterceptorEnum.Normalization" ), Messages.getString( "InterceptorEnum.NormalizationDescription"
)), //$NON-NLS-1$ //$NON-NLS-2$
 
     /** The Authentication Interceptor */
-    AUTHENTICATION("Authentication", "An interceptor that authenticates users."),
+    AUTHENTICATION(
+        Messages.getString( "InterceptorEnum.Authentication" ), Messages.getString( "InterceptorEnum.AuthenticationDescription"
)), //$NON-NLS-1$ //$NON-NLS-2$
 
     /** The Referral Interceptor */
-    REFERRAL("Referral", "An interceptor which is responsible referral handling behaviors.
 It "
-        + "manages  referral handling behavior when the Context#REFERRAL "
-        + "is implicitly or explicitly set to \"ignore\", when set to \"throw\" " + "and
when set to \"follow\"."),
+    REFERRAL(
+        Messages.getString( "InterceptorEnum.Referral" ), Messages.getString( "InterceptorEnum.ReferralDescription"
)), //$NON-NLS-1$ //$NON-NLS-2$
 
     /** The ACI Authorization Interceptor */
-    ACI_AUTHORIZATION("ACI Authorization", "An ACI based authorization interceptor."),
+    ACI_AUTHORIZATION(
+        Messages.getString( "InterceptorEnum.ACIAuthorization" ), Messages.getString( "InterceptorEnum.ACIAuthorizationDescription"
)), //$NON-NLS-1$ //$NON-NLS-2$
 
     /** The Default Authorization Interceptor */
-    DEFAULT_AUTHORIZATION("Default Authorization", "An interceptor that controls access to
PartitionNexus. If a user "
-        + "tries to perform any operations that requires permission he or she "
-        + "doesn't have, NoPermissionException will be thrown and therefore the "
-        + "current invocation chain will terminate."),
+    DEFAULT_AUTHORIZATION(
+        Messages.getString( "InterceptorEnum.DefaultAuthorization" ), Messages.getString(
"InterceptorEnum.DefaultAuthorizationDescription" )), //$NON-NLS-1$ //$NON-NLS-2$
 
     /** The Exception Interceptor */
-    EXCEPTION("Exception", "An interceptor that detects any operations that breaks integrity
of "
-        + "Partition and terminates the current invocation chain by throwing a "
-        + "NamingException. Those operations include when an entry already "
-        + "exists at a DN and is added once again to the same DN."),
+    EXCEPTION(
+        Messages.getString( "InterceptorEnum.Exception" ), Messages.getString( "InterceptorEnum.ExceptionDescription"
)), //$NON-NLS-1$ //$NON-NLS-2$
 
     /** The Operational Attribute Interceptor */
-    OPERATIONAL_ATTRIBUTE("Operational Attribute", "An interceptor that adds or modifies
the default attributes of "
-        + "entries. There are four default attributes for now; 'creatorsName', "
-        + "'createTimestamp', 'modifiersName', 'modifyTimestamp'."),
+    OPERATIONAL_ATTRIBUTE(
+        Messages.getString( "InterceptorEnum.OperationalAttribute" ), Messages.getString(
"InterceptorEnum.OperationalAttributeDescription" )), //$NON-NLS-1$ //$NON-NLS-2$
 
     /** The Schema Interceptor */
-    SCHEMA("Schema", "An interceptor that manages and enforces schemas."),
+    SCHEMA(Messages.getString( "InterceptorEnum.Schema" ), Messages.getString( "InterceptorEnum.SchemaDescription"
)), //$NON-NLS-1$ //$NON-NLS-2$
 
     /** The Sub-Entry Interceptor */
-    SUBENTRY("Sub-Entry", "The sub-entry interceptor service which is responsible for filtering
"
-        + "out sub-entries on search operations and injecting operational attributes"),
+    SUBENTRY(
+        Messages.getString( "InterceptorEnum.SubEntry" ), Messages.getString( "InterceptorEnum.SubEntryDescription"
)), //$NON-NLS-1$ //$NON-NLS-2$
 
     /** The Collective Attribute Interceptor */
-    COLLECTIVE_ATTRIBUTE("Collective Attribute", "An interceptor based service dealing with
collective attribute "
-        + "management. This service intercepts read operations on entries to "
-        + "inject collective attribute value pairs into the response based on "
-        + "the entires inclusion within collectiveAttributeSpecificAreas and collectiveAttributeInnerAreas."),
+    COLLECTIVE_ATTRIBUTE(
+        Messages.getString( "InterceptorEnum.CollectiveAttribute" ), Messages.getString(
"InterceptorEnum.CollectiveAttributeDescription" )), //$NON-NLS-1$ //$NON-NLS-2$
 
     /** The Event Interceptor */
-    EVENT("Event", "An interceptor based serivice for notifying NamingListeners of "
-        + "EventContext and EventDirContext changes."),
+    EVENT(Messages.getString( "InterceptorEnum.Event" ), Messages.getString( "InterceptorEnum.EventDescription"
)), //$NON-NLS-1$ //$NON-NLS-2$
 
     /** The Trigger Interceptor */
-    TRIGGER("Trigger", "The trigger interceptor based on the Trigger Specification."),
+    TRIGGER(Messages.getString( "InterceptorEnum.Trigger" ), Messages.getString( "InterceptorEnum.TriggerDescription"
)), //$NON-NLS-1$ //$NON-NLS-2$
 
     /** The Replication Interceptor */
-    REPLICATION("Replication", "An interceptor that intercepts LDAP operations and propagates
the "
-        + "changes occurred by the operations into other ReplicaIds so the DIT "
-        + "of each ReplicaId in the cluster has the same content without any conflict.",
+    REPLICATION(
+        Messages.getString( "InterceptorEnum.Replication" ), Messages.getString( "InterceptorEnum.ReplicationDescription"
), //$NON-NLS-1$ //$NON-NLS-2$
         new ReplicationInterceptorConfiguration());
 
     /** The name */

Modified: directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/messages.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/messages.properties?rev=721416&r1=721415&r2=721416&view=diff
==============================================================================
--- directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/messages.properties
(original)
+++ directory/studio/trunk/apacheds-configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/model/v152/messages.properties
Fri Nov 28 02:33:14 2008
@@ -15,6 +15,38 @@
 # specific language governing permissions and limitations
 # under the License.
 
+ExtendedOperationEnum.DiagnosticUIDescription=The Launch Diagnostic UI extended operation
allows an application to launch the diagnostic user interface which can be used to look at
the master table and the indices.
+ExtendedOperationEnum.Shutdown=Graceful Shutdown
+ExtendedOperationEnum.ShutdownDescription=The Graceful Shutdown TLS extended operation allows
an application to gracefully manage server's that must go offline or shutdown with proper
notification to bound clients.
+ExtendedOperationEnum.StartTLS=Start TLS
+ExtendedOperationEnum.StartTLSDescription=The Start TLS extended operation allows an application
to serialize secure and plain requests against an LDAP server on a single connection.
+ExtendedOperationEnum.DiagnosticUI=Launch Diagnostic UI
+InterceptorEnum.ACIAuthorization=ACI Authorization
+InterceptorEnum.ACIAuthorizationDescription=An ACI based authorization interceptor.
+InterceptorEnum.Authentication=Authentication
+InterceptorEnum.AuthenticationDescription=An interceptor that authenticates users.
+InterceptorEnum.CollectiveAttribute=Collective Attribute
+InterceptorEnum.CollectiveAttributeDescription=An interceptor based service dealing with
collective attribute management. This service intercepts read operations on entries to inject
collective attribute value pairs into the response based on the entires inclusion within collectiveAttributeSpecificAreas
and collectiveAttributeInnerAreas.
+InterceptorEnum.DefaultAuthorization=Default Authorization
+InterceptorEnum.DefaultAuthorizationDescription=An interceptor that controls access to PartitionNexus.
If a user tries to perform any operations that requires permission he or she doesn't have,
NoPermissionException will be thrown and therefore the current invocation chain will terminate.
+InterceptorEnum.Event=Event
+InterceptorEnum.EventDescription=An interceptor based serivice for notifying NamingListeners
of EventContext and EventDirContext changes.
+InterceptorEnum.Exception=Exception
+InterceptorEnum.ExceptionDescription=An interceptor that detects any operations that breaks
integrity of Partition and terminates the current invocation chain by throwing a NamingException.
Those operations include when an entry already exists at a DN and is added once again to the
same DN.
+InterceptorEnum.Normalization=Normalization
+InterceptorEnum.NormalizationDescription=A name normalization interceptor. This interceptor
makes sure all relative and distinguished names are normalized before calls are made against
the respective interface methods on PartitionNexus.
+InterceptorEnum.OperationalAttribute=Operational Attribute
+InterceptorEnum.OperationalAttributeDescription=An interceptor that adds or modifies the
default attributes of entries. There are four default attributes for now; 'creatorsName',
'createTimestamp', 'modifiersName', 'modifyTimestamp'.
+InterceptorEnum.Referral=Referral
+InterceptorEnum.ReferralDescription=An interceptor which is responsible referral handling
behaviors.  It manages  referral handling behavior when the Context\#REFERRAL is implicitly
or explicitly set to "ignore", when set to "throw" and when set to "follow".
+InterceptorEnum.Replication=Replication
+InterceptorEnum.ReplicationDescription=An interceptor that intercepts LDAP operations and
propagates the changes occurred by the operations into other ReplicaIds so the DIT of each
ReplicaId in the cluster has the same content without any conflict.
+InterceptorEnum.Schema=Schema
+InterceptorEnum.SchemaDescription=An interceptor that manages and enforces schemas.
+InterceptorEnum.SubEntry=Sub-Entry
+InterceptorEnum.SubEntryDescription=The sub-entry interceptor service which is responsible
for filtering out sub-entries on search operations and injecting operational attributes.
+InterceptorEnum.Trigger=Trigger
+InterceptorEnum.TriggerDescription=The trigger interceptor based on the Trigger Specification.
 SaslQualityOfProtectionEnum.AuthenticationOnly=auth (Authentication only)
 SaslQualityOfProtectionEnum.AuthenticationWithIntegrityAndPrivacyProtection=auth-conf (Authentication
with integrity and privacy protection)
 SaslQualityOfProtectionEnum.AuthenticationWithIntegrityProtection=auth-int (Authentication
with integrity protection)



Mime
View raw message