Permalink
Browse files

[ABICLOUDPREMIUM-3662] log removed from server

  • Loading branch information...
1 parent b5dd6ed commit e71caac09487406083504665da37a9bc074d881c @zmalik zmalik committed Apr 25, 2012
@@ -1,141 +0,0 @@
-/**
- * Abiquo community edition
- * cloud management application for hybrid clouds
- * Copyright (C) 2008-2010 - Abiquo Holdings S.L.
- *
- * This application is free software; you can redistribute it and/or
- * modify it under the terms of the GNU LESSER GENERAL PUBLIC
- * LICENSE as published by the Free Software Foundation under
- * version 3 of the License
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * LESSER GENERAL PUBLIC LICENSE v.3 for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- */
-
-package com.abiquo.abiserver.business.hibernate.pojohb.virtualappliance;
-
-// Generated 16-oct-2008 16:52:14 by Hibernate Tools 3.2.1.GA
-
-import java.util.Date;
-
-import com.abiquo.abiserver.business.hibernate.pojohb.IPojoHB;
-import com.abiquo.abiserver.pojo.virtualappliance.Log;
-
-/**
- * Nodes generated by hbm2java
- */
-public class LogHB implements java.io.Serializable, IPojoHB<Log>
-{
-
- /**
- * The serial UID version
- */
- private static final long serialVersionUID = 2371661192503356803L;
-
- private static final int DESCRIPTION_MAX_SIZE = 250;
-
- /**
- * The log identificator
- */
- private int idLog;
-
- /**
- * The ID of the Virtual Appliance to which this log belongs We do not use the entire Virtual
- * Appliance object here, since a VirtualAppliance object already contains a list of logs
- */
- private int idVirtualAppliance;
-
- /**
- * Log description
- */
- private String description;
-
- /**
- * Log date
- */
- private Date logDate;
-
- /**
- * Flag that indicates if this LogHB is marked as deleted 0 -> not deleted 1 -> deleted
- */
- private int deleted = 0;
-
- public int getIdLog()
- {
- return idLog;
- }
-
- public void setIdLog(int idLog)
- {
- this.idLog = idLog;
- }
-
- public int getIdVirtualAppliance()
- {
- return idVirtualAppliance;
- }
-
- public void setIdVirtualAppliance(int idVirtualAppliance)
- {
- this.idVirtualAppliance = idVirtualAppliance;
- }
-
- public String getDescription()
- {
- return description;
- }
-
- public void setDescription(String description)
- {
- // Truncate the length of the "description" to a maximum of the number of characters as
- // specified by DESCRIPTION_MAX_SIZE
- if (description.length() > DESCRIPTION_MAX_SIZE)
- {
- description = description.substring(0, DESCRIPTION_MAX_SIZE);
- }
- this.description = description;
- }
-
- public Date getLogDate()
- {
- return logDate;
- }
-
- public void setLogDate(Date logDate)
- {
- this.logDate = logDate;
- }
-
- public int getDeleted()
- {
- return deleted;
- }
-
- public void setDeleted(int deleted)
- {
- this.deleted = deleted;
- }
-
- /**
- * This method transforms to basic pojo object.
- */
- public Log toPojo()
- {
- Log log = new Log();
- log.setIdLog(idLog);
- log.setDescription(description);
- log.setIdVirtualAppliance(idVirtualAppliance);
- log.setLogDate(logDate);
- log.setDeleted(deleted);
-
- return log;
- }
-
-}
@@ -31,7 +31,6 @@
import com.abiquo.abiserver.business.hibernate.pojohb.infrastructure.StateEnum;
import com.abiquo.abiserver.business.hibernate.pojohb.user.EnterpriseHB;
import com.abiquo.abiserver.pojo.infrastructure.State;
-import com.abiquo.abiserver.pojo.virtualappliance.Log;
import com.abiquo.abiserver.pojo.virtualappliance.Node;
import com.abiquo.abiserver.pojo.virtualappliance.VirtualAppliance;
@@ -74,13 +73,6 @@
*/
private EnterpriseHB enterpriseHB;
- /**
- * LogHB list, with the log entries for this Virtual Appliance
- *
- * @return
- */
- private Set<LogHB> logsHB;
-
public Integer getIdVirtualApp()
{
return idVirtualApp;
@@ -197,16 +189,6 @@ public void setNodeConnections(final String nodeConnections)
this.nodeConnections = nodeConnections;
}
- public Set<LogHB> getLogsHB()
- {
- return logsHB;
- }
-
- public void setLogsHB(final Set<LogHB> logsHB)
- {
- this.logsHB = logsHB;
- }
-
/**
* This method transform the hibernate pojo to normal pojo object
*/
@@ -230,21 +212,6 @@ public VirtualAppliance toPojo()
virtualAppliance.setEnterprise(enterpriseHB.toPojo());
}
- if (logsHB != null)
- {
- ArrayList<Log> logs = new ArrayList<Log>();
- for (LogHB logHB : logsHB)
- {
- logs.add(logHB.toPojo());
- }
-
- virtualAppliance.setLogs(logs);
- }
- else
- {
- virtualAppliance.setLogs(null);
- }
-
if (nodesHB != null)
{
ArrayList<Node> nodes = new ArrayList<Node>();
@@ -42,7 +42,6 @@
import com.abiquo.abiserver.pojo.result.DataResult;
import com.abiquo.abiserver.pojo.result.ListRequest;
import com.abiquo.abiserver.pojo.user.Enterprise;
-import com.abiquo.abiserver.pojo.virtualappliance.Log;
import com.abiquo.abiserver.pojo.virtualappliance.Node;
import com.abiquo.abiserver.pojo.virtualappliance.VirtualAppliance;
import com.abiquo.abiserver.pojo.virtualappliance.VirtualDataCenter;
@@ -131,20 +130,6 @@ public abstract BasicResult editVirtualDataCenter(final UserSession userSession,
public abstract DataResult<Collection<VirtualAppliance>> getVirtualAppliancesByEnterpriseAndDatacenter(
UserSession userSession, final Enterprise enterprise, final DataCenter datacenter);
- /**
- * Returns the a list with all Logs entries for a Virtual Appliance Useful to frequently update
- * the logs for a VirtualAppliance, without having to return the entire Virtual Appliance
- *
- * @param session
- * @param virtualAppliance The VirtualAppliance which we want to return the list of logs
- * @return A DataResult object, containing an ArrayList<Log> with the list of logs for the
- * virtualAppliance
- */
- public abstract DataResult<ArrayList<Log>> getVirtualApplianceUpdatedLogs(
- final VirtualAppliance virtualAppliance);
-
- public abstract BasicResult markLogAsDeleted(final Log log);
-
public DataResult<VirtualDatacentersListResult> getVirtualDataCentersByEnterprise(
final UserSession userSession, final Enterprise enterprise, final ListRequest listRequest);
@@ -263,7 +248,4 @@ public abstract VirtualappHB getVirtualAppliance(final Integer virtualApplianceI
*/
public abstract void afterCreatingNode(final Session session,
final VirtualAppliance virtualAppliance, final NodeHB newNode);
-
- public abstract DataResult<Collection<Log>> getVirtualApplianceLogs(UserSession userSession,
- VirtualAppliance virtualAppliance);
}
Oops, something went wrong.

0 comments on commit e71caac

Please sign in to comment.