org.infoglue.cms.controllers.kernel.impl.simple
Class ServerNodeController

java.lang.Object
  extended by org.infoglue.cms.controllers.kernel.impl.simple.BaseController
      extended by org.infoglue.cms.controllers.kernel.impl.simple.ServerNodeController

public class ServerNodeController
extends BaseController


Constructor Summary
ServerNodeController()
           
 
Method Summary
 ServerNodeVO create(ServerNodeVO vo)
          This method creates a serverNode
 void delete(ServerNodeVO serverNodeVO, InfoGluePrincipal infoGluePrincipal)
           
 java.lang.String getAllowedAdminIP()
           
 java.util.List getAllowedAdminIPList()
           
static ServerNodeController getController()
          Factory method
 boolean getIsIPAllowed(javax.servlet.http.HttpServletRequest request)
          This method return if the caller has access to the semi admin services.
 BaseEntityVO getNewVO()
          This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.
 ServerNode getServerNodeWithId(java.lang.Integer id, org.exolab.castor.jdo.Database db)
           
 ServerNode getServerNodeWithName(java.lang.String name, org.exolab.castor.jdo.Database db)
          Returns the ServerNode with the given name fetched within a given transaction.
 java.util.List getServerNodeVOList()
          This method can be used by actions and use-case-controllers that only need to have simple access to the functionality.
 ServerNodeVO getServerNodeVOWithId(java.lang.Integer serverNodeId)
           
 ServerNodeVO getServerNodeVOWithName(java.lang.String name)
          Returns the ServerNodeVO with the given name.
 void initialize()
           
 void setAllowedAdminIP(java.lang.String allowedAdminIP)
           
 ServerNodeVO update(ServerNodeVO vo)
           
 
Methods inherited from class org.infoglue.cms.controllers.kernel.impl.simple.BaseController
beginTransaction, beginTransaction, closeDatabase, commitTransaction, createEntity, createEntity, createQuery, deleteEntity, deleteEntity, deleteEntity, deleteEntity, executeQuery, executeQuery, executeQuery, executeQuery, getAllObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getAllVOObjects, getObjectWithId, getObjectWithId, getObjectWithIdAsReadOnly, getVOWithId, getVOWithId, getVOWithId, getVOWithId, intercept, intercept, rollbackTransaction, toModifiableVOList, toVOList, updateEntity, updateEntity, updateEntity, updateEntity, validateEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerNodeController

public ServerNodeController()
Method Detail

getController

public static ServerNodeController getController()
Factory method


initialize

public void initialize()

create

public ServerNodeVO create(ServerNodeVO vo)
                    throws ConstraintException,
                           SystemException
This method creates a serverNode

Parameters:
vo -
Returns:
Throws:
ConstraintException
SystemException

update

public ServerNodeVO update(ServerNodeVO vo)
                    throws ConstraintException,
                           SystemException
Throws:
ConstraintException
SystemException

getServerNodeWithId

public ServerNode getServerNodeWithId(java.lang.Integer id,
                                      org.exolab.castor.jdo.Database db)
                               throws SystemException,
                                      Bug
Throws:
SystemException
Bug

getServerNodeVOWithId

public ServerNodeVO getServerNodeVOWithId(java.lang.Integer serverNodeId)
                                   throws ConstraintException,
                                          SystemException,
                                          Bug
Throws:
ConstraintException
SystemException
Bug

getServerNodeVOWithName

public ServerNodeVO getServerNodeVOWithName(java.lang.String name)
                                     throws SystemException,
                                            Bug
Returns the ServerNodeVO with the given name.

Parameters:
name -
Returns:
Throws:
SystemException
Bug

getServerNodeWithName

public ServerNode getServerNodeWithName(java.lang.String name,
                                        org.exolab.castor.jdo.Database db)
                                 throws SystemException,
                                        Bug
Returns the ServerNode with the given name fetched within a given transaction.

Parameters:
name -
db -
Returns:
Throws:
SystemException
Bug

getServerNodeVOList

public java.util.List getServerNodeVOList()
                                   throws SystemException,
                                          Bug
This method can be used by actions and use-case-controllers that only need to have simple access to the functionality. They don't get the transaction-safety but probably just wants to show the info.

Throws:
SystemException
Bug

delete

public void delete(ServerNodeVO serverNodeVO,
                   InfoGluePrincipal infoGluePrincipal)
            throws ConstraintException,
                   SystemException
Throws:
ConstraintException
SystemException

getAllowedAdminIPList

public java.util.List getAllowedAdminIPList()

getIsIPAllowed

public boolean getIsIPAllowed(javax.servlet.http.HttpServletRequest request)
This method return if the caller has access to the semi admin services.

Parameters:
request -
Returns:

getAllowedAdminIP

public java.lang.String getAllowedAdminIP()

setAllowedAdminIP

public void setAllowedAdminIP(java.lang.String allowedAdminIP)

getNewVO

public BaseEntityVO getNewVO()
This is a method that gives the user back an newly initialized ValueObject for this entity that the controller is handling.

Specified by:
getNewVO in class BaseController


Copyright © 2005 InfoGlue.org All Rights Reserved.