iofficecomponent.java

来自「一套完整的工商12315的源程序jsp部分在12315里,后台JAVA部分在gs」· Java 代码 · 共 107 行

JAVA
107
字号

/*
 * Component.java
 *
 * Created on 2001年7月13日, 下午2:44
 */

package com.gs.db;

/**
 * Represents a application module based on the kernel. The component control
 * machnism is not fully implemented in this release.
 */
public interface IofficeComponent {
    public String getName();
    
    /**
     * return the DisplayName  used to  denote the component in GUI or WWWPAGE
     */
    public String getDisplayName();
    
    /**
     * Set the DisplayName  used to  denote the component in GUI or WWWPAGE
     */
    public void setDisplayName(String dispName) throws UnauthorizedException;
    
    /**
     *  return the URL to entry the component services
     */
    public String getEntryURL();

    /**
     *  Set the URL to entry the component services
     */
    public void setEntryURL(String url) throws UnauthorizedException;
    
    /**
     * get the importance of the component
     * @return 0..99 , the larger the more important
     */
    public int getWeight() ;
    
    /**
     * Set the importance of the component
     * @return 0..99 , the larger the more important
     */
    public void setWeight(int weight) throws UnauthorizedException;
    
    /**
     * get which desktop the component belongs to 
     *@return  1: public  2:personal
     */
    public int getDesktop();
    
    /**
     * set which desktop the component belongs to 
     *@return  1: public  2:personal
     */
    public void setDesktop(int desktop) throws UnauthorizedException;
    
    /**
     * Tells if the component is active
     */
    public boolean isActive() ;
    
    /**
     * Activate or Deactivate the component 
     *
     *@throws UnauthorizedException if it doesnot have the permission of system adminstration
     */
    public void activate (boolean flag) throws UnauthorizedException;
    
    /**
     * return the agent class name 
     */
    public String getAgentClassName() ;
    
    /**
     * set the agent class name
     *
     *@throws UnauthorizedException if it doesnot have the permission of system adminstration
     */ 
    public void setAgentClassName(String className) throws UnauthorizedException;
    
    /**
     * get Agent Instance 
     *
     * @return the object which implements IofficeComponentAgent interface
     */
     public Object getAgentInstance();
    /**
     * Tells if the component is accessbile to all groups by default
     *
     * @return true if is default
     */
    public boolean isDefaultAccessible( ) ;
    
    /**
     * Tells if the component is accessbile to all groups by default
     *
     * @return true if is default
     */
    public void setDefaultAccessible( boolean flag ) throws UnauthorizedException ;

}

⌨️ 快捷键说明

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