iservicesessionremote.java

来自「一个免费的CA,基于EJB平台的,老师叫我们测试,现把之共享出来让大家参考」· Java 代码 · 共 110 行

JAVA
110
字号
/* * Generated by XDoclet - Do not edit! */package org.ejbca.core.ejb.services;/** * Remote interface for ServiceSession. */public interface IServiceSessionRemote   extends javax.ejb.EJBObject{   /**    * Adds a Service to the database.    * @throws ServiceExistsException if service already exists.    * @throws EJBException if a communication or other error occurs.    */   public void addService( org.ejbca.core.model.log.Admin admin,java.lang.String name,org.ejbca.core.model.services.ServiceConfiguration serviceConfiguration )      throws org.ejbca.core.model.services.ServiceExistsException, java.rmi.RemoteException;   /**    * Adds a service to the database. Used for importing and exporting profiles from xml-files.    * @throws ServiceExistsException if service already exists.    * @throws EJBException if a communication or other error occurs.    */   public void addService( org.ejbca.core.model.log.Admin admin,int id,java.lang.String name,org.ejbca.core.model.services.ServiceConfiguration serviceConfiguration )      throws org.ejbca.core.model.services.ServiceExistsException, java.rmi.RemoteException;   /**    * Updates service configuration, but does not re-set the timer    * @throws EJBException if a communication or other error occurs.    */   public void changeService( org.ejbca.core.model.log.Admin admin,java.lang.String name,org.ejbca.core.model.services.ServiceConfiguration serviceConfiguration )      throws java.rmi.RemoteException;   /**    * Adds a service with the same content as the original.    * @throws ServiceExistsException if service already exists.    * @throws EJBException if a communication or other error occurs.    */   public void cloneService( org.ejbca.core.model.log.Admin admin,java.lang.String oldname,java.lang.String newname )      throws org.ejbca.core.model.services.ServiceExistsException, java.rmi.RemoteException;   /**    * Removes a service from the database.    * @throws EJBException if a communication or other error occurs.    */   public boolean removeService( org.ejbca.core.model.log.Admin admin,java.lang.String name )      throws java.rmi.RemoteException;   /**    * Renames a service    * @throws ServiceExistsException if service already exists.    * @throws EJBException if a communication or other error occurs.    */   public void renameService( org.ejbca.core.model.log.Admin admin,java.lang.String oldname,java.lang.String newname )      throws org.ejbca.core.model.services.ServiceExistsException, java.rmi.RemoteException;   /**    * Retrives a Collection of id:s (Integer) to authorized services. Currently is the only check if the superadmin can see them all    * @return Collection of id:s (Integer)    */   public java.util.Collection getAuthorizedServiceIds( org.ejbca.core.model.log.Admin admin )      throws java.rmi.RemoteException;   /**    * Method creating a hashmap mapping service id (Integer) to service name (String).    */   public java.util.HashMap getServiceIdToNameMap( org.ejbca.core.model.log.Admin admin )      throws java.rmi.RemoteException;   /**    * Retrives a named service.    * @returns the service configuration or null if it doesn't exist.    */   public org.ejbca.core.model.services.ServiceConfiguration getService( org.ejbca.core.model.log.Admin admin,java.lang.String name )      throws java.rmi.RemoteException;   /**    * Finds a service configuration by id.    * @returns the service configuration or null if it doesn't exist.    */   public org.ejbca.core.model.services.ServiceConfiguration getServiceConfiguration( org.ejbca.core.model.log.Admin admin,int id )      throws java.rmi.RemoteException;   /**    * Returns a service id, given it's service name    * @return the id or 0 if the service cannot be found.    */   public int getServiceId( org.ejbca.core.model.log.Admin admin,java.lang.String name )      throws java.rmi.RemoteException;   /**    * Returns a Service name given its id.    * @return the name or null if id doesnt exists    * @throws EJBException if a communication or other error occurs.    */   public java.lang.String getServiceName( org.ejbca.core.model.log.Admin admin,int id )      throws java.rmi.RemoteException;   /**    * Activates the timer for a named service. The service must alrteady be previously added.    * @param admin The administrator performing the action    * @param name the name of the service for which to activate the timer    * @throws EJBException if a communication or other error occurs.    */   public void activateServiceTimer( org.ejbca.core.model.log.Admin admin,java.lang.String name )      throws java.rmi.RemoteException;}

⌨️ 快捷键说明

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