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

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

public class TechnicalServiceBean
extends java.lang.Object

Author:
ofabre - eBM Websourcing

Constructor Summary
TechnicalServiceBean()
           
 
Method Summary
 java.lang.String addComment(java.lang.String user)
          This function adds a new comment to the technical service.
 void addRelatedDoc(org.ow2.opensuit.core.impl.multiparts.IFileUploadPart file)
           
 java.lang.String addServiceDesc()
           
 java.lang.String addServiceDescFromFile()
           
 void clear()
          Clears the endpoint.
 void clearAddWsdl()
          Clears the add wsdl attributes.
 java.lang.String create()
          Creates a new techservice 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.util.List<org.ow2.dragon.api.to.common.KeyedRefTO> getCategories()
           
 java.util.List<org.ow2.dragon.api.to.deployment.CommentTO> getComments()
           
 java.util.List<org.ow2.dragon.api.to.deployment.EndpointTO> getEndpoints()
           
 java.lang.String getFileDescriptionName()
           
 java.lang.String getFileDescriptionURL()
           
 java.lang.String getGlobalRating()
           
 java.lang.String getId()
           
 int getMyRating()
           
 java.lang.String getName()
           
 java.lang.String getNewComment()
           
 java.util.List<org.ow2.dragon.api.to.organization.OrgToTechServiceTO> getOrganizationRoles()
           
 java.util.List<org.ow2.dragon.api.to.organization.PersonToTechServiceTO> getPersonRoles()
           
 java.lang.String getPurpose()
           
 java.util.List<org.ow2.dragon.api.to.metadata.SimpleFileTO> getRelatedDocsTO()
           
 java.util.List<java.lang.String> getSelectedCategories()
           
 java.util.List<org.ow2.dragon.api.to.specification.ServiceSpecificationTO> getSpecsTO()
           
 java.lang.String getTags()
           
 org.ow2.dragon.api.to.deployment.TechnicalServiceTO getTechService()
           
 java.lang.String getWsdlUrl()
           
 boolean isStoreEntities()
           
 void load(javax.servlet.http.HttpServletRequest iRequest)
          Loads a technical service from the request parameter 'id'.
 void loadCategories()
           
 void loadOrgRoles()
           
 void loadPersonRoles()
           
 void loadRelatedDoc(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String relatedDocId, java.lang.String contentType)
           
 java.lang.String loadRelatedDocs()
           
 java.lang.String loadServiceSpecs()
           
 void loadWSDLDesc(javax.servlet.http.HttpServletRequest request, 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 removeRelatedDocument(java.lang.String documentId)
           
 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 techService with changes.
 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 setEndpoints(java.util.List<org.ow2.dragon.api.to.deployment.EndpointTO> endpoints)
           
 void setFileDescriptionName(java.lang.String fileDescriptionName)
           
 void setFileDescriptionURL(java.lang.String fileDescriptionURL)
           
 void setGlobalRating(float globalRating)
           
 void setGlobalRating(java.lang.String globalRating)
           
 void setMyRating(int rating)
           
 void setName(java.lang.String name)
           
 void setNewComment(java.lang.String newComment)
           
 void setPurpose(java.lang.String purpose)
           
 void setRelatedDocsTO(java.util.List<org.ow2.dragon.api.to.metadata.SimpleFileTO> relatedDocsTO)
           
 void setSelectedCategories(java.util.List<java.lang.String> selectedCategories)
           
 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 setTechService(org.ow2.dragon.api.to.deployment.TechnicalServiceTO techService)
           
 void uploadServDesc(org.ow2.opensuit.core.impl.multiparts.IFileUploadPart file)
           
 void validate()
          Validate the endpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TechnicalServiceBean

public TechnicalServiceBean()
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

getWsdlUrl

public java.lang.String getWsdlUrl()
Returns:
the wsdlUrl

load

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

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

addRelatedDoc

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

addServiceDesc

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

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

removeRelatedDocument

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

removeEndpoint

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

removeServSpec

public java.lang.String removeServSpec(java.lang.String documentId)
                                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

loadServiceSpecs

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

loadCategories

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

loadRelatedDocs

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

save

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

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

create

public java.lang.String create()
                        throws org.ow2.opensuit.core.error.IError
Creates a new techservice object with current attributes

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

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.


clearAddWsdl

public void clearAddWsdl()
Clears the add wsdl attributes.


validate

public void validate()
Validate the endpoint


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

loadRelatedDoc

public void loadRelatedDoc(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response,
                           java.lang.String relatedDocId,
                           java.lang.String contentType)
                    throws org.ow2.opensuit.core.error.LocalizedError,
                           java.io.IOException
Throws:
org.ow2.opensuit.core.error.LocalizedError
java.io.IOException

loadWSDLDesc

public void loadWSDLDesc(javax.servlet.http.HttpServletRequest request,
                         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

getId

public java.lang.String getId()

getPersonRoles

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

getOrganizationRoles

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

getName

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

setName

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

getPurpose

public java.lang.String getPurpose()
Returns:
the purpose

setPurpose

public void setPurpose(java.lang.String purpose)
Parameters:
purpose - the purpose to set

getEndpoints

public java.util.List<org.ow2.dragon.api.to.deployment.EndpointTO> getEndpoints()

setEndpoints

public void setEndpoints(java.util.List<org.ow2.dragon.api.to.deployment.EndpointTO> endpoints)

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)

getRelatedDocsTO

public java.util.List<org.ow2.dragon.api.to.metadata.SimpleFileTO> getRelatedDocsTO()

setRelatedDocsTO

public void setRelatedDocsTO(java.util.List<org.ow2.dragon.api.to.metadata.SimpleFileTO> relatedDocsTO)

getTechService

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

setTechService

public void setTechService(org.ow2.dragon.api.to.deployment.TechnicalServiceTO techService)

getSelectedCategories

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

setSelectedCategories

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

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)

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.