first commit
This commit is contained in:
5
hrmsEjb/wenrgise/ejb/common/facade/CommonFacade.java
Normal file
5
hrmsEjb/wenrgise/ejb/common/facade/CommonFacade.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package wenrgise.ejb.common.facade;
|
||||
|
||||
import javax.ejb.EJBObject;
|
||||
|
||||
public interface CommonFacade extends EJBObject {}
|
16
hrmsEjb/wenrgise/ejb/common/facade/CommonFacadeBean.java
Normal file
16
hrmsEjb/wenrgise/ejb/common/facade/CommonFacadeBean.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package wenrgise.ejb.common.facade;
|
||||
|
||||
import javax.ejb.SessionBean;
|
||||
import javax.ejb.SessionContext;
|
||||
|
||||
public class CommonFacadeBean implements SessionBean {
|
||||
public void ejbCreate() {}
|
||||
|
||||
public void ejbActivate() {}
|
||||
|
||||
public void ejbPassivate() {}
|
||||
|
||||
public void ejbRemove() {}
|
||||
|
||||
public void setSessionContext(SessionContext ctx) {}
|
||||
}
|
9
hrmsEjb/wenrgise/ejb/common/facade/CommonFacadeHome.java
Normal file
9
hrmsEjb/wenrgise/ejb/common/facade/CommonFacadeHome.java
Normal file
@@ -0,0 +1,9 @@
|
||||
package wenrgise.ejb.common.facade;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import javax.ejb.CreateException;
|
||||
import javax.ejb.EJBHome;
|
||||
|
||||
public interface CommonFacadeHome extends EJBHome {
|
||||
CommonFacade create() throws CreateException, RemoteException;
|
||||
}
|
17
hrmsEjb/wenrgise/ejb/common/facade/SecurityFacade.java
Normal file
17
hrmsEjb/wenrgise/ejb/common/facade/SecurityFacade.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package wenrgise.ejb.common.facade;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import javax.ejb.EJBObject;
|
||||
import wenrgise.common.bean.EmpInfoBean;
|
||||
import wenrgise.common.exception.EnrgiseApplicationException;
|
||||
import wenrgise.common.exception.EnrgiseSystemException;
|
||||
|
||||
public interface SecurityFacade extends EJBObject {
|
||||
HashMap getDisabledFields(String paramString1, String paramString2, String paramString3, String paramString4) throws RemoteException, EnrgiseSystemException, EnrgiseApplicationException;
|
||||
|
||||
ArrayList addMenuList(EmpInfoBean paramEmpInfoBean) throws RemoteException, EnrgiseSystemException, EnrgiseApplicationException;
|
||||
|
||||
HashMap getAccessInfo(EmpInfoBean paramEmpInfoBean) throws RemoteException, EnrgiseSystemException, EnrgiseApplicationException;
|
||||
}
|
41
hrmsEjb/wenrgise/ejb/common/facade/SecurityFacadeBean.java
Normal file
41
hrmsEjb/wenrgise/ejb/common/facade/SecurityFacadeBean.java
Normal file
@@ -0,0 +1,41 @@
|
||||
package wenrgise.ejb.common.facade;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import javax.ejb.SessionBean;
|
||||
import javax.ejb.SessionContext;
|
||||
import wenrgise.common.bean.EmpInfoBean;
|
||||
import wenrgise.common.exception.EnrgiseApplicationException;
|
||||
import wenrgise.common.exception.EnrgiseSystemException;
|
||||
import wenrgise.ejb.common.business.SecurityBO;
|
||||
|
||||
public class SecurityFacadeBean implements SessionBean {
|
||||
SessionContext ctx;
|
||||
|
||||
public void ejbCreate() {}
|
||||
|
||||
public void ejbActivate() {}
|
||||
|
||||
public void ejbPassivate() {}
|
||||
|
||||
public void ejbRemove() {}
|
||||
|
||||
public void setSessionContext(SessionContext ctx) {
|
||||
this.ctx = ctx;
|
||||
}
|
||||
|
||||
public HashMap getDisabledFields(String sScreenName, String sHdrDtlFlag, String sSreenMode, String sPageStatus) throws EnrgiseSystemException, EnrgiseApplicationException {
|
||||
SecurityBO oSectBO = new SecurityBO();
|
||||
return oSectBO.getDisabledFields(sScreenName, sHdrDtlFlag, sSreenMode, sPageStatus);
|
||||
}
|
||||
|
||||
public ArrayList addMenuList(EmpInfoBean oEmpInfoBean) throws EnrgiseSystemException, EnrgiseApplicationException {
|
||||
SecurityBO oSectBO = new SecurityBO();
|
||||
return oSectBO.addMenuList(oEmpInfoBean);
|
||||
}
|
||||
|
||||
public HashMap getAccessInfo(EmpInfoBean oEmpInfoBean) throws EnrgiseSystemException, EnrgiseApplicationException {
|
||||
SecurityBO oSectBO = new SecurityBO();
|
||||
return oSectBO.getAccessInfo(oEmpInfoBean);
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
package wenrgise.ejb.common.facade;
|
||||
|
||||
import java.rmi.RemoteException;
|
||||
import javax.ejb.CreateException;
|
||||
import javax.ejb.EJBHome;
|
||||
|
||||
public interface SecurityFacadeHome extends EJBHome {
|
||||
SecurityFacade create() throws CreateException, RemoteException;
|
||||
}
|
Reference in New Issue
Block a user