⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jahiaundefinedfield.java

📁 java 写的一个新闻发布系统
💻 JAVA
字号:
//  JahiaUndefinedField//  YG      17.07.2001package org.jahia.data.fields;import java.util.*;                     // Vector, Calendarimport org.jahia.params.*;          // ParamBeanimport org.jahia.exceptions.JahiaException;import org.jahia.registries.*;      // Registriespublic class JahiaUndefinedField extends JahiaField{        /***        * constructor        * YG    17.07.2001        *        */    public JahiaUndefinedField(Integer      ID,                            Integer         jahiaID,                            Integer         pageID,                            Integer         ctnid,                            Integer         fieldDefID,                            Integer         fieldType,                            Integer         connectType,                            String          fieldValue,                            Integer         rank,                            Integer         aclID )    {        super(ID, jahiaID, pageID, ctnid, fieldDefID, fieldType, connectType,              fieldValue, rank, aclID);    } // end constructor            public void load(int loadFlag, ParamBean jParams)    throws JahiaException    {        ;    }        public void save(ParamBean jParams)    throws JahiaException    {        ;    }        public void delete(ParamBean jParams)    throws JahiaException    {        ;    }    /**     * Returns an hashtable of indexable attributes , pairs [attribute name/value].      * Returned pairs:     * 					none     *     * @return Hashtable a map of indexable attributes , pairs [attribute name/value]     */    public Hashtable getIndexableAttributes(){    	Hashtable hash = new Hashtable();    	return hash;    }        public String getEngineName()    {        return "org.jahia.engines.shared.Undefined_Field";    }        public String getFieldContent4Ranking()    {        return "";    }        public String getIconNameOff()    {        return "undefined";    }        public String getIconNameOn()    {        return "undefined_on";    }        public JahiaField cloneField(int newctnid, int newPageID, int clonedAclID, boolean childrenCloned)    throws JahiaException    {        JahiaField clonedField = ServicesRegistry.getInstance().getJahiaFieldService().                                 createJahiaField(0, this.getJahiaID(),                                 newPageID, newctnid,                                 this.getFieldDefID(), this.getType(),                                 this.getConnectType(),                                 this.getValue(), this.getRank(),                                 clonedAclID );        //toDebug("cloneField(): value = "+this.getValue());        if (clonedField == null)        {            throw new JahiaException ("Could not clone field.",                "Could not instanciate a new JahiaField object.",                JahiaException.PAGE_ERROR, JahiaException.CRITICAL);        }        clonedField.setRawValue(this.getRawValue());        clonedField.setObject( this.getObject() );        clonedField.setProperties( (Hashtable)(this.getProperties()).clone() );                return clonedField;    }        public Object clone()    {        return new JahiaUndefinedField (new Integer(ID), new Integer(jahiaID),                                        new Integer(pageID),                                         new Integer(ctnid),                                        new Integer(fieldDefID),                                         new Integer(fieldType),                                         new Integer(connectType),                                         fieldValue, new Integer(rank),                                         new Integer(aclID) );    }            }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -