Examples of CvAtticHome


Examples of com.centraview.cvattic.CvAtticHome

    */
  public ArrayList deleteElement(int individualID, String recordID[])throws CommunicationException,NamingException,RemoteException
  {
    ArrayList resultDeleteLog = new ArrayList();

    CvAtticHome cvAtticHome =(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");
    try
    {
      //call to EJB server
      CvAttic remote=(CvAttic)cvAtticHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
View Full Code Here

Examples of com.centraview.cvattic.CvAtticHome

   * @param   key 
   */
  public void  deleteElement( int indvID, String key ) throws CommunicationException,NamingException
  {
    int elementID = Integer.parseInt(key);
    CvAtticHome cvAtticHome =(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");
    try
    {
      CvAttic remote=(CvAttic)cvAtticHome.create();
      remote.setDataSource(this.dataSource);
      remote.delete(indvID,elementID,Constants.CV_ATTIC);
    }
    catch(Exception e)
    {
View Full Code Here

Examples of com.centraview.cvattic.CvAtticHome

  public void  restoreElement( String key )
  {
    int elementID = Integer.parseInt(key);

    try {
      CvAtticHome home=(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");//call to FaqEJB
      CvAttic admin=(CvAttic)home.create();
      admin.setDataSource(this.dataSource);

      admin.restore(1,elementID,Constants.CV_ATTIC);
      // TODO the restore method needs to take the invidualID and pass it on, fubar user-rights
    }
View Full Code Here

Examples of com.centraview.cvattic.CvAtticHome

    int individualId = ((UserObject)session.getAttribute("userobject")).getIndividualID();
    ArrayList deleteLog = new ArrayList();
    String rowId[] = request.getParameterValues("rowId");
   
  CvAtticHome cvAtticHome=(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");
    try
    {
      CvAttic remote=(CvAttic)cvAtticHome.create();
    remote.setDataSource(dataSource);
      for (int i=0; i<rowId.length; i++)
      {
        if(rowId[i] != null && !rowId[i].equals(""))
        {         
View Full Code Here

Examples of com.centraview.cvattic.CvAtticHome

   * @param   key 
   */
  public void  deleteElement( int indvID, String key ) throws CommunicationException,NamingException
  {
    int elementID = Integer.parseInt(key);
    CvAtticHome cvAtticHome=(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");
    try
    {
      CvAttic remote=(CvAttic)cvAtticHome.create();
      remote.setDataSource(this.dataSource);
      remote.delete(indvID,elementID,Constants.CV_GARBAGE);
    }
    catch(Exception e) {
      logger.error("[Exception] GarbageList.deleteElement( int indvID, String key )", e);
View Full Code Here

Examples of com.centraview.cvattic.CvAtticHome

    * @return resultDeleteLog A Collection of the Error Message while deleting a particular record.
    */
  public ArrayList deleteElement(int individualID, String recordID[]) throws CommunicationException,NamingException,RemoteException
  {
    ArrayList resultDeleteLog = new ArrayList();
    CvAtticHome cvAtticHome=(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");
    try
    {
      //call to EJB server
      CvAttic remote=(CvAttic)cvAtticHome.create();
      remote.setDataSource(this.dataSource);
      for (int i=0; i<recordID.length; i++)
      {
        if(recordID[i] != null && !recordID[i].equals("")){
          int elementID = Integer.parseInt(recordID[i]);
View Full Code Here

Examples of com.centraview.cvattic.CvAtticHome

  {
    int elementID = Integer.parseInt(key);

    try
    {
      CvAtticHome home=(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");//call to FaqEJB
      CvAttic admin=(CvAttic)home.create();
      admin.setDataSource(this.dataSource);
      admin.restore(1,elementID,Constants.CV_GARBAGE);
      //TODO fix user rights on restore!
    }
    catch(Exception e)
View Full Code Here

Examples of com.centraview.cvattic.CvAtticHome

    System.out.println( "Item moved To Attic is "+ key );
    int elementID = Integer.parseInt(key);

    try
    {
      CvAtticHome home=(CvAtticHome)CVUtility.getHomeObject("com.centraview.cvattic.CvAtticHome","CvAttic");//call to FaqEJB
      CvAttic admin=(CvAttic)home.create();
      admin.setDataSource(this.dataSource);

      admin.moveToAttic(1,elementID);
      //TODO fix user rights on movetoattic.
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.