org.ow2.dragon.ui.uibeans.deployment
Class EndpointBean

java.lang.Object
  extended by org.ow2.dragon.ui.uibeans.deployment.EndpointBean

public class EndpointBean
extends java.lang.Object

Author:
ofabre - eBM Websourcing

Constructor Summary
EndpointBean()
           
 
Method Summary
 java.lang.String addComment(java.lang.String user)
          This function adds a new comment to the technical service.
 java.lang.String addServiceDesc()
           
 java.lang.String addServiceDescFromFile()
           
 java.lang.String authorizeSLACreation(java.lang.String type)
           
 void clear()
          Clears the endpoint.
 void clearAddWsdl()
          Clears the add wsdl attributes.
 java.lang.String create(javax.servlet.http.HttpServletRequest request)
          Creates a new endpoint for the current service object with current attributes
 java.lang.String delete()
          Deletes the current endpoint from the database
 java.lang.String deleteRole(javax.servlet.http.HttpServletRequest request)
          Delete a role of party
 java.lang.String getBindingId()
           
 java.util.List<org.ow2.dragon.api.to.common.KeyedRefTO> getCategories()
           
 java.util.List<org.ow2.dragon.api.to.deployment.CommentTO> getComments()
           
 org.ow2.dragon.api.to.deployment.EndpointTO getEndpoint()
           
 java.util.List<PartyBean> getEndpointProviders()
           
 java.util.List<java.lang.String> getEndpointProvidersString()
           
 java.lang.String getFileDescriptionName()
           
 java.lang.String getFileDescriptionURL()
           
 java.lang.String getGlobalRating()
           
 org.ow2.dragon.api.to.technology.ExecutionEnvironmentTO getHostExecEnv()
           
 org.ow2.dragon.api.to.technology.ProcessorTO getHostProcessor()
           
 java.lang.String getId()
           
 int getMyRating()
           
 java.lang.String getName()
           
 java.lang.String getNetworkAddress()
           
 java.lang.String getNewComment()
           
 java.util.List<org.ow2.dragon.api.to.deployment.BindingOperationTO> getOperations()
           
 java.util.List<org.ow2.dragon.api.to.organization.OrgToEndpointTO> getOrganizationRoles()
           
 java.util.List<org.ow2.dragon.api.to.organization.PersonToEndpointTO> getPersonRoles()
           
 java.lang.String getProtocol()
           
 java.util.List<java.lang.String> getSelectedCategories()
           
 org.ow2.dragon.api.to.deployment.TechnicalServiceTO getService()
           
 java.util.List<org.ow2.dragon.api.to.specification.ServiceSpecificationTO> getSpecsTO()
           
 java.lang.String getTags()
           
 boolean isStoreEntities()
           
 void load(javax.servlet.http.HttpServletRequest iRequest)
          Loads an endpoint from the request parameter 'id'.
 void loadCategories()
           
 void loadOrgRoles()
           
 void loadPersonRoles()
           
 java.lang.String loadServiceSpecs()
           
 void loadWSDLDesc(javax.servlet.http.HttpServletResponse response, java.lang.String serviceSpecId)
           
 java.lang.String removeCategories()
           
 java.lang.String removeComment(javax.servlet.http.HttpServletRequest request)
          remove a comment from the technical service.
 java.lang.String removeEndpoint(java.lang.String endpointId)
           
 java.lang.String removeServSpec(java.lang.String documentId)
           
 void reset()
          Resets changes made to the current endpoint attributes.
 java.lang.String save()
          Saves the current endpoint with changes.
 void setBindingId(java.lang.String bindingId)
           
 void setCategories(java.util.List<org.ow2.dragon.api.to.common.KeyedRefTO> categories)
           
 void setComments(java.util.List<org.ow2.dragon.api.to.deployment.CommentTO> comments)
           
 void setEndpoint(org.ow2.dragon.api.to.deployment.EndpointTO endpoint)
           
 void setFileDescriptionName(java.lang.String fileDescriptionName)
           
 void setFileDescriptionURL(java.lang.String fileDescriptionURL)
           
 void setGlobalRating(float globalRating)
           
 void setGlobalRating(java.lang.String globalRating)
           
 void setHostExecEnv(org.ow2.dragon.api.to.technology.ExecutionEnvironmentTO hostExecEnv)
           
 void setHostProcessor(org.ow2.dragon.api.to.technology.ProcessorTO hostProcessor)
           
 void setMyRating(int rating)
           
 void setName(java.lang.String name)
           
 void setNetworkAddress(java.lang.String networkAddress)
           
 void setNewComment(java.lang.String newComment)
           
 void setOperations(java.util.List<org.ow2.dragon.api.to.deployment.BindingOperationTO> operations)
           
 void setOrganizationRoles(java.util.List<org.ow2.dragon.api.to.organization.OrgToEndpointTO> organizationRoles)
           
 void setPersonRoles(java.util.List<org.ow2.dragon.api.to.organization.PersonToEndpointTO> personRoles)
           
 void setSelectedCategories(java.util.List<java.lang.String> selectedCategories)
           
 void setService(org.ow2.dragon.api.to.deployment.TechnicalServiceTO service)
           
 void setSpecsTO(java.util.List<org.ow2.dragon.api.to.specification.ServiceSpecificationTO> specsTO)
           
 void setStoreEntities(boolean storeEntities)
           
 void setTags(java.util.Set<java.lang.String> tags)
           
 void setTags(java.lang.String tags)
           
 void uploadServDesc(org.ow2.opensuit.core.impl.multiparts.IFileUploadPart file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointBean

public EndpointBean()
Method Detail

setMyRating

public void setMyRating(int rating)
Parameters:
rating - the user rating to set for this service.

getMyRating

public int getMyRating()
Returns:
the user rating of this service.

setGlobalRating

public void setGlobalRating(float globalRating)
Parameters:
globalRating - the global rating to set for this service.

setGlobalRating

public void setGlobalRating(java.lang.String globalRating)
Parameters:
globalRating - a String representing the global rating to set.

getGlobalRating

public java.lang.String getGlobalRating()
Returns:
the global rating in a String format.

setTags

public void setTags(java.lang.String tags)
Parameters:
tags - a String representing the new tags to add ("tag1, tag2...")

setTags

public void setTags(java.util.Set<java.lang.String> tags)
Parameters:
tags - tags to set.

getTags

public java.lang.String getTags()
Returns:
technical service tags in a string format.

getNewComment

public java.lang.String getNewComment()
Returns:
the new comment to add.

setNewComment

public void setNewComment(java.lang.String newComment)
Parameters:
newComment - the new comment to set.

getComments

public java.util.List<org.ow2.dragon.api.to.deployment.CommentTO> getComments()
Returns:
the list of this technical service comments

setComments

public void setComments(java.util.List<org.ow2.dragon.api.to.deployment.CommentTO> comments)
Parameters:
the - list of comments to set to this service.

addComment

public java.lang.String addComment(java.lang.String user)
                            throws org.ow2.opensuit.core.error.LocalizedError
This function adds a new comment to the technical service.

Parameters:
user -
Returns:
"success"
Throws:
org.ow2.opensuit.core.error.LocalizedError

removeComment

public java.lang.String removeComment(javax.servlet.http.HttpServletRequest request)
                               throws org.ow2.opensuit.core.error.LocalizedError
remove a comment from the technical service.

Parameters:
request - contains the id of the comment to remove.
Returns:
"success"
Throws:
org.ow2.opensuit.core.error.LocalizedError

create

public java.lang.String create(javax.servlet.http.HttpServletRequest request)
                        throws org.ow2.opensuit.core.error.IError
Creates a new endpoint for the current service object with current attributes

Throws:
org.ow2.opensuit.core.error.IError

removeEndpoint

public java.lang.String removeEndpoint(java.lang.String endpointId)
                                throws org.ow2.opensuit.core.error.IError
Throws:
org.ow2.opensuit.core.error.IError

load

public void load(javax.servlet.http.HttpServletRequest iRequest)
          throws org.ow2.opensuit.core.error.LocalizedError
Loads an endpoint from the request parameter 'id'.

Throws:
org.ow2.opensuit.core.error.LocalizedError

loadServiceSpecs

public java.lang.String loadServiceSpecs()
                                  throws org.ow2.opensuit.core.error.LocalizedError
Throws:
org.ow2.opensuit.core.error.LocalizedError

loadWSDLDesc

public void loadWSDLDesc(javax.servlet.http.HttpServletResponse response,
                         java.lang.String serviceSpecId)
                  throws org.ow2.opensuit.core.error.LocalizedError,
                         java.io.IOException
Throws:
org.ow2.opensuit.core.error.LocalizedError
java.io.IOException

save

public java.lang.String save()
                      throws org.ow2.opensuit.core.error.LocalizedError
Saves the current endpoint with changes.

Throws:
org.ow2.opensuit.core.error.LocalizedError

delete

public java.lang.String delete()
                        throws org.ow2.opensuit.core.error.LocalizedError
Deletes the current endpoint from the database

Throws:
org.ow2.opensuit.core.error.LocalizedError

reset

public void reset()
Resets changes made to the current endpoint attributes.


clear

public void clear()
Clears the endpoint.


getEndpointProvidersString

public java.util.List<java.lang.String> getEndpointProvidersString()
                                                            throws org.ow2.dragon.api.service.organization.OrganizationException,
                                                                   DragonDelegateException,
                                                                   org.ow2.opensuit.core.error.LocalizedError
Throws:
org.ow2.dragon.api.service.organization.OrganizationException
DragonDelegateException
org.ow2.opensuit.core.error.LocalizedError

getEndpointProviders

public java.util.List<PartyBean> getEndpointProviders()
                                               throws org.ow2.dragon.api.service.organization.OrganizationException,
                                                      DragonDelegateException,
                                                      org.ow2.opensuit.core.error.LocalizedError
Throws:
org.ow2.dragon.api.service.organization.OrganizationException
DragonDelegateException
org.ow2.opensuit.core.error.LocalizedError

loadCategories

public void loadCategories()
                    throws org.ow2.opensuit.core.error.LocalizedError
Throws:
org.ow2.opensuit.core.error.LocalizedError

removeCategories

public java.lang.String removeCategories()
                                  throws org.ow2.opensuit.core.error.LocalizedError
Throws:
org.ow2.opensuit.core.error.LocalizedError

authorizeSLACreation

public java.lang.String authorizeSLACreation(java.lang.String type)

loadPersonRoles

public void loadPersonRoles()
                     throws org.ow2.dragon.api.service.organization.OrganizationException,
                            DragonDelegateException
Throws:
org.ow2.dragon.api.service.organization.OrganizationException
DragonDelegateException

loadOrgRoles

public void loadOrgRoles()
                  throws org.ow2.dragon.api.service.organization.OrganizationException,
                         DragonDelegateException
Throws:
org.ow2.dragon.api.service.organization.OrganizationException
DragonDelegateException

deleteRole

public java.lang.String deleteRole(javax.servlet.http.HttpServletRequest request)
                            throws org.ow2.opensuit.core.error.LocalizedError
Delete a role of party

Returns:
Throws:
org.ow2.opensuit.core.error.LocalizedError

addServiceDesc

public java.lang.String addServiceDesc()
                                throws org.ow2.opensuit.core.error.LocalizedError
Throws:
org.ow2.opensuit.core.error.LocalizedError

clearAddWsdl

public void clearAddWsdl()
Clears the add wsdl attributes.


uploadServDesc

public void uploadServDesc(org.ow2.opensuit.core.impl.multiparts.IFileUploadPart file)
                    throws org.ow2.opensuit.core.error.LocalizedError
Throws:
org.ow2.opensuit.core.error.LocalizedError

addServiceDescFromFile

public java.lang.String addServiceDescFromFile()
                                        throws org.ow2.opensuit.core.error.LocalizedError
Throws:
org.ow2.opensuit.core.error.LocalizedError

removeServSpec

public java.lang.String removeServSpec(java.lang.String documentId)
                                throws org.ow2.opensuit.core.error.LocalizedError
Throws:
org.ow2.opensuit.core.error.LocalizedError

getId

public java.lang.String getId()

getEndpoint

public org.ow2.dragon.api.to.deployment.EndpointTO getEndpoint()
Returns:
the endpoint

setEndpoint

public void setEndpoint(org.ow2.dragon.api.to.deployment.EndpointTO endpoint)
Parameters:
endpoint - the endpoint to set

getBindingId

public java.lang.String getBindingId()
Returns:
the bindingId

setBindingId

public void setBindingId(java.lang.String bindingId)
Parameters:
bindingId - the bindingId to set

getName

public java.lang.String getName()
Returns:
the name

setName

public void setName(java.lang.String name)
Parameters:
name - the name to set

getNetworkAddress

public java.lang.String getNetworkAddress()
Returns:
the networkAddress

setNetworkAddress

public void setNetworkAddress(java.lang.String networkAddress)
Parameters:
networkAddress - the networkAddress to set

getProtocol

public java.lang.String getProtocol()
Returns:
the protocol

getPersonRoles

public java.util.List<org.ow2.dragon.api.to.organization.PersonToEndpointTO> getPersonRoles()

setPersonRoles

public void setPersonRoles(java.util.List<org.ow2.dragon.api.to.organization.PersonToEndpointTO> personRoles)

getOrganizationRoles

public java.util.List<org.ow2.dragon.api.to.organization.OrgToEndpointTO> getOrganizationRoles()

setOrganizationRoles

public void setOrganizationRoles(java.util.List<org.ow2.dragon.api.to.organization.OrgToEndpointTO> organizationRoles)

getOperations

public java.util.List<org.ow2.dragon.api.to.deployment.BindingOperationTO> getOperations()

setOperations

public void setOperations(java.util.List<org.ow2.dragon.api.to.deployment.BindingOperationTO> operations)

getSpecsTO

public java.util.List<org.ow2.dragon.api.to.specification.ServiceSpecificationTO> getSpecsTO()

setSpecsTO

public void setSpecsTO(java.util.List<org.ow2.dragon.api.to.specification.ServiceSpecificationTO> specsTO)

getHostProcessor

public org.ow2.dragon.api.to.technology.ProcessorTO getHostProcessor()

setHostProcessor

public void setHostProcessor(org.ow2.dragon.api.to.technology.ProcessorTO hostProcessor)

getHostExecEnv

public org.ow2.dragon.api.to.technology.ExecutionEnvironmentTO getHostExecEnv()

setHostExecEnv

public void setHostExecEnv(org.ow2.dragon.api.to.technology.ExecutionEnvironmentTO hostExecEnv)

getService

public org.ow2.dragon.api.to.deployment.TechnicalServiceTO getService()

setService

public void setService(org.ow2.dragon.api.to.deployment.TechnicalServiceTO service)

getCategories

public java.util.List<org.ow2.dragon.api.to.common.KeyedRefTO> getCategories()

setCategories

public void setCategories(java.util.List<org.ow2.dragon.api.to.common.KeyedRefTO> categories)

getSelectedCategories

public java.util.List<java.lang.String> getSelectedCategories()

setSelectedCategories

public void setSelectedCategories(java.util.List<java.lang.String> selectedCategories)

getFileDescriptionURL

public java.lang.String getFileDescriptionURL()
Returns:
the fileDescriptionURL

setFileDescriptionURL

public void setFileDescriptionURL(java.lang.String fileDescriptionURL)
Parameters:
fileDescriptionURL - the fileDescriptionURL to set

getFileDescriptionName

public java.lang.String getFileDescriptionName()
Returns:
the fileDescriptionName

setFileDescriptionName

public void setFileDescriptionName(java.lang.String fileDescriptionName)
Parameters:
fileDescriptionName - the fileDescriptionName to set

isStoreEntities

public boolean isStoreEntities()
Returns:
the storeEntities

setStoreEntities

public void setStoreEntities(boolean storeEntities)
Parameters:
storeEntities - the storeEntities to set


Copyright © 2008-2010 eBMWebsourcing. All Rights Reserved.