portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jf...@apache.org
Subject cvs commit: jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/portlet/impl PortletApplicationMetadataImpl.java PortletApplicationLocalizedFieldImpl.java
Date Thu, 11 Mar 2004 19:14:47 GMT
jford       2004/03/11 11:14:47

  Added:       components/registry/src/java/org/apache/jetspeed/om/portlet/impl
                        PortletApplicationMetadataImpl.java
                        PortletApplicationLocalizedFieldImpl.java
  Log:
  New classes for PortletApplication metadata
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/portlet/impl/PortletApplicationMetadataImpl.java
  
  Index: PortletApplicationMetadataImpl.java
  ===================================================================
  /*
   * Copyright 2004 The Apache Software Foundation.
   * 
   * Licensed 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.jetspeed.om.portlet.impl;
  
  import java.util.Locale;
  
  import org.apache.jetspeed.om.common.LocalizedField;
  import org.apache.jetspeed.om.common.impl.GenericMetadataImpl;
  
  /**
   * 
   * PortletApplicationMetadataImpl
   * 
   * PortletApplication specific class for Metadata
   * 
   * @author <a href="mailto:jford@apache.org">Jeremy Ford</a>
   * @version $Id: PortletApplicationMetadataImpl.java,v 1.1 2004/03/11 19:14:47 jford Exp
$
   *  
   */
  public class PortletApplicationMetadataImpl extends GenericMetadataImpl
  {
      /* (non-Javadoc)
       * @see org.apache.jetspeed.om.common.GenericMetadata#addField(java.util.Locale, java.lang.String,
java.lang.String)
       */
      public void addField(Locale locale, String name, String value)
      {
          PortletApplicationLocalizedFieldImpl field = new PortletApplicationLocalizedFieldImpl();
          field.setName(name);
          field.setValue(value);
          field.setLocale(locale);
          
          addField(field);
      }
  
      /* (non-Javadoc)
       * @see org.apache.jetspeed.om.common.GenericMetadata#createLocalizedField()
       */
      public LocalizedField createLocalizedField() {
          return new PortletApplicationLocalizedFieldImpl();
      }
  }
  
  
  
  1.1                  jakarta-jetspeed-2/components/registry/src/java/org/apache/jetspeed/om/portlet/impl/PortletApplicationLocalizedFieldImpl.java
  
  Index: PortletApplicationLocalizedFieldImpl.java
  ===================================================================
  /*
   * Copyright 2004 The Apache Software Foundation.
   * 
   * Licensed 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.jetspeed.om.portlet.impl;
  
  import org.apache.jetspeed.om.common.impl.LocalizedFieldImpl;
  
  /**
   * 
   * PortletApplicationLocalizedFieldImpl
   * 
   * PortletApplication specific class for LocalizedFields
   * 
   * @author <a href="mailto:jford@apache.org">Jeremy Ford</a>
   * @version $Id: PortletApplicationLocalizedFieldImpl.java,v 1.1 2004/03/11 19:14:47 jford
Exp $
   *  
   */
  public class PortletApplicationLocalizedFieldImpl extends LocalizedFieldImpl
  {
  
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Mime
View raw message