Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 90 → Rev 104

/impl/conf/language/MessageResourcesCommon.properties
New file
0,0 → 1,28
################################################################################
#
# ANNOUNCEMENTS MESSAGE RESOURCES
#
################################################################################
search=Pesquisar
search.form=Formulário de Pesquisa
search.results=Resultados da Pesquisa ({0})
search.next=Próxima Página
search.previous=Página Anterior
search.see.more=ver mais
search.type.phrase=Frase Exacta
search.type.any=Algumas Palavras
search.type.all=Todas as Palavras
search.pages=Páginas
 
search.pages.header=Geral
search.pages.found.results=Resultados
search.pages.for.about=de aproximadamente
 
search.no.results=Lamentamos mas não foram encontrados quaisquer resultados para a busca
search.no.results.suggest=Sugestões
search.no.results.suggest.1=Será que está a escolher mal as palavras?
search.no.results.suggest.2=Será que deu um erro ortográfico?
search.no.results.suggest.3=Será que está a usar demasiadas palavras chave?
 
result.previous=Página Anterior
result.next=Próxima página
/impl/conf/language/MessageResources.properties
91,6 → 91,7
 
#palavras comuns
at=a
loading=Carregando
#Menus
site.title=Escola Superior de Tecnologia e Gestão
administration=Administração
221,6 → 222,7
submit=Entrar
confirm=Confirmar
add=Adicionar
remove=Remover
yes=Sim
no=Não
 
/impl/conf/WEB-INF/struts/struts-blog.xml
1,8 → 1,8
<?xml version="1.0" encoding="UTF-8"?>
 
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<!--<!DOCTYPE struts-config PUBLIC-->
<!--"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"-->
<!--"http://struts.apache.org/dtds/struts-config_1_3.dtd">-->
 
<struts-config>
 
/impl/conf/WEB-INF/struts/struts-courseunits.xml
1,8 → 1,8
<?xml version="1.0" encoding="UTF-8"?>
 
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<!--<!DOCTYPE struts-config PUBLIC-->
<!--"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"-->
<!--"http://struts.apache.org/dtds/struts-config_1_3.dtd">-->
 
<struts-config>
 
/impl/conf/WEB-INF/struts/struts-default.xml
1,8 → 1,8
<?xml version="1.0" encoding="UTF-8"?>
 
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<!--<!DOCTYPE struts-config PUBLIC-->
<!--"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"-->
<!--"http://struts.apache.org/dtds/struts-config_1_3.dtd">-->
 
<struts-config>
 
142,7 → 142,8
/WEB-INF/struts/tiles-processworkflow.xml,
/WEB-INF/struts/tiles-searchusers.xml,
/WEB-INF/struts/tiles-urlstat.xml,
/WEB-INF/struts/tiles-blog.xml"/>
/WEB-INF/struts/tiles-blog.xml,
/WEB-INF/struts/tiles-commons.xml"/>
</plug-in>
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
/impl/conf/WEB-INF/struts/tiles-processworkflow.xml
1,8 → 1,8
<?xml version="1.0" encoding="UTF-8" ?>
 
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://struts.apache.org/dtds/tiles-config_1_1.dtd">
<!--<!DOCTYPE tiles-definitions PUBLIC-->
<!--"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"-->
<!--"http://struts.apache.org/dtds/tiles-config_1_1.dtd">-->
 
<tiles-definitions>
/impl/conf/WEB-INF/struts/tiles-commons.xml
New file
0,0 → 1,31
<?xml version="1.0" encoding="UTF-8" ?>
 
<!--<!DOCTYPE tiles-definitions PUBLIC-->
<!--"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"-->
<!--"http://struts.apache.org/dtds/tiles-config_1_1.dtd">-->
 
<tiles-definitions>
 
<definition name="page.search.form" extends="base.layout1">
<put name="title" value="Search Results"/>
<put name="topnav" value="/public/search/topnavSearchForm.jsp"/>
<put name="body" value="/public/search/searchForm.jsp"/>
</definition>
 
<definition name="page.search.results" extends="base.layout1">
<put name="title" value="Search Results"/>
<put name="topnav" value="/public/search/topnavSearchResults.jsp"/>
<put name="body" value="/public/search/searchResults.jsp"/>
</definition>
<definition name="page.search.noresults" extends="base.layout1">
<put name="title" value="0 Results Found"/>
<put name="topnav" value="/public/search/topnavSearchResults.jsp"/>
<put name="body" value="/public/search/noresults.jsp"/>
</definition>
<definition name="page.search.module" extends="base.empty">
<put name="body" value="/public/search/searchResultsModule.jsp"/>
</definition>
 
 
</tiles-definitions>
/impl/conf/WEB-INF/struts/tiles-announcements.xml
1,8 → 1,8
<?xml version="1.0" encoding="UTF-8" ?>
 
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://struts.apache.org/dtds/tiles-config_1_1.dtd">
<!--<!DOCTYPE tiles-definitions PUBLIC-->
<!--"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"-->
<!--"http://struts.apache.org/dtds/tiles-config_1_1.dtd">-->
 
 
<tiles-definitions>
/impl/conf/WEB-INF/struts/struts-urlstat.xml
1,8 → 1,8
<?xml version="1.0" encoding="UTF-8"?>
 
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<!--<!DOCTYPE struts-config PUBLIC-->
<!--"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"-->
<!--"http://struts.apache.org/dtds/struts-config_1_3.dtd">-->
 
<struts-config>
 
/impl/conf/WEB-INF/struts/tiles-blog.xml
1,8 → 1,8
<?xml version="1.0" encoding="UTF-8" ?>
 
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://struts.apache.org/dtds/tiles-config_1_1.dtd">
<!--<!DOCTYPE tiles-definitions PUBLIC-->
<!--"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"-->
<!--"http://struts.apache.org/dtds/tiles-config_1_1.dtd">-->
 
<tiles-definitions>
/impl/conf/WEB-INF/struts/tiles-courseunits.xml
1,8 → 1,8
<?xml version="1.0" encoding="UTF-8" ?>
 
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://struts.apache.org/dtds/tiles-config_1_1.dtd">
<!--<!DOCTYPE tiles-definitions PUBLIC-->
<!--"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"-->
<!--"http://struts.apache.org/dtds/tiles-config_1_1.dtd">-->
 
<tiles-definitions>
/impl/conf/WEB-INF/struts/tiles-default.xml
1,13 → 1,16
<?xml version="1.0" encoding="UTF-8" ?>
 
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"
"http://struts.apache.org/dtds/tiles-config_1_1.dtd">
<!--<!DOCTYPE tiles-definitions PUBLIC-->
<!--"-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN"-->
<!--"http://struts.apache.org/dtds/tiles-config_1_1.dtd">-->
 
 
<tiles-definitions>
 
<!-- Templates Globais Tiles Definition -->
<definition name="base.empty" path="/layout/emptyLayout.jsp">
</definition>
 
<definition name="base.definition" path="/layout/siteLayout.jsp">
<put name="title" value="x"/>
<put name="announcements" value="/layout/topnavempty.jsp"/>
/impl/conf/WEB-INF/struts/struts-processworkflow.xml
1,8 → 1,8
<?xml version="1.0" encoding="UTF-8"?>
 
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<!--<!DOCTYPE struts-config PUBLIC-->
<!--"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"-->
<!--"http://struts.apache.org/dtds/struts-config_1_3.dtd">-->
 
<struts-config>
 
/impl/conf/WEB-INF/struts/struts-commons.xml
New file
0,0 → 1,38
<?xml version="1.0" encoding="UTF-8"?>
 
<!--<!DOCTYPE struts-config PUBLIC-->
<!--"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"-->
<!--"http://struts.apache.org/dtds/struts-config_1_3.dtd">-->
 
<struts-config>
 
<form-beans>
<form-bean type="pt.estgp.estgweb.web.form.commons.SearchForm" name="SearchForm"/>
</form-beans>
 
<global-exceptions>
 
</global-exceptions>
 
<global-forwards>
 
</global-forwards>
 
 
<action-mappings>
<action path="/noresults" forward="page.search.noresults"/>
<action path="/startSearch" name="SearchForm" scope="request" forward="page.search.form"/>
<action path="/search"
type="pt.estgp.estgweb.web.controllers.commons.CommonsController"
name="SearchForm"
scope="request"
parameter="dispatch"
input="page.search.form"
validate="false">
<forward name="searchResults" path="page.search.results"/>
<forward name="searchModule" path="page.search.module"/>
<forward name="noresults" path="page.search.noresults"/>
</action>
</action-mappings>
 
</struts-config>
/impl/conf/WEB-INF/struts/struts-announcements.xml
1,8 → 1,8
<?xml version="1.0" encoding="UTF-8"?>
 
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">
<!--<!DOCTYPE struts-config PUBLIC-->
<!--"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"-->
<!--"http://struts.apache.org/dtds/struts-config_1_3.dtd">-->
 
<struts-config>
 
/impl/conf/WEB-INF/web.xml
75,7 → 75,8
/WEB-INF/struts/struts-processworkflow.xml,
/WEB-INF/struts/struts-searchusers.xml,
/WEB-INF/struts/struts-urlstat.xml,
/WEB-INF/struts/struts-blog.xml
/WEB-INF/struts/struts-blog.xml,
/WEB-INF/struts/struts-commons.xml
</param-value>
</init-param>
<init-param>
/impl/conf/app.properties
133,7 → 133,9
#########################################################################
# Common Services
#
search.max.results=10
search.max.results=2
search.best.fragments.max.fragment.size=80
search.best.fragments.max.fragments=3
 
 
 
/impl/conf/web-services/GoogleSearch-config.xml
New file
0,0 → 1,4
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<wsdl location="file:@CONFIG_ABSOLUTE_PATH@/GoogleSearch.wsdl" packageName="@package@"/>
</configuration>
/impl/conf/web-services/siges-client.xml
New file
0,0 → 1,18
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<bindings
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
wsdlLocation="@wsdl.client@"
xmlns="http://java.sun.com/xml/ns/jaxws">
<bindings node="ns1:definitions" xmlns:ns1="http://schemas.xmlsoap.org/wsdl/">
<package name="@ws.package@"/>
</bindings>
<bindings node="ns1:definitions/ns1:types/xsd:schema[@targetNamespace='@target.namespace@']" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://schemas.xmlsoap.org/wsdl/">
<jaxb:schemaBindings>
<jaxb:package name="@ws.package@"/>
</jaxb:schemaBindings>
</bindings>
</bindings>
 
/impl/conf/web-services/GoogleSearch.wsdl
New file
0,0 → 1,198
<?xml version="1.0"?>
 
<!-- WSDL description of the Google Web APIs.
The Google Web APIs are in beta release. All interfaces are subject to
change as we refine and extend our APIs. Please see the terms of use
for more information. -->
 
<!-- Revision 2002-08-16 -->
 
<definitions name="GoogleSearch"
targetNamespace="urn:GoogleSearch"
xmlns:typens="urn:GoogleSearch"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
 
<!-- Types for search - result elements, directory categories -->
 
<types>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GoogleSearch">
<xsd:complexType name="GoogleSearchResult">
<xsd:all>
<xsd:element name="documentFiltering" type="xsd:boolean"/>
<xsd:element name="searchComments" type="xsd:string"/>
<xsd:element name="estimatedTotalResultsCount" type="xsd:int"/>
<xsd:element name="estimateIsExact" type="xsd:boolean"/>
<xsd:element name="resultElements" type="typens:ResultElementArray"/>
<xsd:element name="searchQuery" type="xsd:string"/>
<xsd:element name="startIndex" type="xsd:int"/>
<xsd:element name="endIndex" type="xsd:int"/>
<xsd:element name="searchTips" type="xsd:string"/>
<xsd:element name="directoryCategories" type="typens:DirectoryCategoryArray"/>
<xsd:element name="searchTime" type="xsd:double"/>
</xsd:all>
</xsd:complexType>
 
<xsd:complexType name="ResultElement">
<xsd:all>
<xsd:element name="summary" type="xsd:string"/>
<xsd:element name="URL" type="xsd:string"/>
<xsd:element name="snippet" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="cachedSize" type="xsd:string"/>
<xsd:element name="relatedInformationPresent" type="xsd:boolean"/>
<xsd:element name="hostName" type="xsd:string"/>
<xsd:element name="directoryCategory" type="typens:DirectoryCategory"/>
<xsd:element name="directoryTitle" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="ResultElementArray">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ResultElement[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
 
<xsd:complexType name="DirectoryCategoryArray">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:DirectoryCategory[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
 
<xsd:complexType name="DirectoryCategory">
<xsd:all>
<xsd:element name="fullViewableName" type="xsd:string"/>
<xsd:element name="specialEncoding" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
 
</xsd:schema>
</types>
 
<!-- Messages for Google Web APIs - cached page, search, spelling. -->
<message name="doGetCachedPage">
<part name="key" type="xsd:string"/>
<part name="url" type="xsd:string"/>
</message>
 
<message name="doGetCachedPageResponse">
<part name="return" type="xsd:base64Binary"/>
</message>
 
<message name="doSpellingSuggestion">
<part name="key" type="xsd:string"/>
<part name="phrase" type="xsd:string"/>
</message>
 
<message name="doSpellingSuggestionResponse">
<part name="return" type="xsd:string"/>
</message>
 
<!-- note, ie and oe are ignored by server; all traffic is UTF-8. -->
 
<message name="doGoogleSearch">
<part name="key" type="xsd:string"/>
<part name="q" type="xsd:string"/>
<part name="start" type="xsd:int"/>
<part name="maxResults" type="xsd:int"/>
<part name="filter" type="xsd:boolean"/>
<part name="restrict" type="xsd:string"/>
<part name="safeSearch" type="xsd:boolean"/>
<part name="lr" type="xsd:string"/>
<part name="ie" type="xsd:string"/>
<part name="oe" type="xsd:string"/>
</message>
 
<message name="doGoogleSearchResponse">
<part name="return" type="typens:GoogleSearchResult"/>
</message>
 
<!-- Port for Google Web APIs, "GoogleSearch" -->
 
<portType name="GoogleSearchPort">
 
<operation name="doGetCachedPage">
<input message="typens:doGetCachedPage"/>
<output message="typens:doGetCachedPageResponse"/>
</operation>
 
<operation name="doSpellingSuggestion">
<input message="typens:doSpellingSuggestion"/>
<output message="typens:doSpellingSuggestionResponse"/>
</operation>
 
<operation name="doGoogleSearch">
<input message="typens:doGoogleSearch"/>
<output message="typens:doGoogleSearchResponse"/>
</operation>
 
</portType>
 
 
<!-- Binding for Google Web APIs - RPC, SOAP over HTTP -->
 
<binding name="GoogleSearchBinding" type="typens:GoogleSearchPort">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
 
<operation name="doGetCachedPage">
<soap:operation soapAction="urn:GoogleSearchAction"/>
<input>
<soap:body use="encoded"
namespace="urn:GoogleSearch"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="urn:GoogleSearch"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
 
<operation name="doSpellingSuggestion">
<soap:operation soapAction="urn:GoogleSearchAction"/>
<input>
<soap:body use="encoded"
namespace="urn:GoogleSearch"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="urn:GoogleSearch"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
 
<operation name="doGoogleSearch">
<soap:operation soapAction="urn:GoogleSearchAction"/>
<input>
<soap:body use="encoded"
namespace="urn:GoogleSearch"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="urn:GoogleSearch"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
 
<!-- Endpoint for Google Web APIs -->
<service name="GoogleSearchService">
<port name="GoogleSearchPort" binding="typens:GoogleSearchBinding">
<soap:address location="http://api.google.com/search/beta2"/>
</port>
</service>
 
</definitions>
/impl/src/java/jomm/utils/TextToHTMLEnconder.java
New file
0,0 → 1,78
package jomm.utils;
 
/**
* User: Jorge Machado machadofisher@gmail.com
* Date: 8/Mai/2007
* Time: 17:38:50
* To change this template use File | Settings | File Templates.
*/
public class TextToHTMLEnconder
{
public String encodeText(String originalText)
{
if(originalText==null)
return null;
 
return escapeHTML(originalText);
}
 
public static final String escapeHTML(String s)
{
StringBuffer sb = new StringBuffer();
int n = s.length();
for (int i = 0; i < n; i++)
{
char c = s.charAt(i);
switch (c)
{
case '<': sb.append("&lt;"); break;
case '>': sb.append("&gt;"); break;
case '&': sb.append("&amp;"); break;
case '"': sb.append("&quot;"); break;
case 'à': sb.append("&agrave;");break;
case 'À': sb.append("&Agrave;");break;
case 'â': sb.append("&acirc;");break;
case 'Â': sb.append("&Acirc;");break;
case 'ä': sb.append("&auml;");break;
case 'Ä': sb.append("&Auml;");break;
case 'å': sb.append("&aring;");break;
case 'Å': sb.append("&Aring;");break;
case 'æ': sb.append("&aelig;");break;
case 'Æ': sb.append("&AElig;");break;
case 'ç': sb.append("&ccedil;");break;
case 'Ç': sb.append("&Ccedil;");break;
case 'é': sb.append("&eacute;");break;
case 'É': sb.append("&Eacute;");break;
case 'è': sb.append("&egrave;");break;
case 'È': sb.append("&Egrave;");break;
case 'ê': sb.append("&ecirc;");break;
case 'Ê': sb.append("&Ecirc;");break;
case 'ë': sb.append("&euml;");break;
case 'Ë': sb.append("&Euml;");break;
case 'ï': sb.append("&iuml;");break;
case 'Ï': sb.append("&Iuml;");break;
case 'ô': sb.append("&ocirc;");break;
case 'Ô': sb.append("&Ocirc;");break;
case 'ö': sb.append("&ouml;");break;
case 'Ö': sb.append("&Ouml;");break;
case 'ø': sb.append("&oslash;");break;
case 'Ø': sb.append("&Oslash;");break;
case 'ß': sb.append("&szlig;");break;
case 'ù': sb.append("&ugrave;");break;
case 'Ù': sb.append("&Ugrave;");break;
case 'û': sb.append("&ucirc;");break;
case 'Û': sb.append("&Ucirc;");break;
case 'ü': sb.append("&uuml;");break;
case 'Ü': sb.append("&Uuml;");break;
case '®': sb.append("&reg;");break;
case '©': sb.append("&copy;");break;
case '€': sb.append("&euro;"); break;
// be carefull with this one (non-breaking whitee space)
case ' ': sb.append("&nbsp;");break;
 
default: sb.append(c); break;
}
}
return sb.toString();
}
}
/impl/src/java/jomm/ir/lucene/DiacriticFilter.java
New file
0,0 → 1,65
package jomm.ir.lucene;
 
import org.apache.lucene.analysis.TokenFilter;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.Token;
 
import java.io.IOException;
 
/**
* @author Jorge Machado
* @date 25/Abr/2008
* @time 14:55:22
* @see jomm.ir
*/
public final class DiacriticFilter extends TokenFilter {
public DiacriticFilter(TokenStream in) {
super(in);
}
 
public final Token next() throws IOException {
Token t = input.next();
 
if (t == null)
return null;
 
String r = "";
 
String value = t.termText();
 
for (int j=0 ; j < value.length() ; j++) {
if ((value.charAt(j) == 'á') ||
(value.charAt(j) == 'â') ||
(value.charAt(j) == 'ã')) {
r= r + "a" ; continue ;
}
if ((value.charAt(j) == 'é') ||
(value.charAt(j) == 'ê')) {
r= r + "e" ; continue ;
}
if (value.charAt(j) == 'í') {
r= r + "i" ; continue ;
}
if ((value.charAt(j) == 'ó') ||
(value.charAt(j) == 'ô') ||
(value.charAt(j) == 'õ')) {
r= r + "o" ; continue ;
}
if ((value.charAt(j) == 'ú') ||
(value.charAt(j) == 'ü')) {
r= r + "u" ; continue ;
}
if (value.charAt(j) == 'ç') {
r= r + "c" ; continue ;
}
if (value.charAt(j) == 'ñ') {
r= r + "n" ; continue ;
}
 
 
r= r+ value.charAt(j) ;
}
t.setTermText(r);
return t;
}
}
/impl/src/java/jomm/ir/lucene/BrazilianExtendedAnalyzer.java
New file
0,0 → 1,157
package jomm.ir.lucene;
 
/**
* @author Jorge Machado
* @date 25/Abr/2008
* @time 14:55:22
* @see jomm.ir
*/
 
import org.apache.log4j.Logger;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.LowerCaseFilter;
import org.apache.lucene.analysis.StopFilter;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.analysis.standard.StandardFilter;
import org.apache.lucene.analysis.standard.StandardTokenizer;
 
import java.io.Reader;
import java.util.HashSet;
import java.util.Hashtable;
import java.util.Set;
 
import jomm.ir.lucene.DiacriticFilter;
 
/**
* Analyzer for brazilian language. Supports an external list of stopwords (words that
* will not be indexed at all) and an external list of exclusions (word that will
* not be stemmed, but indexed).
*
* @author Jo�o Kramer
*/
public class BrazilianExtendedAnalyzer extends Analyzer
{
 
private static final Logger logger = Logger.getLogger(BrazilianExtendedAnalyzer.class);
 
/**
* List of typical german stopwords.
*/
public final static String[] BRAZILIAN_STOP_WORDS = {
"a","ainda","alem","ambas","ambos","antes",
"ao","aonde","aos","apos","aquele","aqueles",
"as","assim","com","como","contra","contudo",
"cuja","cujas","cujo","cujos","da","das","de",
"dela","dele","deles","demais","depois","desde",
"desta","deste","dispoe","dispoem","diversa",
"diversas","diversos","do","dos","durante","e",
"ela","elas","ele","eles","em","entao","entre",
"essa","essas","esse","esses","esta","estas",
"este","estes","ha","isso","isto","logo","mais",
"mas","mediante","menos","mesma","mesmas","mesmo",
"mesmos","na","nas","nao","nas","nem","nesse","neste",
"nos","o","os","ou","outra","outras","outro","outros",
"pelas","pelas","pelo","pelos","perante","pois",
"porque","portanto","proprio","propios","quais","qual",
"qualquer","quando","quanto","que","quem","quer","se",
"seja","sem","sendo","seu","seus","sob","sobre","sua",
"suas","tal","tambem","teu","teus","toda","todas","todo",
"todos","tua","tuas","tudo","um","uma","umas","uns"};
 
public static final String[] ENGLISH_STOP_WORDS = {
"I","a","about","and","an","are","as","at","be","but",
"by","com","de","en","for","from","how","if","into","in",
"is","it","la","of","on","or","no","not","that","their","these",
"they","then","there","they","s","such","t","the","this","to",
"was","we","what","when","where","who","will","with","und",
"the","www"
};
 
public static final String[] BRAZILIAN_AND_ENGLISH_STOP_WORDS = {
"a","ainda","alem","ambas","ambos","antes",
"ao","aonde","aos","apos","aquele","aqueles",
"as","assim","com","como","contra","contudo",
"cuja","cujas","cujo","cujos","da","das","de",
"dela","dele","deles","demais","depois","desde",
"desta","deste","dispoe","dispoem","diversa",
"diversas","diversos","do","dos","durante","e",
"ela","elas","ele","eles","em","entao","entre",
"essa","essas","esse","esses","esta","estas",
"este","estes","ha","isso","isto","logo","mais",
"mas","mediante","menos","mesma","mesmas","mesmo",
"mesmos","na","nas","nao","nas","nem","nesse","neste",
"nos","o","os","ou","outra","outras","outro","outros",
"pelas","pelas","pelo","pelos","perante","pois",
"porque","portanto","proprio","propios","quais","qual",
"qualquer","quando","quanto","que","quem","quer","se",
"seja","sem","sendo","seu","seus","sob","sobre","sua",
"suas","tal","tambem","teu","teus","toda","todas","todo",
"todos","tua","tuas","tudo","um","uma","umas","uns",
 
"I","a","about","and","an","are","as","at","be","but",
"by","com","de","en","for","from","how","if","into","in",
"is","it","la","of","on","or","no","not","that","their","these",
"they","then","there","they","s","such","t","the","this","to",
"was","we","what","when","where","who","will","with","und",
"the","www"
};
 
 
/**
* Contains the stopwords used with the StopFilter.
*/
protected Set stoptable = new HashSet();
/**
* Contains words that should be indexed but not stemmed.
*/
 
 
/**
* Builds an analyzer with the default stop words ({@link #BRAZILIAN_STOP_WORDS}).
*/
 
public BrazilianExtendedAnalyzer()
{
stoptable = StopFilter.makeStopSet(BRAZILIAN_AND_ENGLISH_STOP_WORDS);
}
 
/**
* Builds an analyzer with the given stop words.
*/
public BrazilianExtendedAnalyzer( String[] stopwords ) {
stoptable = StopFilter.makeStopSet( stopwords );
}
 
/**
* Builds an analyzer with the given stop words.
*/
public BrazilianExtendedAnalyzer( Hashtable stopwords ) {
stoptable = new HashSet(stopwords.keySet());
}
 
 
 
/**
* Creates a TokenStream which tokenizes all the text in the provided Reader.
*
* @return A TokenStream build from a StandardTokenizer filtered with
* StandardFilter, StopFilter, GermanStemFilter and LowerCaseFilter.
*/
public final TokenStream tokenStream(String fieldName, Reader reader)
{
TokenStream result = new StandardTokenizer( reader );
result = new StandardFilter( result );
result = new LowerCaseFilter( result );
result = new DiacriticFilter(result);
result = new StopFilter( result, stoptable );
return result;
}
 
 
public static void main(String [] args){
 
 
}
 
}
 
/impl/src/java/jomm/ir/lucene/HighlightFormatter.java
New file
0,0 → 1,29
package jomm.ir.lucene;
 
 
/**
* @author Jorge Machado
* @date 25/Abr/2008
* @time 14:55:22
* @see jomm.ir
*/
 
import org.apache.lucene.search.highlight.Formatter;
import org.apache.lucene.search.highlight.TokenGroup;
 
public class HighlightFormatter implements Formatter
{
public String highlightTerm(String originalText, TokenGroup group)
{
if(group.getTotalScore()<=0)
{
return originalText;
}
return highlightTerm(originalText);
}
 
public static String highlightTerm(String originalText) {
 
return "<b><i>" + originalText + "</i></b>";
}
}
/impl/src/java/jomm/ir/lucene/LuceneUtils.java
New file
0,0 → 1,98
package jomm.ir.lucene;
 
import org.apache.log4j.Logger;
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.TokenStream;
import org.apache.lucene.queryParser.ParseException;
import org.apache.lucene.queryParser.QueryParser;
import org.apache.lucene.search.Query;
import org.apache.lucene.search.highlight.Highlighter;
import org.apache.lucene.search.highlight.QueryScorer;
import org.apache.lucene.search.highlight.SimpleFragmenter;
 
import java.io.StringReader;
 
/**
* Created by IntelliJ IDEA.
* User: User
* DateMonthYearArticles: 26/Jan/2005
* Time: 12:08:10
* To change this template use File | Settings | File Templates.
*/
public class LuceneUtils
{
 
 
private static Logger logger = Logger.getLogger(LuceneUtils.class);
 
private static Analyzer analyzer = (Analyzer) new BrazilianExtendedAnalyzer();
 
 
public static Query getQuery(String queryStr, String field, Analyzer analyzer) throws ParseException
{
try
{
QueryParser parser;
if(field == null)
parser = new QueryParser("contents",analyzer);
else
parser = new QueryParser(field,analyzer);
return parser.parse(queryStr);
}
catch(ParseException e)
{
logger.error("Bad query: " + queryStr);
throw e;
}
}
 
 
public static LuceceTextToHTMLEncoder textToHTMLEnconder = new LuceceTextToHTMLEncoder()
{
public String encodeText(String textToEncode)
{
if(textToEncode != null)
{
return super.encodeText(textToEncode).replaceAll("&nbsp;"," ");
}
return null;
}
};
 
public static HighlightFormatter highlightFormatter = new HighlightFormatter();
 
public static String highlight(String text, String queryStr) throws Exception
{
return doStandardHighlights(text,queryStr,10000,1);
}
public static String doStandardHighlights(String text, String queryStr, int fragmentSize, int maxfragments) throws Exception
{
if(text != null)
{
 
Query query = getQuery(queryStr,null,analyzer);
Highlighter highlighter = new Highlighter(highlightFormatter,textToHTMLEnconder,new QueryScorer(query));
highlighter.setTextFragmenter(new SimpleFragmenter(fragmentSize));
 
String fragmentSeparator = " ... ";
TokenStream tokenStream = analyzer.tokenStream(null,new StringReader(text));
 
String result =
highlighter.getBestFragments(
tokenStream,
text,
maxfragments,
fragmentSeparator);
if(result.startsWith(")") || result.startsWith("]") || result.startsWith(",") || result.startsWith(";") || result.startsWith("."))
result = result.substring(1);
return result;
}
return null;
}
 
public static void main(String [] args) throws Exception
{
System.out.println(LuceneUtils.highlight("eu sou o jorge machado e amo muito a leila o amor da minha vida que eu mais amo que tudo\n e tudo o que eu mais amo é ela e mais ninguém amo como ela","ela é o amor da vida ninguém"));
}
}
/impl/src/java/jomm/ir/lucene/LuceceTextToHTMLEncoder.java
New file
0,0 → 1,18
package jomm.ir.lucene;
 
/**
* @author Jorge Machado
* @date 25/Abr/2008
* @time 14:23:27
* @see jomm.ir.lucene
*/
import org.apache.lucene.search.highlight.Encoder;
import jomm.utils.TextToHTMLEnconder;
 
/**
* Just need to extend TextToHtmlEncoder to implement Encoder Interface
*/
public class LuceceTextToHTMLEncoder extends TextToHTMLEnconder implements Encoder
{
 
}
/impl/src/java/jomm/web/utils/TopNav.java
31,6 → 31,11
NavPlace n = new NavPlace(url,messageKey,navPlaces.size());
navPlaces.add(n);
}
public void addNavPlace(String url, String messageKey,String arg)
{
NavPlace n = new NavPlace(url,messageKey,navPlaces.size());
navPlaces.add(n);
}
 
public String getTitle() {
return title;
/impl/src/java/jomm/web/utils/NavPlace.java
1,5 → 1,9
package jomm.web.utils;
 
import jomm.utils.MessageResources;
 
import javax.servlet.http.HttpServletRequest;
 
/**
*
* @author Jorge Machado
10,13 → 14,16
private int pos;
private String url;
private String key;
private String arg0 = null;
private String arg1 = null;
 
/**
* Creates a new instance of NavPlace
*
* @param url to go
* @param key in messages
* */
* @param pos in list
*/
public NavPlace(String url,String key, int pos)
{
this.url = url;
24,7 → 31,40
this.pos = pos;
}
 
/**
* Creates a new instance of NavPlace
*
* @param url to go
* @param key in messages
* @param pos in list
* @param arg0 of message
*/
public NavPlace(String url,String key, int pos, String arg0)
{
this.url = url;
this.key = key;
this.pos = pos;
this.arg0 = arg0;
}
/**
* Creates a new instance of NavPlace
*
* @param url to go
* @param key in messages
* @param pos in list
* @param arg0 of message
* @param arg1 of message
*/
public NavPlace(String url,String key, int pos, String arg0, String arg1)
{
this.url = url;
this.key = key;
this.pos = pos;
this.arg0 = arg0;
this.arg1 = arg1;
}
 
 
public String getUrl()
{
 
47,9 → 87,24
return key;
}
 
public String getArg0() {
return arg0;
}
 
public void setKey(String key) {
this.key = key;
}
 
public String getMessage(HttpServletRequest request)
{
if(arg1 != null)
return MessageResources.getMessage(request,key,arg0,arg1);
else if(arg0 != null)
return MessageResources.getMessage(request,key,arg0);
else
return MessageResources.getMessage(request,key);
}
 
 
 
}
/impl/src/java/pt/estgp/estgweb/Globals.java
10,10 → 10,13
* @time 12:51:32
* @see pt.estgp.estgweb
*/
public class Globals
{
public class Globals {
 
 
public static final int SEARCH_MAX_RESULTS = ConfigProperties.getIntProperty("search.max.results");
public static final int SEARCH_BEST_FRAGMENTS_MAX_FRAGMENT_SIZE = ConfigProperties.getIntProperty("search.best.fragments.max.fragment.size");
public static final int SEARCH_BEST_FRAGMENTS_MAX_FRAGMENTS = ConfigProperties.getIntProperty("search.best.fragments.max.fragments");
 
public static final String ALL_ROLE = ConfigProperties.getProperty("user.super");
public static final String ACTUAL_RELATIVE_PATH = "ACTUAL_RELATIVE_PATH";
public static final String ADMIN_ROLE = ConfigProperties.getProperty("user.admin");
26,10 → 29,10
public static final String ANNOUNCEMENT_TYPE_NEWS = "news";
public static final String ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS = "top.flash.news";
public static final String ANNOUNCEMENT_TYPE_BOTTOM_FLASH_NEWS = "bottom.flash.news";
public static final int NUMBER_ANNOUNCEMENT_TYPE_NEW_INDEX=5;
public static final int NUMBER_ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS_INDEX=1;
public static final int NUMBER_ANNOUNCEMENT_TYPE_BOTTOM_FLASH_NEWS_INDEX=2;
public static final int ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS_TIMEOUT=ConfigProperties.getIntProperty("announcements.top.flash.news.timeout.miliseconds");
public static final int NUMBER_ANNOUNCEMENT_TYPE_NEW_INDEX = 5;
public static final int NUMBER_ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS_INDEX = 1;
public static final int NUMBER_ANNOUNCEMENT_TYPE_BOTTOM_FLASH_NEWS_INDEX = 2;
public static final int ANNOUNCEMENT_TYPE_TOP_FLASH_NEWS_TIMEOUT = ConfigProperties.getIntProperty("announcements.top.flash.news.timeout.miliseconds");
public static List<String> USER_ROLES = ConfigProperties.getListValues("user.role");
 
}
/impl/src/java/pt/estgp/estgweb/services/common/ISearchResults.java
13,4 → 13,15
public ModuleEnum getModule();
public List<IResult> getResults();
public int getTotalResults();
public int getPage();
public int getPage2Screen();
public boolean getHasNextPage();
public boolean getHasPreviousPage();
public int getNextPage();
public int getPreviousPage();
public int getMaxResultsPage();
public String getQuery();
public String getSearchType();
 
 
}
/impl/src/java/pt/estgp/estgweb/services/common/impl/CommonSearchResults.java
16,6 → 16,8
 
private List<ISearchResults> results;
private int totalResults = 0;
private String query;
private String searchType;
 
public List<ISearchResults> getSearchResults()
42,4 → 44,21
{
this.totalResults += totalResults;
}
 
 
public String getQuery() {
return query;
}
 
public void setQuery(String query) {
this.query = query;
}
 
public String getSearchType() {
return searchType;
}
 
public void setSearchType(String searchType) {
this.searchType = searchType;
}
}
/impl/src/java/pt/estgp/estgweb/services/common/impl/DefaultResult.java
16,8 → 16,12
private String bestFragments;
private String text;
private String url;
private boolean titleKey = false;
private boolean subTitleKey = false;
private boolean textKey = false;
 
 
 
public DefaultResult() {
}
 
41,14 → 45,14
return title;
}
 
public void setSubTitle(String subTitle) {
this.subTitle = subTitle;
}
 
public String getSubTitle() {
return subTitle;
}
 
public void setSubTitle(String subTitle) {
this.subTitle = subTitle;
}
 
public String getBestFragments() {
return bestFragments;
}
60,4 → 64,29
public String getUrl() {
return url;
}
 
 
public boolean isTitleKey() {
return titleKey;
}
 
public void setTitleKey(boolean titleKey) {
this.titleKey = titleKey;
}
 
public boolean isTextKey() {
return textKey;
}
 
public void setTextKey(boolean textKey) {
this.textKey = textKey;
}
 
public boolean isSubTitleKey() {
return subTitleKey;
}
 
public void setSubTitleKey(boolean subTitleKey) {
this.subTitleKey = subTitleKey;
}
}
/impl/src/java/pt/estgp/estgweb/services/common/impl/DefaultSearchResults.java
15,9 → 15,14
*/
public class DefaultSearchResults implements ISearchResults
{
 
private ModuleEnum module;
private List<IResult> results;
private int totalResults;
private int page;
private int maxResultsPage;
private String query;
private String searchType;
 
 
public ModuleEnum getModule() {
34,24 → 39,82
 
public void setResults(List<IResult> results) {
this.results = results;
if(results != null)
this.totalResults = results.size();
else
this.totalResults = 0;
}
 
public int getTotalResults() {
return totalResults;
}
public void setTotalResults(int totalResults) {
this.totalResults = totalResults;
}
 
 
public int getMaxResultsPage() {
return maxResultsPage;
}
 
public void setMaxResultsPage(int maxResultsPage) {
this.maxResultsPage = maxResultsPage;
}
 
public void addResult(IResult result)
{
if(result != null)
totalResults++;
if(results == null)
results = new ArrayList<IResult>();
results.add(result);
}
 
 
public int getPage() {
return page;
}
public int getPage2Screen() {
return page + 1;
}
 
public boolean getHasNextPage()
{
int size = 0;
if(results != null)
size = results.size();
return page*maxResultsPage + size < totalResults;
}
 
public boolean getHasPreviousPage()
{
return page > 0;
}
 
public int getNextPage()
{
return page + 1;
}
 
public int getPreviousPage()
{
return page - 1;
}
 
public void setPage(int page) {
this.page = page;
}
 
 
public String getQuery() {
return query;
}
 
public void setQuery(String query) {
this.query = query;
}
 
public String getSearchType() {
return searchType;
}
 
public void setSearchType(String searchType) {
this.searchType = searchType;
}
}
/impl/src/java/pt/estgp/estgweb/services/common/CommonServicesManager.java
1,15 → 1,13
package pt.estgp.estgweb.services.common;
 
import pt.estgp.estgweb.domain.UserSession;
import pt.estgp.estgweb.domain.views.AnnouncementView;
import pt.estgp.estgweb.web.utils.RequestUtils;
import pt.estgp.estgweb.web.exceptions.NoCookiesException;
import pt.estgp.estgweb.web.exceptions.NotAuthorizedException;
import pt.estgp.estgweb.Globals;
import pt.estgp.estgweb.services.common.impl.CommonSearchResults;
import pt.estgp.estgweb.services.common.impl.DefaultSearchResults;
import pt.estgp.estgweb.services.common.impl.DefaultResult;
import pt.utl.ist.berserk.logic.serviceManager.IServiceManager;
import pt.utl.ist.berserk.logic.serviceManager.ServiceManager;
import pt.utl.ist.berserk.logic.serviceManager.exceptions.ServiceManagerException;
import pt.utl.ist.berserk.logic.filterManager.exceptions.*;
 
import java.util.List;
19,6 → 17,8
 
import javax.servlet.http.HttpServletRequest;
 
import jomm.ir.lucene.LuceneUtils;
 
/**
* @author Jorge Machado
* @date 24/Abr/2008
27,6 → 27,9
*/
public class CommonServicesManager {
 
private static final int SEARCH_FRAGMENT_SIZE = Globals.SEARCH_BEST_FRAGMENTS_MAX_FRAGMENT_SIZE;
private static final int SEARCH_MAX_FRAGMENTS = Globals.SEARCH_BEST_FRAGMENTS_MAX_FRAGMENTS;
private static final int SEARCH_MAX_RESULTS = Globals.SEARCH_MAX_RESULTS;
 
private static final Logger logger = Logger.getLogger(CommonServicesManager.class);
 
59,6 → 62,8
*/
public ICommonSearchResults search(String requester, String query, SearchTypeEnum searchType) throws Throwable {
 
if(searchType == null)
searchType = SearchTypeEnum.AllWords;
CommonSearchResults commonSearchResults = new CommonSearchResults();
List<ISearchResults> results = new ArrayList<ISearchResults>();
 
72,6 → 77,8
}
}
commonSearchResults.setResults(results);
commonSearchResults.setQuery(query);
commonSearchResults.setSearchType(searchType.getMessageKey());
return commonSearchResults;
}
 
129,8 → 136,40
try {
sm = ServiceManager.getInstance();
String[] names = new String[]{};
Object[] args = new Object[]{query, searchType, page, Globals.SEARCH_MAX_RESULTS};
return (ISearchResults) sm.execute(requester, moduleKey.getServiceName(), "search", args, names);
Object[] args = new Object[]{query, searchType, page, SEARCH_MAX_RESULTS};
 
DefaultSearchResults searchResults = (DefaultSearchResults) sm.execute(requester, moduleKey.getServiceName(), "search", args, names);
searchResults.setPage(page);
searchResults.setMaxResultsPage(SEARCH_MAX_RESULTS);
searchResults.setQuery(query.replace("'"," "));
searchResults.setSearchType(searchType.getMessageKey());
if(searchResults.getTotalResults() > 0)
{
for(IResult result: searchResults.getResults())
{
DefaultResult defaultResult = (DefaultResult) result;
defaultResult.setBestFragments(LuceneUtils.doStandardHighlights(defaultResult.getText(),query,SEARCH_FRAGMENT_SIZE,SEARCH_MAX_FRAGMENTS));
if(!defaultResult.isTitleKey())
{
String title = defaultResult.getTitle();
defaultResult.setTitle(LuceneUtils.highlight(defaultResult.getTitle(),query));
if(defaultResult.getTitle() == null || defaultResult.getTitle().length() == 0)
defaultResult.setTitle(title);
}
if(!defaultResult.isSubTitleKey())
{
String subTitle = defaultResult.getSubTitle();
defaultResult.setSubTitle(LuceneUtils.highlight(defaultResult.getSubTitle(),query));
if(defaultResult.getSubTitle() == null || defaultResult.getSubTitle().length() == 0)
defaultResult.setSubTitle(subTitle);
}
String text = defaultResult.getText();
defaultResult.setText(LuceneUtils.highlight(defaultResult.getText(),query));
if(defaultResult.getText() == null || defaultResult.getText().length() == 0)
defaultResult.setText(text);
}
}
return searchResults;
}
catch (FilterRetrieveException e) {
logger.error(e, e);
206,7 → 245,20
System.out.println("\ttext:" +result.getText());
System.out.println("\turl:" + result.getUrl());
System.out.println("\tbestFragments:" + result.getBestFragments());
 
}
System.out.println("NEXT PAGE TEST>>>>>>>>>>>>>>>>>>>");
ISearchResults searchResults2 = new CommonServicesManager().search("18D0D23A7C07FF478CE8DAFEBA58D37A","teste",SearchTypeEnum.AllWords,searchResults.getModule(),1);
for(IResult result2: searchResults2.getResults())
{
System.out.println("");
System.out.println("\ttitle:" +result2.getTitle());
System.out.println("\tsubTitle:" +result2.getSubTitle());
System.out.println("\ttext:" +result2.getText());
System.out.println("\turl:" + result2.getUrl());
System.out.println("\tbestFragments:" + result2.getBestFragments());
}
 
}
}
 
/impl/src/java/pt/estgp/estgweb/services/common/IResult.java
9,8 → 9,11
public interface IResult
{
public String getTitle();
public boolean isTitleKey();
public String getSubTitle();
public boolean isSubTitleKey();
public String getBestFragments();
public String getText();
public boolean isTextKey();
public String getUrl();
}
/impl/src/java/pt/estgp/estgweb/services/common/ICommonSearchResults.java
12,4 → 12,6
{
public List<ISearchResults> getSearchResults();
public int getTotalResults();
public String getQuery();
public String getSearchType();
}
/impl/src/java/pt/estgp/estgweb/services/common/SearchTypeEnum.java
8,9 → 8,9
*/
public enum SearchTypeEnum
{
ExactPhrase("search.exactPhrase"),
AnyWord("search.anyWord"),
AllWords("search.allWords");
ExactPhrase("search.type.phrase"),
AnyWord("search.type.any"),
AllWords("search.type.all");
 
String messageKey;
 
/impl/src/java/pt/estgp/estgweb/services/announcements/AnnouncementsCommonServices.java
28,70 → 28,64
*/
/**
* @author Jorge Machado
*
*
* Created at 17/Out/2003 , 23:45:24
*
* <p/>
* <p/>
* Created at 17/Out/2003 , 23:45:24
*/
public class AnnouncementsCommonServices implements IService, IModuleCommonServices
{
public class AnnouncementsCommonServices implements IService, IModuleCommonServices {
private static final Logger logger = Logger.getLogger(AnnouncementsCommonServices.class);
 
public int countSearch(String search, SearchTypeEnum searchType, UserSession userSession)
{
public int countSearch(String search, SearchTypeEnum searchType, UserSession userSession) {
return 0; //To change body of implemented methods use File | Settings | File Templates.
}
 
public ISearchResults search(String search, SearchTypeEnum searchType, int page, int maxResults, UserSession userSession)
{
public ISearchResults search(String search, SearchTypeEnum searchType, int page, int maxResults, UserSession userSession) {
DefaultSearchResults searchResults = new DefaultSearchResults();
searchResults.setModule(ModuleEnum.Announcements);
List<String> roles;
if(userSession == null || userSession.getUser() == null || ((UserImpl)userSession.getUser()).getRolesList() == null || ((UserImpl)userSession.getUser()).getRolesList().size() == 0)
{
if (userSession == null || userSession.getUser() == null || ((UserImpl) userSession.getUser()).getRolesList() == null || ((UserImpl) userSession.getUser()).getRolesList().size() == 0) {
roles = new ArrayList<String>();
roles.add(Globals.ALL_ROLE);
}
else
roles = ((UserImpl)userSession.getUser()).getRolesList();
roles = ((UserImpl) userSession.getUser()).getRolesList();
 
List<Announcement> announcements = DaoFactory.getAnnouncementDaoImpl().searchAnnouncements(search, searchType, maxResults, page, roles,null);
if(announcements == null)
return searchResults;
for(Announcement a: announcements)
{
DefaultResult defaultResult = new DefaultResult();
defaultResult.setTitle(a.getTitle());
defaultResult.setSubTitle(a.getType());
defaultResult.setText(a.getText());
defaultResult.setUrl("/loadAnnouncement.do?id=" + a.getId()+"&dispatch=load");
searchResults.addResult(defaultResult);
searchResults.setTotalResults(DaoFactory.getAnnouncementDaoImpl().countAnnouncements(search, searchType, roles, null));
if (searchResults.getTotalResults() > 0) {
List<Announcement> announcements = DaoFactory.getAnnouncementDaoImpl().searchAnnouncements(search, searchType, maxResults, page, roles, null);
if (announcements == null)
return searchResults;
for (Announcement a : announcements) {
DefaultResult defaultResult = new DefaultResult();
defaultResult.setTitle(a.getTitle());
defaultResult.setSubTitle("announcements.type." + a.getType());
defaultResult.setSubTitleKey(true);
defaultResult.setText(a.getText());
defaultResult.setUrl("/loadAnnouncement.do?id=" + a.getId() + "&dispatch=load");
searchResults.addResult(defaultResult);
}
}
return searchResults;
}
 
public int countToDo(UserSession userSession)
{
public int countToDo(UserSession userSession) {
return 0; //To change body of implemented methods use File | Settings | File Templates.
}
 
public IToDoCat getToDo(UserSession userSession)
{
public IToDoCat getToDo(UserSession userSession) {
return null; //To change body of implemented methods use File | Settings | File Templates.
}
 
public static void main(String[] args)
{
public static void main(String[] args) {
AbstractDao.getCurrentSession().beginTransaction();
UserSession sess = new UserSessionImpl();
sess.setUser(new UserImpl());
sess.getUser().setRoles("all");
ISearchResults searchResults = new AnnouncementsCommonServices().search("teste",SearchTypeEnum.AllWords,0,10,sess);
for(IResult result: searchResults.getResults())
{
System.out.println("title:" +result.getTitle());
System.out.println("subTitle:" +result.getSubTitle());
System.out.println("text:" +result.getText());
ISearchResults searchResults = new AnnouncementsCommonServices().search("teste", SearchTypeEnum.AllWords, 0, 10, sess);
for (IResult result : searchResults.getResults()) {
System.out.println("title:" + result.getTitle());
System.out.println("subTitle:" + result.getSubTitle());
System.out.println("text:" + result.getText());
System.out.println("url" + result.getUrl());
System.out.println("bestFragments" + result.getBestFragments());
}
/impl/src/java/pt/estgp/estgweb/domain/dao/impl/AnnouncementDaoImpl.java
85,6 → 85,12
}
 
private Criteria createMaxAnnouncementsPageRolesTypeCriteria(int page, int maxAnnouncements, List<String> roles, String type, String subTarget) {
return createRolesTypeCriteria(roles, type, subTarget)
.setFirstResult(page * maxAnnouncements)
.setMaxResults(maxAnnouncements);
}
 
private Criteria createRolesTypeCriteria(List<String> roles, String type, String subTarget) {
if (roles == null) {
roles = new ArrayList<String>();
roles.add("all");
106,7 → 112,7
else {
coSubTargets = eq("subTargets", subTarget);
}
if(type != null)
if (type != null)
criteria.add(eq("type", type));
MyCalendar cNow = new MyCalendar();
MyCalendar calendarWithOutTime = new MyCalendar(cNow.getYear(), cNow.getMonth(), cNow.getDay());
116,8 → 122,6
.add(or(or(gt("expireDate", now), eq("expireDate", now)), isNull("expireDate")))
.add(eq("status", true))
.add(coSubTargets)
.setFirstResult(page * maxAnnouncements)
.setMaxResults(maxAnnouncements)
.addOrder(Order.desc("saveDate"));
return criteria;
}
145,6 → 149,21
 
public List<Announcement> searchAnnouncements(String query, SearchTypeEnum searchTypeEnum, int maxAnnouncements, int page, List<String> roles, String subTarget) {
 
Criterion c = createSearchQuery(query, searchTypeEnum);
Criteria criteria = createMaxAnnouncementsPageRolesTypeCriteria(page, maxAnnouncements, roles, null, null);
criteria.add(c);
return criteria.list();
}
 
public int countAnnouncements(String query, SearchTypeEnum searchTypeEnum, List<String> roles, String subTarget) {
 
Criterion c = createSearchQuery(query, searchTypeEnum);
Criteria criteria = createRolesTypeCriteria(roles, null, null);
criteria.add(c);
return criteria.list().size();
}
 
public Criterion createSearchQuery(String query, SearchTypeEnum searchTypeEnum) {
Criterion c = null;
if (searchTypeEnum == SearchTypeEnum.ExactPhrase)
c = or(like("text", "%" + query + "%"), like("title", "%" + query + "%"));
167,10 → 186,7
c = or(c, or(like("text", "%" + field + "%"), like("title", "%" + field + "%")));
}
}
 
Criteria criteria = createMaxAnnouncementsPageRolesTypeCriteria(page, maxAnnouncements, roles, null, null);
criteria.add(c);
return criteria.list();
return c;
}
 
}
/impl/src/java/pt/estgp/estgweb/web/form/commons/SearchForm.java
New file
0,0 → 1,35
package pt.estgp.estgweb.web.form.commons;
 
import pt.estgp.estgweb.web.form.AddRolesForm;
import pt.estgp.estgweb.web.form.ApplicationForm;
import pt.estgp.estgweb.domain.views.BlogView;
import pt.estgp.estgweb.services.common.SearchTypeEnum;
import org.apache.struts.upload.FormFile;
 
/**
* @author Jorge Machado
* @date 21/Abr/2008
* @time 14:28:59
* @see pt.estgp.estgweb.web.form.blogs
*/
public class SearchForm extends ApplicationForm {
 
private String query;
private String searchType = SearchTypeEnum.AllWords.getMessageKey();
 
public String getQuery() {
return query;
}
 
public void setQuery(String query) {
this.query = query;
}
 
public String getSearchType() {
return searchType;
}
 
public void setSearchType(String searchType) {
this.searchType = searchType;
}
}
/impl/src/java/pt/estgp/estgweb/web/form/announcements/AnnouncementsForm.java
88,7 → 88,7
this.expireDate = expireDate;
}
 
 
public FormFile getBigImage() {
return bigImage;
}
157,22 → 157,50
 
public ActionErrors validate(org.apache.struts.action.ActionMapping actionMapping, javax.servlet.http.HttpServletRequest httpServletRequest)
{
UserSessionImpl userSession = null;
try
 
if(!httpServletRequest.getParameter("dispatch").equals("removeRole"))
{
userSession = (UserSessionImpl) UserSessionProxy.loadUserSessionFromRequest(httpServletRequest);
List<String> roles = (List<String>) userSession.get(TARGET_ROLES_KEY);
if(roles == null || roles.size() == 0)
UserSessionImpl userSession = null;
try
{
roles = new ArrayList<String>();
roles.add(targetRolesStr);
 
userSession = (UserSessionImpl) UserSessionProxy.loadUserSessionFromRequest(httpServletRequest);
List<String> roles = (List<String>) userSession.get(TARGET_ROLES_KEY);
if(roles == null || roles.size() == 0)
{
roles = new ArrayList<String>();
roles.add(targetRolesStr);
}
announcementView.setTargetRoles(roles);
}
announcementView.setTargetRoles(roles);
catch (Throwable throwable)
{
logger.error(throwable,throwable);
}
}
catch (Throwable throwable)
else if (httpServletRequest.getParameter("dispatch").equals("removeRole"))
{
logger.error(throwable,throwable);
try {
UserSessionImpl userSession = null;
int count=0,roleToRemove=0;
userSession = (UserSessionImpl) UserSessionProxy.loadUserSessionFromRequest(httpServletRequest);
List<String> roles = (List<String>) userSession.get(TARGET_ROLES_KEY);
if(roles != null || roles.size() != 0)
{
for(String role: roles)
{
if(role.equals(this.role))
{
roleToRemove=count;
}
count++;
}
}
roles.remove(roleToRemove);
announcementView.setTargetRoles(roles);
} catch (Throwable throwable) {
logger.error(throwable,throwable);
}
}
 
 
/impl/src/java/pt/estgp/estgweb/web/controllers/ApplicationController.java
8,6 → 8,10
import pt.estgp.estgweb.web.UserSessionProxy;
import pt.estgp.estgweb.web.utils.RequestUtils;
import pt.estgp.estgweb.domain.UserSessionImpl;
import pt.estgp.estgweb.services.common.ICommonSearchResults;
import pt.estgp.estgweb.services.common.CommonServicesManager;
import pt.estgp.estgweb.services.common.SearchTypeEnum;
import pt.utl.ist.berserk.logic.serviceManager.exceptions.FilterChainFailedException;
 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
30,6 → 34,7
 
private static final Logger logger = Logger.getLogger(ApplicationController.class);
 
public ActionMessages getMessages(HttpServletRequest request)
{
ActionMessages actionMessages = super.getMessages(request);
/impl/src/java/pt/estgp/estgweb/web/controllers/commons/CommonsController.java
New file
0,0 → 1,87
package pt.estgp.estgweb.web.controllers.commons;
 
import pt.estgp.estgweb.web.controllers.AddRolesController;
import pt.estgp.estgweb.web.controllers.ApplicationController;
import pt.estgp.estgweb.web.controllers.ApplicationDispatchController;
import pt.estgp.estgweb.web.controllers.blogs.BlogsController;
import pt.estgp.estgweb.web.form.blogs.BlogForm;
import pt.estgp.estgweb.web.utils.RequestUtils;
import pt.estgp.estgweb.domain.Blog;
import pt.estgp.estgweb.domain.DomainObjectFactory;
import pt.estgp.estgweb.domain.Image;
import pt.estgp.estgweb.domain.views.BlogView;
import pt.estgp.estgweb.services.common.CommonServicesManager;
import pt.estgp.estgweb.services.common.SearchTypeEnum;
import pt.estgp.estgweb.services.common.ICommonSearchResults;
import pt.estgp.estgweb.services.common.ISearchResults;
import pt.utl.ist.berserk.logic.serviceManager.IServiceManager;
import pt.utl.ist.berserk.logic.serviceManager.ServiceManager;
import pt.utl.ist.berserk.logic.serviceManager.exceptions.FilterChainFailedException;
import org.apache.log4j.Logger;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
import org.apache.struts.upload.FormFile;
 
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.ServletException;
import java.io.InputStream;
import java.io.ByteArrayOutputStream;
import java.util.Date;
 
/**
* @author Jorge Machado
* @date 26/Fev/2008
* @time 18:01:54
* @see pt.estgp.estgweb.web
*/
public class CommonsController extends ApplicationDispatchController {
 
private static final Logger logger = Logger.getLogger(CommonsController.class);
 
public ActionForward search(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Throwable, ServletException
{
try
{
ICommonSearchResults commonSearchResults = CommonServicesManager.getInstance().search(request,request.getParameter("query"), SearchTypeEnum.parse(request.getParameter("searchType")));
// if(commonSearchResults.getTotalResults() == 0)
// return mapping.findForward("noresults");
request.setAttribute("ICommonSearchResults",commonSearchResults);
return mapping.findForward("searchResults");
}
catch (FilterChainFailedException e)
{
return mapping.findForward("error401");
}
catch (Throwable e) {
logger.error(e, e);
throw e;
}
}
 
 
public ActionForward searchModule(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Throwable, ServletException {
try
{
ISearchResults searchResults = CommonServicesManager.getInstance().search(request,request.getParameter("query"), SearchTypeEnum.parse(request.getParameter("searchType")),request.getParameter("module"),Integer.parseInt(request.getParameter("page")));
request.setAttribute("ISearchResults",searchResults);
return mapping.findForward("searchModule");
}
catch (FilterChainFailedException e) {
return mapping.findForward("error401");
}
catch (Throwable e) {
logger.error(e, e);
throw e;
}
}
}
/impl/src/java/pt/estgp/estgweb/web/controllers/announcements/AnnouncementsController.java
110,85 → 110,6
AnnouncementView aV = (AnnouncementView) sm.execute(RequestUtils.getRequester(request),"CreateAnnouncement",args,names);
addMessage(request,"announcement.edited.success","" + aV.getId());
return mapping.findForward("success");
/*AnnouncementsForm announcementsForm = (AnnouncementsForm) form;
if(announcementsForm.getAnnouncementView().getId() <= 0)
{
Announcement a = DomainObjectFactory.createAnnouncementImpl();
announcementsForm.getAnnouncementView().persistViewInObject(a);
IServiceManager sm = ServiceManager.getInstance();
 
if(announcementsForm.getBigImage().getFileSize()!= 0)
{
FormFile bigImage = announcementsForm.getBigImage();
InputStream stream = bigImage.getInputStream();
ByteArrayOutputStream b = new ByteArrayOutputStream();
int readedBytes;
byte[] buf = new byte[1024];
while((readedBytes = stream.read(buf)) > 0)
{
b.write(buf,0,readedBytes);
}
b.close();
Image i = DomainObjectFactory.createImageImpl();
i.setImage(b.toByteArray());
i.setContentType(bigImage.getContentType());
i.setSize(bigImage.getFileSize());
i.setDescription(a.getTitle());
i.setName(bigImage.getFileName());
i.setSaveDate(new Date());
a.setBigImage(i);
}
 
if(announcementsForm.getSmallImage().getFileSize()!= 0)
{
FormFile smallImage = announcementsForm.getSmallImage();
InputStream stream2 = smallImage.getInputStream();
ByteArrayOutputStream b2 = new ByteArrayOutputStream();
int readedBytes2;
byte[] buf2 = new byte[1024];
while((readedBytes2 = stream2.read(buf2)) > 0)
{
b2.write(buf2,0,readedBytes2);
}
b2.close();
Image i2 = DomainObjectFactory.createImageImpl();
i2.setImage(b2.toByteArray());
i2.setDescription(a.getTitle());
i2.setContentType(smallImage.getContentType());
i2.setSize(smallImage.getFileSize());
i2.setName(smallImage.getFileName());
i2.setSaveDate(new Date());
a.setSmallImage(i2);
}
 
String finalUrl="";
if(!announcementsForm.getUrl().equals(""))
{
finalUrl=announcementsForm.getUrlProtocol()+announcementsForm.getUrl();
a.setUrl(finalUrl);
}
else
{
a.setUrl(finalUrl);
}
 
String[] names = new String[]{"object"};
Object[] args = new Object[]{a};
AnnouncementView aV = (AnnouncementView) sm.execute(RequestUtils.getRequester(request),"CreateAnnouncement",args,names);
addMessage(request,"announcement.created.success","" + aV.getId());
return mapping.findForward("success");
}
else
{
 
AnnouncementView a = announcementsForm.getAnnouncementView();
IServiceManager sm = ServiceManager.getInstance();
String[] names = new String[]{"object"};
Object[] args = new Object[]{a};
AnnouncementView aV = (AnnouncementView) sm.execute(RequestUtils.getRequester(request),"CreateAnnouncement",args,names);
addMessage(request,"announcement.edited.success","" + aV.getId());
return mapping.findForward("success");
} */
}
catch(FilterChainFailedException e)
{
/impl/src/java/pt/ipp/siges/web/services/clients/Test.java
New file
0,0 → 1,50
/*
* Cliente.java
*
* Created on 29 de Abril de 2008, 9:59
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
 
package pt.ipp.siges.web.services.clients;
 
import pt.ipp.siges.web.services.clients.*;
import java.rmi.RemoteException;
import java.util.Iterator;
import java.util.List;
 
/**
*
* @author Jorge Machado
*/
 
 
public class Test {
public static void main(String[]args) throws RemoteException
{
SiGesWEB service = new SiGesWEB();
ArrayOfDocente docentes = service.getSiGesWEBSoap().getDocentes();
List<Docente> docentesLst = docentes.getDocente();
Iterator iter = docentesLst.iterator();
while(iter.hasNext())
{
Docente d = (Docente) iter.next();
System.out.println(d.getNomeAcademico());
}
 
}
 
}
/impl/src/java/com/google/api/ws/clients/Test.java
New file
0,0 → 1,19
package com.google.api.ws.clients;
 
import javax.xml.rpc.ServiceException;
import java.rmi.RemoteException;
 
/**
* @author Jorge Machado
* @date 30/Abr/2008
* @time 19:21:11
* @see com.google.api.ws.clients
*/
public class Test
{
public static void main(String[] args) throws RemoteException, ServiceException {
GoogleSearchService googleSearchService = new GoogleSearchService_Impl();
GoogleSearchResult result = googleSearchService.getGoogleSearchPort().doGoogleSearch(null,"jorge",0,10,false,null,false,null,null,null);
System.out.println(result.getEstimatedTotalResultsCount());
}
}
/impl/src/doc/planoTrabalho.xls
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/impl/src/web/teste.jsp
1,13 → 1,38
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<html>
<head>
<title>My Google AJAX Search API Application</title>
<script src="http://www.google.com/jsapi?key=ABQIAAAADxvyl7Xh60gdXI_1zKmmGRRd06UxSSW2VZkRedTOEJUPCAJQLRROEqUvchzdGX57xPqsbbCUOvx1rA" type="text/javascript"></script>
<script language="Javascript" type="text/javascript">
//<![CDATA[
 
google.load("search", "1");
 
<html:form action="/teste">
<input type="hidden" name="dispatch" value="save">
function OnLoad() {
// Create a search control
var searchControl = new google.search.SearchControl();
 
Nome <html:text property="teste.name"/><br>
Morada <html:text property="teste.morada"/><br>
<html:submit/>
</html:form>
// Add in a full set of searchers
 
 
var siteSearch = new google.search.WebSearch();
siteSearch.setSiteRestriction("www.estgp.pt");
searchControl.addSearcher(siteSearch);
 
 
// Tell the searcher to draw itself and tell it where to attach
searchControl.draw(document.getElementById("searchcontrol"));
 
// Execute an inital search
searchControl.execute("Google");
}
google.setOnLoadCallback(OnLoad);
 
//]]>
</script>
</head>
<body>
<div id="searchcontrol">Loading...</div>
</body>
</html>
/impl/src/web/admin/announcements/submitAnnouncement.jsp
14,7 → 14,7
<html:hidden property="role"/>
<html:hidden property="announcementView.id"/>
 
<input type="hidden" name="dispatch" value="addRole">
<input type="hidden" name="dispatch" value="removeRole">
<table class="form">
 
<estgweb:isAdmin>
77,7 → 77,7
<jomm:message patternMessage="user.role.{0}" name0="item"/>
</jomm:option>
</logic:iterate>
<input type="button" value="<bean:message key="add"/>" onclick="set(this.form,'addRole');this.form.submit()">
<input type="button" value="<bean:message key="add"/>" onclick="set(this.form,'addRole');this.form.submit();">
</logic:present>
</estgweb:isAdmin>
<estgweb:isNotAdmin>
94,7 → 94,7
<logic:notEmpty name="AnnouncementsForm" property="selectedRoles">
<ul>
<logic:iterate id="item" name="AnnouncementsForm" property="selectedRoles">
<li><jomm:message patternMessage="user.role.{0}" name0="item"/> <a href="AnnouncementForm.role.value='${item}';set(AnnouncementsForm,'removeRole');AnnouncementForm.submit();"/></li>
<li><jomm:message patternMessage="user.role.{0}" name0="item"/><input type="button" value="<bean:message key="remove"/>" onclick="AnnouncementsForm.role.value='${item}';set(this.form,'removeRole');this.form.submit();"></li>
</logic:iterate>
</ul>
</logic:notEmpty>
117,7 → 117,7
<bean:message key="announcement.startDate"/>
</th>
<td>
<html:text styleClass="date" property="startDate" styleId="startDate" readonly="true"/> <a href="#" onClick="cal.select(getObjectById('startDate'),'anchor1','yyyy/MM/dd'); return false;" name="anchor1" id="anchor1">Escolha a Data</A>
<html:text styleClass="date" property="startDate" styleId="startDate" readonly="true"/> <a href="#" onClick="cal.select(getObjectById('startDate'),'anchor1','yyyy/MM/dd'); return false;" name="anchor1" id="anchor1">Escolha a Data</A> <a href="#" onClick="AnnouncementsForm.startDate.value=null;"><bean:message key="remove"/></A>
</td>
</tr>
<tr>
125,7 → 125,7
<bean:message key="announcement.expireDate"/>
</th>
<td>
<html:text styleClass="date" property="expireDate" styleId="expireDate" readonly="true"/> <a href="#" onClick="cal.select(getObjectById('expireDate'),'anchor2','yyyy/MM/dd'); return false;" name="anchor2" id="anchor2">Escolha a Data</A>
<html:text styleClass="date" property="expireDate" styleId="expireDate" readonly="true"/> <a href="#" onClick="cal.select(getObjectById('expireDate'),'anchor2','yyyy/MM/dd'); return false;" name="anchor2" id="anchor2">Escolha a Data</A> <a href="#" onClick="AnnouncementsForm.expireDate.value=null;"><bean:message key="remove"/></A>
</td>
</tr>
</estgweb:isAdmin>
/impl/src/web/css/style.css
1,36 → 1,46

 
 
 
/*********** Site Struture *************/
BODY *, .contentPortal, .contentPortal p, .contentPortal li
{
FONT-FAMILY: "Lucida Grande","Trebuchet MS","bitstream vera sans",Verdana,Arial,Helvetica,sans-serif;
FONT-SIZE:0.98em;
BODY *, .contentPortal, .contentPortal p, .contentPortal li {
FONT-FAMILY: "bitstream vera sans", Verdana, Arial, Helvetica, sans-serif;
FONT-SIZE: 11px;
}
 
.pFooter
{
background-color:#8EC73F;
font-size:0.7em;
/****************************Text Size*************************************************/
 
h1 {
font-size: 1.2em;
}
 
h2 {
font-size: 1em;
}
 
.pFooter {
background-color: #8EC73F;
font-size: 0.7em;
border-top: 1px solid #cccccc;
border-bottom: 1px solid #cccccc;
text-align:right;
clear:both;
text-align: right;
clear: both;
 
}
.pFooter a
{
font-style:italic;
 
.pFooter a {
font-style: italic;
}
 
#body
{
width:950px;
#body {
width: 950px;
margin-left: auto;
margin-right: auto;
}
 
#pageStructure
{
border-collapse :collapse ;
 
#pageStructure {
border-collapse: collapse;
LEFT: 0;
WIDTH: 100%;
}
41,43 → 51,98
WIDTH: 100%
} */
 
TD#leftPage
{
TD#leftPage {
VERTICAL-ALIGN: top;
WIDTH: 160px;
text-align:left;
text-align: left;
}
 
#leftPagePosition
{
#leftPagePosition {
CLEAR: left;
LEFT: 0;
FLOAT: left;
PADDING-TOP: 43px;
}
 
TD.rightPage,TD.rightPagePortal
{
TD.rightPage, TD.rightPagePortal {
VERTICAL-ALIGN: top;
WIDTH: 160px;
/*WIDTH: 160px;*/
}
 
.rightPagePosition
{
.rightPagePosition {
CLEAR: left;
LEFT: 0;
FLOAT: left;
PADDING-BOTTOM: 20px;
}
 
#footer
 
/*****************************************************************************************/
 
/************************************** Content Structure ********************************/
.contentPortal {
padding-left: 10px;
}
 
.content h2 {
font-size: 1em;
}
#pageStructure .content
{
border: 0;
}
.content .imageAnnouncement img
{
width:341px;
height:167px;
}
 
.content
{
border: 1px solid #8ec73f ;
}
 
.content a:link, .content a:visited {
color: #4d4d4d;
}
 
.content a:hover {
color: #8EC73F
}
 
.content, .contentPortal {
LEFT: 0;
RIGHT: 0;
WIDTH: 100%;
PADDING-BOTTOM: 10px;
VERTICAL-ALIGN: top;
}
 
.contentPortal {
border-left: #8EC73F solid 2px;
border-top: #8EC73F solid 2px;
border-bottom: #8EC73F solid 2px;
}
 
.rightPagePortal {
background-color: #ededed;
border-right: #8EC73F solid 2px;
border-top: #8EC73F solid 2px;
border-bottom: #8EC73F solid 2px;
}
 
 
/*****************************************************************************************/
 
/************************************* Footer Modules ***********************************/
 
 
#footer {
HEIGHT: 50px;
PADDING-TOP: 5px;
}
 
#footerStructure TABLE
{
#footerStructure TABLE {
BORDER-RIGHT: 0;
BORDER-TOP: 0;
RIGHT: 0;
90,653 → 155,626
TOP: 0;
border-spacing: 0
}
#footerStructure TABLE TD
{
 
#footerStructure TABLE TD {
VERTICAL-ALIGN: top
}
/****************************Text Size*************************************************/
 
h1
{
font-size:1.2em;
#license UL {
COLOR: #4D4D4D;
PADDING-RIGHT: 0;
PADDING-LEFT: 0;
FONT-SIZE: 12px;
TEXT-ALIGN: center;
MARGIN: 0;
LIST-STYLE-TYPE: none;
}
h2
{
font-size:1em;
 
#footer #organizations {
}
 
/*************************************************************************************/
#footer #sponsors {
}
 
/*****************************Portal Page Template************************************/
.portal
{
#footer a:link, #footer a:visited {
color: #4d4d4d;
}
.portalContent
{
padding-left:10px;
 
#footer a:hover {
color: #8EC73F;
}
 
td.column
{
vertical-align:top;
 
/*********************************************************************************/
 
/****************** topnav **********************/
 
#topnav {
color: #FFFFFF;
text-decoration: none;
BACKGROUND-COLOR: #8EC73F;
FONT: 11px / 20px "bitstream vera sans", "Lucida Grande", "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif
}
 
.portalContent
{
padding-left:10px;
padding-right:10px;
#topnav LI A:hover {
COLOR: #4d4d4d;
BACKGROUND-COLOR: #FFFFFF
}
 
.navLeftMenu h2
{
font-size:0.9em;
#topnav LI A {
color: #FFFFFF;
text-decoration: none;
}
.navLeftMenu
{
font-size:0.7em;
 
#topnav UL {
PADDING-RIGHT: 0;
PADDING-LEFT: 0;
PADDING-BOTTOM: 10px;
MARGIN: 0;
WIDTH: 155px;
LINE-HEIGHT: 1.5em;
PADDING-TOP: 0;
LIST-STYLE-TYPE: none
}
 
.block P,.navLeftMenu h2
{
background-color:#ededed;
padding-left:10px;
margin:0;
#topnav LI {
PADDING-RIGHT: 0;
DISPLAY: inline;
PADDING-LEFT: 0;
PADDING-BOTTOM: 0;
MARGIN: 0;
PADDING-TOP: 0;
}
 
 
/*****************************************************************
* Search Results
*
*****************************************************************/
 
#searchResults li h1 {
 
background-color: #D6F0B2;
border-bottom: green 1px solid;
padding:2px;
margin-bottom: 10px;
color:black;
}
 
.block UL
#searchResults
{
LIST-STYLE-TYPE: none;
 
padding-left:10px;
}
 
.block a:link
#searchResults li a
{
color:#4d4d4d;
text-decoration:none;
cursor:pointer;
}
 
.block a:visited
{
color:#4d4d4d;
text-decoration:none;
}
#searchresults div.result {
 
.block a:hover,.linkUnderlineGrayToGreen a:hover
{
color:#8EC73F;
text-decoration:underline;
margin-left: 20px;
border-bottom: 1px solid #8ec73f;
margin-bottom: 15px;
padding-bottom: 0;
}
 
.portalLeftAnnouncements table
#searchResults li .module
{
table-layout:fixed;
width:180px;
padding-top:10px;
font-size:0.8em;
position:absolute;
visibility:hidden;
}
#searchResults li .module .result h2 {
 
.portalRightAnnouncements table
{
table-layout:fixed;
width:250px;
font-size:0.8em;
 
color: black;
padding-top: 0;
margin-top: 10px;
cursor: pointer;
padding-bottom: 0;
}
 
.portalAnnouncement a:link,.portalAnnouncement a:visited
{
margin:0;
#searchResults li .module .result p {
margin-top: 5px;
cursor: pointer;
margin-bottom: 0;
padding-bottom: 2px;
padding-top: 0;
}
 
.portalAnnouncementTitle a
#searchResults .googleLogo
{
color:#000000;
float:right;
}
 
.portalAnnouncement a
#searchResults .googleLogo td
{
text-decoration :none;
}
 
.portalAnnouncementText a:link,.portalAnnouncementText a:visited
{
color:#4d4d4d;
vertical-align:middle;
color: #676767;
text-align: right;
font-size: 11px;
margin-right: 2px;
}
 
.navleftMenu
#searchResults .googleLogo td img
{
width:180px;
padding-left:10px;
padding-top: 3px;
}
 
#portalMenu li.selected a
{
color:#8EC73F;
 
 
/*************************************************************************************/
 
/*****************************Portal Page Template************************************/
.portal {
}
/**********************************************************************************/
 
/****************************** Standard Page Template ***************************/
.contentPortal h1
{
background-color:#8EC73F;
color:#FFFFFF;
font-size:1.2em;
.portalContent {
padding-left: 10px;
}
 
.contentPortal h2
{
font-size:1em;
td.column {
vertical-align: top;
}
 
.contentPortal
{
font-size:0.75em;
.portalContent {
padding-left: 10px;
padding-right: 10px;
}
 
.contentPortal p
{
margin:0;
color:#4d4d4d;
.navLeftMenu h2 {
}
 
.section
{
margin-bottom:10px;
.navLeftMenu {
}
 
.contentPortal li a:link,.contentPortal a:visited,.contentPortal li
{
color:#4d4d4d;
.block P, .navLeftMenu h2 {
background-color: #ededed;
padding-left: 10px;
margin: 0;
 
}
.contentPortal li a:hover
{
color:#8EC73F;
}
 
.listClean UL /*Lista sem nada*/
{
.block UL {
LIST-STYLE-TYPE: none;
padding:0;
padding-left: 10px;
}
 
.listCircleWhite UL/*Lista circulo branco*/
{
LIST-STYLE-TYPE: circle;
.block a:link {
color: #4d4d4d;
text-decoration: none;
}
 
.listDecimal UL/*Lista decimal*/
{
LIST-STYLE-TYPE: decimal;
.block a:visited {
color: #4d4d4d;
text-decoration: none;
}
 
.listDisc UL/*Lista circulo preto*/
{
LIST-STYLE-TYPE: disc;
.block a:hover, .linkUnderlineGrayToGreen a:hover {
color: #8EC73F;
text-decoration: underline;
}
 
.listSquare UL/*Lista quadrado preto*/
{
LIST-STYLE-TYPE: square;
.portalLeftAnnouncements table {
table-layout: fixed;
/*width: 180px;*/
padding-top: 10px;
font-size: 0.8em;
}
 
.portalLeftAnnouncements img
{
height:133px;
width:177px;
.portalRightAnnouncements table {
table-layout: fixed;
/*width: 250px;*/
font-size: 0.8em;
}
 
/*PASSA PARA AQUI TUDO O QUE SEJA DE BLOCOS E VAMOS LIMPAR TUDO */
.portalAnnouncement a:link, .portalAnnouncement a:visited {
margin: 0;
}
 
/*Isto tem de ser generico o H1 jáe um header nao necessita da classe .header para nada*/
/*Block Titles*/
.content h1, #lastnews h1
{
margin-bottom:1px;
color:#FFFFFF;
background-color:#8EC73F;
padding-left:10px;
.portalAnnouncementTitle a {
color: #000000;
}
 
/*********************************************************************************/
/******************************* Index Page***************************************/
#flashTopNews * td, #flashCenterNews * td, #flashBottomNews * td
{
vertical-align:top;
.portalAnnouncement a {
text-decoration: none;
}
/*FlashTopNews*/
#flashTopNews
{
padding:0;
margin:0;
 
.portalAnnouncementText a:link, .portalAnnouncementText a:visited {
color: #4d4d4d;
}
#flashTopNews .container
{
background-color:#4d4d4d;
height:100px;
width:100%;
margin:0;
 
/* todo FABIO
todo Left Manus???? ao pe de portalMenus isto esta uma confusao*/
.navleftMenu {
/*width: 180px;*/
padding-left: 10px;
}
#flashTopNews .container .textContainer
{
margin:0;
text-align :justify;
 
#portalMenu li.selected a {
color: #8EC73F;
}
#flashTopNews .container .imageContainer
{
margin:0;
text-align :right;
text-decoration:none;
 
 
 
 
 
 
 
 
/**********************************************************************************
* TEMPLATES ESPECIFICOS:
*
* ContentPortal
* Standard Template
* IndexPage
*
****************************** ContentPortal ***************************/
.contentPortal h1 {
background-color: #8EC73F;
color: #FFFFFF;
font-size: 1.2em;
}
#flashTopNews img
{
height:167px;
width:341px;
 
.contentPortal h2 {
font-size: 1em;
}
#flashTopNews * td
{
vertical-align:top;
 
.contentPortal {
font-size: 0.75em;
}
#flashTopNews .container .textContainer h2
{
margin:0;
margin-top:1px;
 
.contentPortal p {
margin: 0;
color: #4d4d4d;
}
#flashTopNews .container .textContainer p
{
margin:0;
margin-top:1px;
 
.section {
margin-bottom: 10px;
}
#flashTopNews h2 a:link,#flashTopNews h2 a:visited
{
color:#8EC73F;
font-weight:bold;
text-decoration:none;
 
.contentPortal li a:link, .contentPortal a:visited, .contentPortal li {
color: #4d4d4d;
}
#flashTopNews p a:link, #flashTopNews p a:visited
{
color:#FFFFFF;
text-decoration:none;
 
.contentPortal li a:hover {
color: #8EC73F;
}
 
/*FlashCenterNews*/
#flashCenterNews
.listClean UL /*Lista sem nada*/
{
margin-top:2px;
border-top-style: dotted;
border-top-color:gray;
LIST-STYLE-TYPE: none;
padding: 0;
}
#flashCenterNews .container
 
.listCircleWhite UL /*Lista circulo branco*/
{
width:100%;
margin:0;
LIST-STYLE-TYPE: circle;
}
#flashCenterNews .textContainer
 
.listDecimal UL /*Lista decimal*/
{
padding-top :10px;
LIST-STYLE-TYPE: decimal;
}
#flashCenterNews h2 a:link,#flashCenterNews h2 a:visited
 
.listDisc UL /*Lista circulo preto*/
{
color:#8EC73F;
font-weight:bold;
text-decoration:none;
LIST-STYLE-TYPE: disc;
}
#flashCenterNews p a:link, #flashCenterNews p a:visited
 
.listSquare UL /*Lista quadrado preto*/
{
color:#4d4d4d;
text-decoration:none;
LIST-STYLE-TYPE: square;
}
#flashCenterNews img,#flashCenterNews td.imageContainer
{
width:133px;
height:133px;
 
.portalLeftAnnouncements img {
height: 133px;
width: 177px;
}
 
/*PASSA PARA AQUI TUDO O QUE SEJA DE BLOCOS E VAMOS LIMPAR TUDO */
 
/*Isto tem de ser generico o H1 jáe um header nao necessita da classe .header para nada*/
/*Block Titles*/
.content h1, #lastnews h1 {
margin-bottom: 1px;
color: #FFFFFF;
background-color: #8EC73F;
padding-left: 10px;
}
 
/*FlashBottomNews*/
#flashBottomNews img
{
width:100px;
height:100px;
/*********************************************************************************/
/******************************* Index Page***************************************/
#flashTopNews * td, #flashCenterNews * td, #flashBottomNews * td {
vertical-align: top;
}
 
#flashBottomNews h2 a:link,#flashBottomNews h2 a:visited
{
color:#8EC73F;
font-weight:bold;
/*FlashTopNews*/
#flashTopNews {
padding: 0;
margin: 0;
}
 
#flashBottomNews p a:link,#flashBottomNews p a:visited
{
color:#4d4d4d;
#flashTopNews .container {
background-color: #4d4d4d;
height: 95px;
width: 100%;
margin: 0;
}
 
/*Last News Block*/
#lastnews
{
font-size:0.8em;
#flashTopNews .container .textContainer {
margin: 0;
text-align: justify;
}
 
#lastnews ul
{
list-style: none;
width:160px;
LIST-STYLE-TYPE: none;
padding:0;
margin:0;
#flashTopNews .container .imageContainer {
margin: 0;
text-align: right;
text-decoration: none;
}
#lastnews li
{
margin:0;
padding:0;
 
#flashTopNews img {
height: 167px;
width: 341px;
}
#lastnews li h2
{
padding:0;
padding-left:2px;
margin:1px;
 
#flashTopNews * td {
vertical-align: top;
}
#lastnews li h2 a,.linkLeftMenu a
{
text-decoration:none;
 
#flashTopNews .container .textContainer h2 {
margin: 0;
margin-top: 1px;
}
#lastnews li h2 a:link,.linkLeftMenu a:link
{
color:#4d4d4d;
 
#flashTopNews .container .textContainer p {
margin: 0;
margin-top: 1px;
}
#lastnews li h2 a:visited,.linkLeftMenu a:visited
{
color:#4d4d4d;
 
#flashTopNews h2 a:link, #flashTopNews h2 a:visited {
color: #8EC73F;
font-weight: bold;
text-decoration: none;
}
#lastnews li h2 a:hover,.linkLeftMenu a:hover
{
color:#8EC73F;
 
#flashTopNews p a:link, #flashTopNews p a:visited {
color: #FFFFFF;
text-decoration: none;
}
 
/**/
/*FlashCenterNews*/
#flashCenterNews {
margin-top: 2px;
border-top-style: dotted;
border-top-color: gray;
}
 
/*LEFT MENUS*/
#leftMenuModule h2
{
MARGIN: 0;
color:#8EC73F;
#flashCenterNews .container {
width: 100%;
margin: 0;
}
#leftMenuModule UL
{
MARGIN: 0;
WIDTH: 155px;
 
#flashCenterNews .textContainer {
padding-top: 10px;
}
/*********************************************************************************/
 
/****************** topnav **********************/
#flashCenterNews h2 a:link, #flashCenterNews h2 a:visited {
color: #8EC73F;
font-weight: bold;
text-decoration: none;
}
 
#topnav
{
color:#FFFFFF;
text-decoration:none;
BACKGROUND-COLOR: #8EC73F;
FONT: 11px/20px "bitstream vera sans", "Lucida Grande", "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif
#flashCenterNews p a:link, #flashCenterNews p a:visited {
color: #4d4d4d;
text-decoration: none;
}
 
#topnav LI A:hover
{
COLOR:#4d4d4d;
BACKGROUND-COLOR: #FFFFFF
#flashCenterNews img, #flashCenterNews td.imageContainer {
width: 133px;
height: 133px;
}
#topnav LI A
{
color:#FFFFFF;
text-decoration:none;
}
 
#topnav UL
{
PADDING-RIGHT: 0;
PADDING-LEFT: 0;
PADDING-BOTTOM: 10px;
MARGIN: 0;
WIDTH: 155px;
LINE-HEIGHT: 1.5em;
PADDING-TOP: 0;
LIST-STYLE-TYPE: none
/*FlashBottomNews*/
#flashBottomNews img {
width: 100px;
height: 100px;
}
 
#topnav LI
{
PADDING-RIGHT: 0;
DISPLAY: inline;
PADDING-LEFT: 0;
PADDING-BOTTOM: 0;
MARGIN: 0;
PADDING-TOP: 0;
#flashBottomNews h2 a:link, #flashBottomNews h2 a:visited {
color: #8EC73F;
font-weight: bold;
}
/*****************************************************************************************/
 
/************************************** Content Structure ********************************/
.contentPortal
{
padding-left:10px;
padding-top:10px;
#flashBottomNews p a:link, #flashBottomNews p a:visited {
color: #4d4d4d;
}
 
.content h2
{
font-size:1em;
/*Last News Block*/
#lastnews {
}
 
.content .imageAnnouncement img
{
width:341px;
height:167px;
#lastnews ul {
list-style: none;
width: 160px;
LIST-STYLE-TYPE: none;
padding: 0;
margin: 0;
}
 
.content
{
font-size:0.8em;
#lastnews li {
margin: 0;
padding: 0;
}
 
.content a:link,.content a:visited
{
color:#4d4d4d;
#lastnews li h2 {
padding: 0;
padding-left: 2px;
margin: 1px;
}
 
.content a:hover
{
color:#8EC73F
#lastnews li h2 a, .linkLeftMenu a {
text-decoration: none;
}
 
.content,.contentPortal
{
LEFT: 0;
RIGHT: 0;
WIDTH: 100%;
PADDING-BOTTOM: 10px;
VERTICAL-ALIGN: top;
#lastnews li h2 a:link, .linkLeftMenu a:link {
color: #4d4d4d;
}
 
.contentPortal
{
border-left: #8EC73F solid 2px;
border-top: #8EC73F solid 2px;
border-bottom: #8EC73F solid 2px;
#lastnews li h2 a:visited, .linkLeftMenu a:visited {
color: #4d4d4d;
}
 
.rightPagePortal
{
background-color:#ededed;
border-right: #8EC73F solid 2px;
border-top: #8EC73F solid 2px;
border-bottom: #8EC73F solid 2px;
#lastnews li h2 a:hover, .linkLeftMenu a:hover {
color: #8EC73F;
}
 
/**/
 
/*****************************************************************************************/
 
/************************************* Footer Modules ***********************************/
 
#license UL
{
COLOR: #4D4D4D;
PADDING-RIGHT: 0;
PADDING-LEFT: 0;
FONT-SIZE: 12px;
TEXT-ALIGN: center;
/*LEFT MENUS*/
#leftMenuModule h2 {
MARGIN: 0;
LIST-STYLE-TYPE: none;
color: #8EC73F;
}
 
#footer #organizations
.linkLeftMenu li
{
}
 
#footer #sponsors
{
border-bottom:1px solid #8ec73f;
}
 
#footer a:link,#footer a:visited
.linkLeftMenu li:hover
{
color:#4d4d4d;
}
#footer a:hover
#leftMenuModule UL {
MARGIN: 0;
/*WIDTH: 155px;*/
}
.linkLeftMenu UL li
{
color:#8EC73F;
width:110px;
}
 
 
/**************************************************************************************/
 
/******************************** Bar Module Color ************************************/
TD #topBar
{
font-weight:bold;
color:white;
background-color:#8EC73F;
padding-left:10px;
TD #topBar {
font-weight: bold;
color: white;
background-color: #8EC73F;
padding-left: 10px;
FONT-SIZE: 18px
}
 
/**************************************************************************************/
 
/******************************** Background Color ************************************/
/*Gray background*/
#backOne
{
background-color:#4D4D4D;
#backOne {
background-color: #4D4D4D;
}
 
/**************************************************************************************/
 
/*************************Staff Links Structure***************************************/
.staffLinks P
{
font-weight :bold;
.staffLinks P {
font-weight: bold;
}
 
/*************************************************************************************/
form , .boxHorizontal
{
margin:0;
padding:3px;
border:0px #793B0D solid ;
background-color:#FFFFFF;
 
form, .boxHorizontal {
margin: 0;
border: 0 #793B0D solid;
background-color: #FFFFFF;
}
.boxHorizontal
{
padding-top:33px;
padding-left:180px;
 
.boxHorizontal {
padding-top: 5px;
}
 
.form th, .boxHorizontal th
{
margin:0;
padding-left:10px;
padding-top:3px;
padding-bottom:3px;
padding-right:15px;
color:#4d4d4d;
.form th, .boxHorizontal th {
margin: 0;
padding-left: 10px;
padding-top: 3px;
padding-bottom: 3px;
padding-right: 15px;
color: #4d4d4d;
background-color: #FFFFFF;
border: 0px solid #793B0D;
font-size:0.86em;
font-weight:bold;
font-family:Helvetica,sans-serif;
text-align:left;
font-size: 0.86em;
font-weight: bold;
font-family: Helvetica, sans-serif;
text-align: left;
}
 
.form td, .boxHorizontal td
{
margin:0;
padding-left:10px;
padding-top:3px;
padding-bottom:3px;
padding-right:15px;
color:#793B0D;
.form td, .boxHorizontal td {
margin: 0;
padding-left: 10px;
padding-top: 3px;
padding-bottom: 3px;
padding-right: 15px;
color: #793B0D;
background-color: #FFFFFF;
border: 0px solid #793B0D;
font-size:0.8em;
font-family:Helvetica,sans-serif;
vertical-align:middle;
border: 0 solid #793B0D;
font-size: 0.8em;
font-family: Helvetica, sans-serif;
vertical-align: middle;
}
 
.form .buttons td, .boxHorizontal .buttons td
{
text-align:center;
.form .buttons td, .boxHorizontal .buttons td {
text-align: left;
background-color: #FFFFFF;
}
 
.form textarea, .boxHorizontal textarea
{
width:600px;
height:300px;
.form textarea, .boxHorizontal textarea {
width: 600px;
height: 300px;
 
}
 
.form input[type="text"], .form input[type="password"]
{
width:600px;
.form input[type="text"], .form input[type="password"] {
width: 600px;
}
.form input.date
{
width:100px;
 
.form input.date {
width: 100px;
}
 
 
 
 
/* PAGE LAYOUTS */
 
.seccao, .seccao p
{
padding:30px;
font-size:0.95em;
.seccao, .seccao p {
padding: 10px;
font-size: 0.95em;
font-family: Helvetica, sans-serif;
}
.seccao p
{
padding:4px;
 
.seccao p {
padding: 4px;
}
.seccao h1
{
font-size:1.1em;
font-weight:bold;
font-family:Helvetica,sans-serif;
color:red;
 
.seccao h1 {
font-size: 1.1em;
font-weight: bold;
font-family: Helvetica, sans-serif;
color: red;
}
 
.seccao .seccao h1
{
font-size:1em;
font-weight:bold;
font-family: Helvetica,sans-serif;
color:red;
.seccao .seccao h1 {
font-size: 1em;
font-weight: bold;
font-family: Helvetica, sans-serif;
color: red;
}
 
 
/*Butões*/
 
input[type="text"] , input[type="password"]
{
FONT-SIZE: 0.8em;
FONT-FAMILY:Helvetica;
input[type="text"], input[type="password"] {
}
 
input[type="button"], input[type="submit"]
{
input[type="button"], input[type="submit"] {
color: #4d4d4d;
border-top-width: 1px;
border-right-width: 1px;
746,7 → 784,7
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-top-color:#4d4d4d;
border-top-color: #4d4d4d;
border-right-color: #4d4d4d;
border-bottom-color: #4d4d4d;
border-left-color: #4d4d4d;
756,8 → 794,7
background-attachment: scroll;
}
 
input[type="button"]:hover, input[type="submit"]:hover
{
input[type="button"]:hover, input[type="submit"]:hover {
background-color: #8EC73F;
background-image: none;
background-repeat: repeat;
767,97 → 804,126
}
 
/*Errors and Warnings*/
.statusOK
{
.statusOK {
padding: 2px;
list-style-type: none;
color: green;
background-color: #FFEEDD;
}
 
.statusERROR
{
color:red;
.statusERROR {
color: red;
}
 
.statusWARNING
{
.statusWARNING {
padding: 2px;
list-style-type: none;
color: yellow;
background-color: black;
}
.requiredField{
 
.requiredField {
color: red;
}
 
.statusSearch{
color:lightblue;
.statusSearch {
color: lightblue;
}
 
/********************************************** Navigation Menu ********************************/
ul.menubar{
ul.menubar {
margin: 0px;
padding: 0px;
background-color: #FFFFFF; /* IE6 Bug */
font-size: 100%;
 
}
.submenu
{
FONT-FAMILY: "Lucida Grande","Trebuchet MS","bitstream vera sans",Verdana,Arial,Helvetica,sans-serif;
font-size:0.8em;
 
.submenu {
FONT-FAMILY: "Lucida Grande", "Trebuchet MS", "bitstream vera sans", Verdana, Arial, Helvetica, sans-serif;
font-size: 0.8em;
}
 
.menu
{
FONT-FAMILY: "Lucida Grande","Trebuchet MS","bitstream vera sans",Verdana,Arial,Helvetica,sans-serif;
font-size:0.8em;
.menu {
FONT-FAMILY: "Lucida Grande", "Trebuchet MS", "bitstream vera sans", Verdana, Arial, Helvetica, sans-serif;
font-size: 0.8em;
}
 
ul.menubar .submenu{
margin: 0px;
padding: 0px;
ul.menubar .submenu {
margin: 0;
padding: 0;
list-style: none;
background-color: #FFFFFF;
float:left;
float: left;
}
 
ul.menubar ul.menu{
ul.menubar ul.menu {
display: none;
position: absolute;
margin: 0px;
margin: 0;
}
 
ul.menubar a{
ul.menubar a {
 
display:block;
display: block;
text-decoration: none;
color: #4D4D4D;
padding-left:5px;
padding-right:5px;
padding-top:2px;
padding-bottom:2px;
padding-left: 5px;
padding-right: 5px;
padding-top: 2px;
padding-bottom: 2px;
}
 
ul.menubar a:hover{
display:block;
ul.menubar a:hover {
display: block;
text-decoration: none;
color: #4D4D4D;
padding-left:5px;
padding-right:5px;
padding-top:2px;
padding-bottom:2px;
padding-left: 5px;
padding-right: 5px;
padding-top: 2px;
padding-bottom: 2px;
}
 
.menuTop
 
 
#menuTop
{
width:100%;
}
#menuTop td.searchTab form
{
text-align:right;
}
#menuTop td.searchTab form table td
{
vertical-align:middle;
}
 
#menuTop td.searchTab input[type="text"]
{
width:200px;
}
 
.menu a:hover{
 
display:block;
#menuTop form td,#menuTop form th
{
font-size: 0.85em;
}
#menuTop td.searchTab
{
float:right;
text-align:left;
}
#menuTop td
{
vertical-align:top;
}
 
 
 
.menu a:hover {
 
display: block;
/* border-left: none;
border-right: none;
border-top: none;
865,7 → 931,7
 
}
 
ul.menu, ul.menu ul{
ul.menu, ul.menu ul {
margin: 0;
padding: 2px;
/* border-left: 1px solid #ccc;
875,27 → 941,25
background-color: #FFFFFF; /* IE6 Bug */
}
 
ul.menu li{
ul.menu li {
position: relative;
list-style: none;
/*border: 0px;*/
opacity:0.9;
list-style: none; /*border: 0px;*/
opacity: 0.9;
background-color: #4D4D4D;
width:250px;
width: 250px;
}
 
ul.menu li a{
ul.menu li a {
display: block;
text-decoration: none;
/* border-bottom: 0px;*/
text-decoration: none; /* border-bottom: 0px;*/
/*color: #4D4D4D;*/
/* background-color: #FFFFFF; */
color: #4d4d4d;
background-color: #CCCCCC;
padding-left:2px;
padding-right:2px;
padding-top:2px;
padding-bottom:2px;
padding-left: 2px;
padding-right: 2px;
padding-top: 2px;
padding-bottom: 2px;
}
 
/*
909,10 → 973,9
padding-right:2px;
}
*/
.shadow UL
{
background :transparent;
width:250px;
.shadow UL {
background: transparent;
width: 250px;
color: inherit;
}
 
923,27 → 986,34
} */
 
/* Fix IE. Hide from IE Mac \*/
* html ul.menu li { float: left; height: 1%; }
* html ul.menu li a { height: 1%; }
* html ul.menu li {
float: left;
height: 1%;
}
 
* html ul.menu li a {
height: 1%;
}
 
/* End */
 
ul.menu ul{
ul.menu ul {
position: absolute;
display: none;
left: 149px; /* Set 1px less than menu width */
top: 0px;
}
 
ul.menu li.submenu ul
{
ul.menu li.submenu ul {
display: none;
} /* Hide sub-menus initially */
}
 
ul.menu li a:hover
{
/* Hide sub-menus initially */
 
ul.menu li a:hover {
background-color: #8EC73F;
color: #FFFFFF;
text-decoration :underline;
text-decoration: underline;
}
 
/***********************************************************************************************/
/impl/src/web/js/functions.js
30,4 → 30,4
f = fso.GetFile(path);
 
return(new Date(f.DateLastModified).getDate());
}
}
/impl/src/web/js/ajax.js
86,6 → 86,22
}
}
 
function hide(id,showId)
{
getObjectById(id).style.visibility='hidden';
getObjectById(id).style.position='absolute';
getObjectById(showId).style.visibility='visible';
getObjectById(showId).style.position='relative';
}
function show(id,hideId)
{
getObjectById(id).style.visibility='visible';
getObjectById(id).style.position='relative';
getObjectById(hideId).style.visibility='hidden';
getObjectById(hideId).style.position='absolute';
 
}
 
/**
* Creates a new XmlHttpObject
* @author Jorge Machado
158,7 → 174,25
}
 
 
/***************************************************
Search
***************************************************/
var xmlHttpSearch;
var searchResultsDiv;
 
function searchCall(div,query,searchType,page,module,action)
{
searchResultsDiv = div;
xmlHttpSearch=GetXmlHttpObject(stateChangedSearchCall);
startRequest(xmlHttpSearch,"dispatch=searchModule&query=" + query + "&searchType=" + searchType + "&page=" + page + "&module=" + module,"",stateChangedSearchCall,"",action);
}
function stateChangedSearchCall()
{
if (xmlHttpSearch.readyState==4 || xmlHttpSearch.readyState=="complete")
{
getObjectById(searchResultsDiv).innerHTML=xmlHttpSearch.responseText;
}
}
 
 
 
172,3 → 206,6
 
 
 
 
 
 
/impl/src/web/layout/ajaxLayout.jsp
File deleted
/impl/src/web/layout/emptyLayout.jsp
New file
0,0 → 1,4
<%@page pageEncoding="UTF-8" contentType="text/html"%>
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
<tiles:insert attribute="body" />
 
/impl/src/web/layout/topnav.jsp
14,13 → 14,13
if (navPlace.getUrl() != null) {
%>
<li class="navPlace"><a
href="<%=request.getContextPath() + navPlace.getUrl()%>"><%=MessageResources.getMessage(request, navPlace.getKey())%>
href="<%=request.getContextPath() + navPlace.getUrl()%>"><%=navPlace.getMessage(request)%>
</a> &gt;</li>
<%
}
else {
%>
<li class="navPlace"><%=MessageResources.getMessage(request, navPlace.getKey())%>
<li class="navPlace"><%=navPlace.getMessage(request)%>
</li>
<%
}
/impl/src/web/layout/navigationTop.jsp
6,73 → 6,139
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/tlds/estgweb.tld" prefix="estgweb" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/tlds/estgweb.tld" prefix="estgweb" %>
 
<div class="menuTop">
<table id="menuTop" cellpadding="0" cellspacing="0">
<tr>
<td>
<ul id="menu_dropdown" class="menubar">
<li class="submenu"><a href="#">Apresentação</a>
<div class="shadow ">
<ul class="menu">
<li><a href="#">Mensagem do Presidente</a></li>
<li><a href="#">A ESTG e a sua missão</a></li>
<li><a href="#">História</a></li>
<li><a href="#">Localização</a></li>
<li><a href="#">Factos e números</a></li>
<li><a href="#">A ESTG em Fotografias</a></li>
</ul>
</div>
</li>
<li class="submenu"><a href="#">Organização</a>
<div class="shadow ">
<ul class="menu">
<li><a href="#">Assembleia de Representantes</a></li>
<li><a href="#">Conselho Directivo</a></li>
<li><a href="#">Conselho Ciêntifico</a></li>
<li><a href="#">Conselho Pedagógico</a></li>
</ul>
</div>
</li>
<li class="submenu"><a href="#">Áreas</a>
<div class="shadow ">
<ul class="menu">
<li><a href="#">Engenharias</a></li>
<li><a href="#">Ciências Empresariais</a></li>
<li><a href="#">Ciências Humanas</a></li>
<li><a href="#">Design</a></li>
</ul>
</div>
</li>
<li class="submenu"><a href="#">Ensino</a>
<div class="shadow ">
<ul class="menu">
<li><a href="#">Cursos</a></li>
<li><a href="#">Mestrados</a></li>
<li><a href="#">Pós Graduações</a></li>
<li><a href="#">Cet´s</a></li>
<li><a href="#">Formação TIC</a></li>
<li><a href="#">Formação CTOC</a></li>
<li><a href="#">Acções de Formação de Curta Duração</a></li>
</ul>
</div>
</li>
<li class="submenu"><a href="#">I&D</a>
<div class="shadow ">
<ul class="menu">
<li><a href="#">OTIC-INOVAA</a></li>
<li><a href="#">POLIEMPRIENDE</a></li>
<li><a href="#">Gab. Empreendedorismo</a></li>
<li><a href="#">SGQ</a></li>
<li><a href="#">Protocolos com o Exterior</a></li>
<li><a href="#">LAQI Lab. Anal. Qui. e Industriais</a></li>
</ul>
</div>
</li>
<li class="submenu"><a href="#">Apresentação</a>
 
<div class="shadow ">
<ul class="menu">
<li><a href="#">Mensagem do Presidente</a></li>
<li><a href="#">A ESTG e a sua missão</a></li>
<li><a href="#">História</a></li>
<li><a href="#">Localização</a></li>
<li><a href="#">Factos e números</a></li>
<li><a href="#">A ESTG em Fotografias</a></li>
</ul>
</div>
</li>
<li class="submenu"><a href="#">Organização</a>
 
<div class="shadow ">
<ul class="menu">
<li><a href="#">Assembleia de Representantes</a></li>
<li><a href="#">Conselho Directivo</a></li>
<li><a href="#">Conselho Ciêntifico</a></li>
<li><a href="#">Conselho Pedagógico</a></li>
</ul>
</div>
</li>
<li class="submenu"><a href="#">Áreas</a>
 
<div class="shadow ">
<ul class="menu">
<li><a href="#">Engenharias</a></li>
<li><a href="#">Ciências Empresariais</a></li>
<li><a href="#">Ciências Humanas</a></li>
<li><a href="#">Design</a></li>
</ul>
</div>
</li>
<li class="submenu"><a href="#">Ensino</a>
 
<div class="shadow ">
<ul class="menu">
<li><a href="#">Cursos</a></li>
<li><a href="#">Mestrados</a></li>
<li><a href="#">Pós Graduações</a></li>
<li><a href="#">Cet´s</a></li>
<li><a href="#">Formação TIC</a></li>
<li><a href="#">Formação CTOC</a></li>
<li><a href="#">Acções de Formação de Curta Duração</a></li>
</ul>
</div>
</li>
<li class="submenu"><a href="#">I&D</a>
 
<div class="shadow ">
<ul class="menu">
<li><a href="#">OTIC-INOVAA</a></li>
<li><a href="#">POLIEMPRIENDE</a></li>
<li><a href="#">Gab. Empreendedorismo</a></li>
<li><a href="#">SGQ</a></li>
<li><a href="#">Protocolos com o Exterior</a></li>
<li><a href="#">LAQI Lab. Anal. Qui. e Industriais</a></li>
</ul>
</div>
</li>
</ul>
<estgweb:pageUrlStat><img src="<%=request.getContextPath()%>/imgs/grafico.gif" style="border:0;"></estgweb:pageUrlStat>
<estgweb:pageUrlStat><img alt="Stats" src="<%=request.getContextPath()%>/imgs/grafico.gif" style="border:0;"></estgweb:pageUrlStat>
 
 
</td>
<td class="searchTab">
 
<%
String allChecked = "";
String anyChecked = "";
String phraseChecked = "";
String query = request.getParameter("query");
String searchType = request.getParameter("searchType");
if(query == null)
query = "";
 
if(searchType == null)
allChecked = "checked=\"checked\"";
else if(searchType.equals("search.type.all"))
allChecked = "checked=\"checked\"";
else if(searchType.equals("search.type.any"))
anyChecked = "checked=\"checked\"";
else if(searchType.equals("search.type.phrase"))
phraseChecked = "checked=\"checked\"";
 
 
%>
<html:form action="/search" method="get">
<input type="hidden" name="dispatch" value="search">
<table>
<tr>
<td>
<bean:message key="search"/>
</td>
<td>
<input type="text" class="small" name="query" value="<%=query%>"/>
</td>
<td>
<input type="button" onclick="set(this.form,'search');this.form.submit()" value="<bean:message key="search"/>">
</td>
 
</tr>
<tr>
<td nowrap="nowrap" colspan="3">
<table>
<tr>
<td><input type="radio" name="searchType" value="search.type.all" <%=allChecked%>/></td>
<td><bean:message key="search.type.all"/></td>
<td><input type="radio" name="searchType" value="search.type.any" <%=anyChecked%>/></td>
<td><bean:message key="search.type.any"/></td>
<td><input type="radio" name="searchType" value="search.type.phrase" <%=phraseChecked%>/></td>
<td><bean:message key="search.type.phrase"/></td>
</tr>
</table>
</td>
</tr>
</table>
</html:form>
</td>
</tr>
</table>
</div>
 
/impl/src/web/public/search/searchResults.jsp
New file
0,0 → 1,166
<%@ page import="pt.estgp.estgweb.services.common.*" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
 
<jsp:useBean id="ICommonSearchResults" scope="request" type="pt.estgp.estgweb.services.common.ICommonSearchResults"/>
 
<script src="http://www.google.com/uds/api?file=uds.js&amp;v=0.1&amp;key=ABQIAAAADxvyl7Xh60gdXI_1zKmmGRRd06UxSSW2VZkRedTOEJUPCAJQLRROEqUvchzdGX57xPqsbbCUOvx1rA" type="text/javascript"></script>
<script language="Javascript" type="text/javascript">
//<![CDATA[
 
var moduleResults = <%=ICommonSearchResults.getTotalResults()%>;
var gWebSearch;
var query = '<%=ICommonSearchResults.getQuery()%>';
var searchType = '<%=ICommonSearchResults.getSearchType()%>';
var googlePage = 0;
// var location = window.location;
var loading = '<bean:message key="loading"/>...';
var pagesResultsHeader = '<bean:message key="search.pages.header"/>...';
var pagesResultsForAbout = ' <bean:message key="search.pages.for.about"/> ';
var pagesResultsFound = ' <bean:message key="search.pages.found.results"/> ';
var pages = '<bean:message key="search.pages"/>';
 
function gotoPage(p)
{
googlePage = p;
var searchresults = document.getElementById("googleSearchResults");
searchresults.innerHTML = loading;
OnLoad();
}
function OnLoad() {
// Initialize the web searcher
gWebSearch = new GwebSearch();
gWebSearch.setSiteRestriction("www.estgp.pt");
gWebSearch.setResultSetSize(GSearch.LARGE_RESULTSET);
gWebSearch.setSearchCompleteCallback(null, OnWebSearch);
gWebSearch.execute(query);
}
 
function OnWebSearch() {
 
if(moduleResults == 0 && (!gWebSearch.results || gWebSearch.results.length == 0))
{
window.location = "<%=request.getContextPath()%>/noresults.do?query=" + query + "&searchType=" + searchType;
return;
}
if (!gWebSearch.results) return;
 
if (gWebSearch.cursor.currentPageIndex != googlePage)
gWebSearch.gotoPage(googlePage);
else
{
var searchresults = document.getElementById("googleSearchResults");
searchresults.innerHTML = "";
 
if(gWebSearch.cursor.estimatedResultCount > 0)
{
var results = "";
 
results += "<h1>" + pagesResultsHeader + " " + " " + gWebSearch.results.length + " " + pagesResultsFound + pagesResultsForAbout + gWebSearch.cursor.estimatedResultCount + "</h1>";
results += "<div id=\"googleResults\">";
for (var i = 0; i < gWebSearch.results.length; i++)
{
var thisResult = gWebSearch.results[i];
results += "<div class=\"result\">";
results += "<h2><a href=\"" + thisResult.url + "\">" + thisResult.title + "</a></h2>";
results += "<p>" + thisResult.content + "</p>";
// results += "<p class=\"smallUrl\">" + thisResult.url + "</p>";
// if (thisResult.cacheUrl) {
// results += " - <a class=\"cached\" href=\"" + thisResult.cacheUrl + "\">Cached <\/a>";
// }
results += "</div>";
}
results += "</div>";
results += "<p class=\"pages\">";
results += pages + " ";
for (var j = 0; j < gWebSearch.cursor.pages.length; j++)
{
if (j == gWebSearch.cursor.currentPageIndex)
results += " " + gWebSearch.cursor.pages[j].label;
else
results += ' <a onClick="gotoPage(' + j + ');" href="#googleSearchResults">' + gWebSearch.cursor.pages[j].label + "</a> ";
}
if(gWebSearch.cursor.pages.length > 4)
{
results += ' <a href="' + gWebSearch.cursor.moreResultsUrl + '"> Mais resultados no Google ... </a> ';
}
 
results += "</p>";
searchresults.innerHTML = results;
}
}
}
 
OnLoad();
 
 
//]]>
 
</script>
 
<div id="searchResults" class="listClean">
 
<ul>
 
<logic:iterate id="searchResults" name="ICommonSearchResults" property="searchResults" type="pt.estgp.estgweb.services.common.ISearchResults">
<li>
<h1>
<bean:message key="${searchResults.module.messageKey}"/>
<b>(${searchResults.totalResults})</b>
<a id="${searchResults.module.messageKey}SeeMore" href="javascript:show('${searchResults.module.messageKey}','${searchResults.module.messageKey}SeeMore')">
<bean:message key="search.see.more"/>
</a>
</h1>
<div class="module" id="<%=searchResults.getModule().getMessageKey()%>">
<div id="${searchResults.module.messageKey}Results">
<logic:iterate id="result" name="searchResults" property="results" type="pt.estgp.estgweb.services.common.IResult">
<div class="result">
<h2><a href="<%=request.getContextPath()%>${result.url}">${result.title}</a>
<logic:notEmpty name="result" property="subTitle">
(
<logic:equal value="true" name="result" property="subTitleKey">
<bean:message key="${result.subTitle}"/>
</logic:equal>
<logic:notEqual value="true" name="result" property="subTitleKey">
${result.subTitle}
</logic:notEqual>
)
</logic:notEmpty>
</h2>
<p>${result.bestFragments} ...</p>
</div>
</logic:iterate>
<p class="pages">
<bean:message key="search.pages"/>
<logic:equal value="true" name="searchResults" property="hasPreviousPage">
<a href="javascript:searchCall('${searchResults.module.messageKey}Results','${searchResults.query}','${searchResults.searchType}','${searchResults.previousPage}','${searchResults.module.messageKey}','<%=request.getContextPath()%>/search.do')">&lt; <bean:message key="result.previous"/> </a>
</logic:equal>
${searchResults.page2Screen}
<logic:equal value="true" name="searchResults" property="hasNextPage">
<a href="javascript:searchCall('${searchResults.module.messageKey}Results','${searchResults.query}','${searchResults.searchType}','${searchResults.nextPage}','${searchResults.module.messageKey}','<%=request.getContextPath()%>/search.do')"><bean:message key="result.next"/> &gt;</a>
</logic:equal>
</p>
</div>
<h3>
<a href="javascript:hide('${searchResults.module.messageKey}','${searchResults.module.messageKey}SeeMore')">Fechar</a>
</h3>
</div>
</li>
</logic:iterate>
<li id="googleModule">
<div id="googleSearchResults">
 
</div>
<table class="googleLogo">
<tr>
<td>powered by</td>
<td><img src="<%=request.getContextPath()%>/imgs/google-small-logo.png"/></td>
</tr>
</table>
</li>
</ul>
</div>
/impl/src/web/public/search/searchForm.jsp
New file
0,0 → 1,51
<%@ page import="pt.estgp.estgweb.web.form.commons.SearchForm" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
 
<html:errors/>
<%
String query = request.getParameter("query");
String searchType = request.getParameter("searchType");
SearchForm searchForm = new SearchForm();
searchForm.setQuery(query);
searchForm.setSearchType(searchType);
request.setAttribute("SearchForm", searchForm);
 
%>
 
<html:form action="/search">
<input type="hidden" name="dispatch" value="search">
<table>
 
<tr>
<td>
<bean:message key="search"/>
</td>
<td>
<html:text size="100%" styleClass="small" property="query" value=""/>
</td>
<td>
<input type="button" onclick="set(this.form,'search');this.form.submit()" value="<bean:message key="search"/>">
</td>
 
</tr>
<tr>
<td nowrap="nowrap" colspan="3">
<table>
<tr>
<td><html:radio property="searchType" value="search.type.all"/></td>
<td><bean:message key="search.type.all"/></td>
<td><html:radio property="searchType" value="search.type.any"/></td>
<td><bean:message key="search.type.any"/></td>
<td><html:radio property="searchType" value="search.type.phrase"/></td>
<td><bean:message key="search.type.phrase"/></td>
</tr>
</table>
</td>
</tr>
</table>
</html:form>
/impl/src/web/public/search/searchResultsModule.jsp
New file
0,0 → 1,38
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="pt.estgp.estgweb.services.common.*" %>
<%@ page import="pt.estgp.estgweb.services.common.*" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
<jsp:useBean id="ISearchResults" type="pt.estgp.estgweb.services.common.ISearchResults" scope="request"/>
<logic:iterate id="result" name="ISearchResults" property="results"
type="pt.estgp.estgweb.services.common.IResult">
<div class="result">
<h2><a href="<%=request.getContextPath()%>${result.url}">${result.title}</a>
<logic:notEmpty name="result" property="subTitle">
(
<logic:equal value="true" name="result" property="subTitleKey">
<bean:message key="${result.subTitle}"/>
</logic:equal>
<logic:notEqual value="true" name="result" property="subTitleKey">
${result.subTitle}
</logic:notEqual>
)
</logic:notEmpty>
</h2>
 
<p>${result.bestFragments} ...</p>
</div>
</logic:iterate>
Pages:
<logic:equal value="true" name="ISearchResults" property="hasPreviousPage">
<a href="javascript:searchCall('${ISearchResults.module.messageKey}Results','${ISearchResults.query}','${ISearchResults.searchType}','${ISearchResults.previousPage}','${ISearchResults.module.messageKey}','<%=request.getContextPath()%>/search.do')">&lt; previous</a>
</logic:equal>
${ISearchResults.page2Screen}
<logic:equal value="true" name="ISearchResults" property="hasNextPage">
<a href="javascript:searchCall('${ISearchResults.module.messageKey}Results','${ISearchResults.query}','${ISearchResults.searchType}','${ISearchResults.nextPage}','${ISearchResults.module.messageKey}','<%=request.getContextPath()%>/search.do')">next &gt;</a>
</logic:equal>
 
 
/impl/src/web/public/search/noresults.jsp
New file
0,0 → 1,21
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
<div class="seccao">
<bean:message key="search.no.results"/>
<b>
<%=request.getParameter("query")%>
</b>
<br/>
<bean:message key="search.no.results.suggest"/>:<br/>
<ul>
<li><bean:message key="search.no.results.suggest.1"/></li>
<li><bean:message key="search.no.results.suggest.2"/></li>
<li><bean:message key="search.no.results.suggest.3"/></li>
</ul>
</div>
 
<jsp:include page="/public/search/searchForm.jsp"/>
/impl/src/web/public/search/topnavSearchResults.jsp
New file
0,0 → 1,18
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="jomm.web.utils.NavPlaceServer"%>
<%@ page import="jomm.web.utils.TopNav" %>
<%@ page import="pt.estgp.estgweb.services.common.ICommonSearchResults" %>
 
<%
 
ICommonSearchResults iCommonSearchResults = (ICommonSearchResults) request.getAttribute("ICommonSearchResults");
TopNav topNav = NavPlaceServer.getInstance().createTopNav(request);
topNav.addNavPlace("/Welcome.do", "Home");
topNav.addNavPlace("/startSearch.do?query=" + request.getParameter("query") + "&searchType=" + request.getParameter("searchType"), "search.form");
if (iCommonSearchResults != null)
topNav.addNavPlace(null, "search.results", iCommonSearchResults.getQuery());
else
topNav.addNavPlace(null, "search.results");
%>
<jsp:include page="/layout/topnav.jsp"/>
/impl/src/web/public/search/topnavSearchForm.jsp
New file
0,0 → 1,12
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="java.util.*"%>
<%@ page import="jomm.web.utils.NavPlace" %>
<%@ page import="jomm.web.utils.NavPlaceServer" %>
<%@ page import="jomm.web.utils.TopNav" %>
<%
TopNav topNav = NavPlaceServer.getInstance().createTopNav(request);
topNav.addNavPlace("/Welcome.do", "Home");
topNav.addNavPlace(null, "search.form");
%>
<jsp:include page="/layout/topnav.jsp"/>
/impl/src/web/public/announcements/announcementsPortalLeft.jsp
32,7 → 32,11
<td>
<div class="portalAnnouncementTop">
<div class="imageAnnouncementTop">
<%if(item.getBigImage() != null){%><img alt="<%=item.getTitle()%>" src="<%=request.getContextPath()%>/imageStream/<%=item.getSmallImage().getId()%>"><%}%>
<%if(item.getBigImage() != null){%>
<img alt="<%=item.getTitle()%>" src="<%=request.getContextPath()%>/imageStream/<%=item.getBigImage().getId()%>">
<%} else if(item.getSmallImage()!=null){%>
<img alt="<%=item.getTitle()%>" src="<%=request.getContextPath()%>/imageStream/<%=item.getSmallImage().getId()%>">
<%}%>
</div>
<div class="portalAnnouncement">
<logic:empty name="item" property="url">
/impl/src/web/public/announcements/getFlashNews.jsp
41,7 → 41,11
<%}%>
</td>
<td class="imageContainer">
<%if(announcementView.getBigImage() != null){%><img alt="<%=announcementView.getTitle()%>" src="<%=request.getContextPath()%>/imageStream/<%=announcementView.getBigImage().getId()%>"><%}%>
<%if(announcementView.getBigImage() != null){%>
<img alt="<%=announcementView.getTitle()%>" src="<%=request.getContextPath()%>/imageStream/<%=announcementView.getBigImage().getId()%>">
<%} else if(announcementView.getSmallImage() != null){%>
<img alt="<%=announcementView.getTitle()%>" src="<%=request.getContextPath()%>/imageStream/<%=announcementView.getSmallImage().getId()%>">
<%}%>
</td>
</tr>
</table>
/impl/src/web/public/announcements/loadAnnouncement.jsp
7,11 → 7,9
<%@ taglib uri="/WEB-INF/tlds/jomm.tld" prefix="jomm" %>
<jsp:useBean id="Announcement" type="pt.estgp.estgweb.domain.views.AnnouncementView" scope="request"/>
 
<div class="pageSection">
<div class="sectionTitle">
<h2>${Announcement.title}</h2>
</div>
 
<div class="seccao">
<h2>${Announcement.title}</h2>
<p>
<%
if(Announcement.getBigImage() != null)
{
38,5 → 36,5
<html:link href="${Announcement.url}">Ver +</html:link>
<%
}%>
</div>
</p>
</div>
/impl/libs.xml
New file
0,0 → 1,62
<?xml version="1.0" encoding="utf-8"?>
<project name="estgweb-libs">
<property file="local.properties"/>
<property file="build.properties"/>
<property environment="env"/>
<path id="pathToToolsLib">
<fileset dir="${tomcat.libs.common.home}">
<include name="**.jar"/>
</fileset>
<fileset dir="${tomcat.libs.ant.home}">
<include name="**.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/mail">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/berserk">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/ldap">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/hibernate">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/log4j">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/jaxb">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/mysql">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/commons">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/web">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/struts">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/jfreechart">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/lucene">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/jaxrpc">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/jaxrpc16">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/xml">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${env.JAVA_HOME}">
<include name="lib/tools.jar"/>
</fileset>
</path>
</project>
/impl/gen/java/pt/estgp/estgweb/domain/Course.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/UrlStatMonth.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/UrlStatDayId.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
 
/impl/gen/java/pt/estgp/estgweb/domain/SessionObject.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/GenericUser.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/User.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/UrlStatYear.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/UrlStatMonthId.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
 
/impl/gen/java/pt/estgp/estgweb/domain/UserSession.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/Image.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/GenericUserDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/UserDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/UrlStatYearDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/UrlStatMonthIdDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/UserSessionDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/ImageDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/BlogDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/TesteDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/SessionObjectIdDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/BlogPostDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/AnnouncementDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/UrlStatYearIdDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/CourseUserAssociationDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/GroupDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/UrlStatDayDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/UrlStatDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/CourseDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/UrlStatMonthDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/UrlStatDayIdDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/dao/impl/SessionObjectDao.java
1,5 → 1,5
package pt.estgp.estgweb.domain.dao.impl;
// Generated 21/Abr/2008 15:54:30 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:48 by Hibernate Tools 3.2.0.b9
 
 
import org.apache.log4j.Logger;
/impl/gen/java/pt/estgp/estgweb/domain/Blog.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/Teste.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/SessionObjectId.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
 
/impl/gen/java/pt/estgp/estgweb/domain/BlogPost.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/Announcement.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/UrlStatDay.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/Group.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/CourseUserAssociation.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/estgp/estgweb/domain/UrlStatYearId.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
 
/impl/gen/java/pt/estgp/estgweb/domain/UrlStat.java
1,5 → 1,5
package pt.estgp.estgweb.domain;
// Generated 22/Abr/2008 19:12:49 by Hibernate Tools 3.2.0.b9
// Generated 29/Abr/2008 10:35:58 by Hibernate Tools 3.2.0.b9
 
 
import java.util.Date;
/impl/gen/java/pt/ipp/siges/web/services/clients/GetAlunosResponse.java
New file
0,0 → 1,62
 
package pt.ipp.siges.web.services.clients;
 
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="getAlunosResult" type="{http://tempuri.org/}ArrayOfAluno" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"getAlunosResult"
})
@XmlRootElement(name = "getAlunosResponse")
public class GetAlunosResponse {
 
protected ArrayOfAluno getAlunosResult;
 
/**
* Gets the value of the getAlunosResult property.
*
* @return
* possible object is
* {@link ArrayOfAluno }
*
*/
public ArrayOfAluno getGetAlunosResult() {
return getAlunosResult;
}
 
/**
* Sets the value of the getAlunosResult property.
*
* @param value
* allowed object is
* {@link ArrayOfAluno }
*
*/
public void setGetAlunosResult(ArrayOfAluno value) {
this.getAlunosResult = value;
}
 
}
/impl/gen/java/pt/ipp/siges/web/services/clients/Docente.java
New file
0,0 → 1,366
 
package pt.ipp.siges.web.services.clients;
 
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
 
 
/**
* <p>Java class for Docente complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Docente">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="codigoFuncionario" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="nomeFuncionario" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="nomeFuncionarioInt" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="nomeAcademico" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="sexo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="data_nascimento" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* &lt;element name="morada" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="codigoPostal" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="subCodigoPostal" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="email" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="numeroBi" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="usernameNetpa" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Docente", propOrder = {
"codigoFuncionario",
"nomeFuncionario",
"nomeFuncionarioInt",
"nomeAcademico",
"sexo",
"dataNascimento",
"morada",
"codigoPostal",
"subCodigoPostal",
"email",
"numeroBi",
"usernameNetpa"
})
public class Docente {
 
@XmlElement(required = true)
protected BigDecimal codigoFuncionario;
protected String nomeFuncionario;
protected String nomeFuncionarioInt;
protected String nomeAcademico;
protected String sexo;
@XmlElement(name = "data_nascimento", required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar dataNascimento;
protected String morada;
@XmlElement(required = true)
protected BigDecimal codigoPostal;
@XmlElement(required = true)
protected BigDecimal subCodigoPostal;
protected String email;
protected String numeroBi;
protected String usernameNetpa;
 
/**
* Gets the value of the codigoFuncionario property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCodigoFuncionario() {
return codigoFuncionario;
}
 
/**
* Sets the value of the codigoFuncionario property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCodigoFuncionario(BigDecimal value) {
this.codigoFuncionario = value;
}
 
/**
* Gets the value of the nomeFuncionario property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNomeFuncionario() {
return nomeFuncionario;
}
 
/**
* Sets the value of the nomeFuncionario property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNomeFuncionario(String value) {
this.nomeFuncionario = value;
}
 
/**
* Gets the value of the nomeFuncionarioInt property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNomeFuncionarioInt() {
return nomeFuncionarioInt;
}
 
/**
* Sets the value of the nomeFuncionarioInt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNomeFuncionarioInt(String value) {
this.nomeFuncionarioInt = value;
}
 
/**
* Gets the value of the nomeAcademico property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNomeAcademico() {
return nomeAcademico;
}
 
/**
* Sets the value of the nomeAcademico property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNomeAcademico(String value) {
this.nomeAcademico = value;
}
 
/**
* Gets the value of the sexo property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSexo() {
return sexo;
}
 
/**
* Sets the value of the sexo property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSexo(String value) {
this.sexo = value;
}
 
/**
* Gets the value of the dataNascimento property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDataNascimento() {
return dataNascimento;
}
 
/**
* Sets the value of the dataNascimento property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDataNascimento(XMLGregorianCalendar value) {
this.dataNascimento = value;
}
 
/**
* Gets the value of the morada property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMorada() {
return morada;
}
 
/**
* Sets the value of the morada property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMorada(String value) {
this.morada = value;
}
 
/**
* Gets the value of the codigoPostal property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCodigoPostal() {
return codigoPostal;
}
 
/**
* Sets the value of the codigoPostal property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCodigoPostal(BigDecimal value) {
this.codigoPostal = value;
}
 
/**
* Gets the value of the subCodigoPostal property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getSubCodigoPostal() {
return subCodigoPostal;
}
 
/**
* Sets the value of the subCodigoPostal property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setSubCodigoPostal(BigDecimal value) {
this.subCodigoPostal = value;
}
 
/**
* Gets the value of the email property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEmail() {
return email;
}
 
/**
* Sets the value of the email property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEmail(String value) {
this.email = value;
}
 
/**
* Gets the value of the numeroBi property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNumeroBi() {
return numeroBi;
}
 
/**
* Sets the value of the numeroBi property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNumeroBi(String value) {
this.numeroBi = value;
}
 
/**
* Gets the value of the usernameNetpa property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUsernameNetpa() {
return usernameNetpa;
}
 
/**
* Sets the value of the usernameNetpa property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUsernameNetpa(String value) {
this.usernameNetpa = value;
}
 
}
/impl/gen/java/pt/ipp/siges/web/services/clients/GetAlunos.java
New file
0,0 → 1,32
 
package pt.ipp.siges.web.services.clients;
 
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "getAlunos")
public class GetAlunos {
 
 
}
/impl/gen/java/pt/ipp/siges/web/services/clients/ArrayOfAluno.java
New file
0,0 → 1,69
 
package pt.ipp.siges.web.services.clients;
 
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for ArrayOfAluno complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="ArrayOfAluno">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Aluno" type="{http://tempuri.org/}Aluno" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfAluno", propOrder = {
"aluno"
})
public class ArrayOfAluno {
 
@XmlElement(name = "Aluno", nillable = true)
protected List<Aluno> aluno;
 
/**
* Gets the value of the aluno property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the aluno property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAluno().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Aluno }
*
*
*/
public List<Aluno> getAluno() {
if (aluno == null) {
aluno = new ArrayList<Aluno>();
}
return this.aluno;
}
 
}
/impl/gen/java/pt/ipp/siges/web/services/clients/GetDocentesResponse.java
New file
0,0 → 1,62
 
package pt.ipp.siges.web.services.clients;
 
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="getDocentesResult" type="{http://tempuri.org/}ArrayOfDocente" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"getDocentesResult"
})
@XmlRootElement(name = "getDocentesResponse")
public class GetDocentesResponse {
 
protected ArrayOfDocente getDocentesResult;
 
/**
* Gets the value of the getDocentesResult property.
*
* @return
* possible object is
* {@link ArrayOfDocente }
*
*/
public ArrayOfDocente getGetDocentesResult() {
return getDocentesResult;
}
 
/**
* Sets the value of the getDocentesResult property.
*
* @param value
* allowed object is
* {@link ArrayOfDocente }
*
*/
public void setGetDocentesResult(ArrayOfDocente value) {
this.getDocentesResult = value;
}
 
}
/impl/gen/java/pt/ipp/siges/web/services/clients/GetDocentes.java
New file
0,0 → 1,32
 
package pt.ipp.siges.web.services.clients;
 
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "getDocentes")
public class GetDocentes {
 
 
}
/impl/gen/java/pt/ipp/siges/web/services/clients/package-info.java
New file
0,0 → 1,2
@javax.xml.bind.annotation.XmlSchema(namespace = "http://tempuri.org/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package pt.ipp.siges.web.services.clients;
/impl/gen/java/pt/ipp/siges/web/services/clients/ArrayOfDocente.java
New file
0,0 → 1,69
 
package pt.ipp.siges.web.services.clients;
 
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for ArrayOfDocente complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="ArrayOfDocente">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Docente" type="{http://tempuri.org/}Docente" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfDocente", propOrder = {
"docente"
})
public class ArrayOfDocente {
 
@XmlElement(name = "Docente", nillable = true)
protected List<Docente> docente;
 
/**
* Gets the value of the docente property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the docente property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDocente().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Docente }
*
*
*/
public List<Docente> getDocente() {
if (docente == null) {
docente = new ArrayList<Docente>();
}
return this.docente;
}
 
}
/impl/gen/java/pt/ipp/siges/web/services/clients/SiGesWEB.java
New file
0,0 → 1,66
 
package pt.ipp.siges.web.services.clients;
 
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
 
 
/**
* This class was generated by the JAXWS SI.
* JAX-WS RI 2.0-b40-ea3
* Generated source version: 2.0
*
*/
@WebServiceClient(name = "SiGesWEB", targetNamespace = "http://tempuri.org/", wsdlLocation = "http://172.20.130.15/SigesWeb/SiGesWEB.asmx?wsdl")
public class SiGesWEB
extends Service
{
 
private final static URL WSDL_LOCATION;
private final static QName SIGESWEB = new QName("http://tempuri.org/", "SiGesWEB");
private final static QName SIGESWEBSOAP = new QName("http://tempuri.org/", "SiGesWEBSoap");
private final static QName SIGESWEBSOAP12 = new QName("http://tempuri.org/", "SiGesWEBSoap12");
 
static {
URL url = null;
try {
url = new URL("http://172.20.130.15/SigesWeb/SiGesWEB.asmx?wsdl");
} catch (MalformedURLException e) {
e.printStackTrace();
}
WSDL_LOCATION = url;
}
 
public SiGesWEB(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
 
public SiGesWEB() {
super(WSDL_LOCATION, SIGESWEB);
}
 
/**
*
* @return
* returns SiGesWEBSoap
*/
@WebEndpoint(name = "SiGesWEBSoap")
public SiGesWEBSoap getSiGesWEBSoap() {
return (SiGesWEBSoap)super.getPort(SIGESWEBSOAP, SiGesWEBSoap.class);
}
 
/**
*
* @return
* returns SiGesWEBSoap
*/
@WebEndpoint(name = "SiGesWEBSoap12")
public SiGesWEBSoap getSiGesWEBSoap12() {
return (SiGesWEBSoap)super.getPort(SIGESWEBSOAP12, SiGesWEBSoap.class);
}
 
}
/impl/gen/java/pt/ipp/siges/web/services/clients/SiGesWEBSoap.java
New file
0,0 → 1,43
 
package pt.ipp.siges.web.services.clients;
 
import javax.jws.WebMethod;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
 
 
/**
* This class was generated by the JAXWS SI.
* JAX-WS RI 2.0-b40-ea3
* Generated source version: 2.0
*
*/
@WebService(name = "SiGesWEBSoap", targetNamespace = "http://tempuri.org/", wsdlLocation = "http://172.20.130.15/SigesWeb/SiGesWEB.asmx?wsdl")
public interface SiGesWEBSoap {
 
 
/**
*
* @return
* returns pt.ipp.siges.web.services.clients.ArrayOfDocente
*/
@WebMethod(action = "http://tempuri.org/getDocentes")
@WebResult(name = "getDocentesResult", targetNamespace = "http://tempuri.org/")
@RequestWrapper(localName = "getDocentes", targetNamespace = "http://tempuri.org/", className = "pt.ipp.siges.web.services.clients.GetDocentes")
@ResponseWrapper(localName = "getDocentesResponse", targetNamespace = "http://tempuri.org/", className = "pt.ipp.siges.web.services.clients.GetDocentesResponse")
public ArrayOfDocente getDocentes();
 
/**
*
* @return
* returns pt.ipp.siges.web.services.clients.ArrayOfAluno
*/
@WebMethod(action = "http://tempuri.org/getAlunos")
@WebResult(name = "getAlunosResult", targetNamespace = "http://tempuri.org/")
@RequestWrapper(localName = "getAlunos", targetNamespace = "http://tempuri.org/", className = "pt.ipp.siges.web.services.clients.GetAlunos")
@ResponseWrapper(localName = "getAlunosResponse", targetNamespace = "http://tempuri.org/", className = "pt.ipp.siges.web.services.clients.GetAlunosResponse")
public ArrayOfAluno getAlunos();
 
}
/impl/gen/java/pt/ipp/siges/web/services/clients/Aluno.java
New file
0,0 → 1,90
 
package pt.ipp.siges.web.services.clients;
 
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for Aluno complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Aluno">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="codigo" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="nome" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Aluno", propOrder = {
"codigo",
"nome"
})
public class Aluno {
 
@XmlElement(required = true)
protected BigDecimal codigo;
protected String nome;
 
/**
* Gets the value of the codigo property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCodigo() {
return codigo;
}
 
/**
* Sets the value of the codigo property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCodigo(BigDecimal value) {
this.codigo = value;
}
 
/**
* Gets the value of the nome property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNome() {
return nome;
}
 
/**
* Sets the value of the nome property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNome(String value) {
this.nome = value;
}
 
}
/impl/gen/java/pt/ipp/siges/web/services/clients/ObjectFactory.java
New file
0,0 → 1,96
 
package pt.ipp.siges.web.services.clients;
 
import javax.xml.bind.annotation.XmlRegistry;
 
 
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the pt.ipp.siges.web.services.clients package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
 
 
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: pt.ipp.siges.web.services.clients
*
*/
public ObjectFactory() {
}
 
/**
* Create an instance of {@link ArrayOfAluno }
*
*/
public ArrayOfAluno createArrayOfAluno() {
return new ArrayOfAluno();
}
 
/**
* Create an instance of {@link GetAlunosResponse }
*
*/
public GetAlunosResponse createGetAlunosResponse() {
return new GetAlunosResponse();
}
 
/**
* Create an instance of {@link Docente }
*
*/
public Docente createDocente() {
return new Docente();
}
 
/**
* Create an instance of {@link ArrayOfDocente }
*
*/
public ArrayOfDocente createArrayOfDocente() {
return new ArrayOfDocente();
}
 
/**
* Create an instance of {@link GetDocentes }
*
*/
public GetDocentes createGetDocentes() {
return new GetDocentes();
}
 
/**
* Create an instance of {@link GetAlunos }
*
*/
public GetAlunos createGetAlunos() {
return new GetAlunos();
}
 
/**
* Create an instance of {@link Aluno }
*
*/
public Aluno createAluno() {
return new Aluno();
}
 
/**
* Create an instance of {@link GetDocentesResponse }
*
*/
public GetDocentesResponse createGetDocentesResponse() {
return new GetDocentesResponse();
}
 
}
/impl/gen/java/org/tempuri/GetAlunosResponse.java
New file
0,0 → 1,62
 
package org.tempuri;
 
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="getAlunosResult" type="{http://tempuri.org/}ArrayOfAluno" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"getAlunosResult"
})
@XmlRootElement(name = "getAlunosResponse")
public class GetAlunosResponse {
 
protected ArrayOfAluno getAlunosResult;
 
/**
* Gets the value of the getAlunosResult property.
*
* @return
* possible object is
* {@link ArrayOfAluno }
*
*/
public ArrayOfAluno getGetAlunosResult() {
return getAlunosResult;
}
 
/**
* Sets the value of the getAlunosResult property.
*
* @param value
* allowed object is
* {@link ArrayOfAluno }
*
*/
public void setGetAlunosResult(ArrayOfAluno value) {
this.getAlunosResult = value;
}
 
}
/impl/gen/java/org/tempuri/Docente.java
New file
0,0 → 1,366
 
package org.tempuri;
 
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
 
 
/**
* <p>Java class for Docente complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Docente">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="codigoFuncionario" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="nomeFuncionario" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="nomeFuncionarioInt" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="nomeAcademico" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="sexo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="data_nascimento" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* &lt;element name="morada" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="codigoPostal" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="subCodigoPostal" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="email" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="numeroBi" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="usernameNetpa" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Docente", propOrder = {
"codigoFuncionario",
"nomeFuncionario",
"nomeFuncionarioInt",
"nomeAcademico",
"sexo",
"dataNascimento",
"morada",
"codigoPostal",
"subCodigoPostal",
"email",
"numeroBi",
"usernameNetpa"
})
public class Docente {
 
@XmlElement(required = true)
protected BigDecimal codigoFuncionario;
protected String nomeFuncionario;
protected String nomeFuncionarioInt;
protected String nomeAcademico;
protected String sexo;
@XmlElement(name = "data_nascimento", required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar dataNascimento;
protected String morada;
@XmlElement(required = true)
protected BigDecimal codigoPostal;
@XmlElement(required = true)
protected BigDecimal subCodigoPostal;
protected String email;
protected String numeroBi;
protected String usernameNetpa;
 
/**
* Gets the value of the codigoFuncionario property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCodigoFuncionario() {
return codigoFuncionario;
}
 
/**
* Sets the value of the codigoFuncionario property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCodigoFuncionario(BigDecimal value) {
this.codigoFuncionario = value;
}
 
/**
* Gets the value of the nomeFuncionario property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNomeFuncionario() {
return nomeFuncionario;
}
 
/**
* Sets the value of the nomeFuncionario property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNomeFuncionario(String value) {
this.nomeFuncionario = value;
}
 
/**
* Gets the value of the nomeFuncionarioInt property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNomeFuncionarioInt() {
return nomeFuncionarioInt;
}
 
/**
* Sets the value of the nomeFuncionarioInt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNomeFuncionarioInt(String value) {
this.nomeFuncionarioInt = value;
}
 
/**
* Gets the value of the nomeAcademico property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNomeAcademico() {
return nomeAcademico;
}
 
/**
* Sets the value of the nomeAcademico property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNomeAcademico(String value) {
this.nomeAcademico = value;
}
 
/**
* Gets the value of the sexo property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSexo() {
return sexo;
}
 
/**
* Sets the value of the sexo property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSexo(String value) {
this.sexo = value;
}
 
/**
* Gets the value of the dataNascimento property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDataNascimento() {
return dataNascimento;
}
 
/**
* Sets the value of the dataNascimento property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDataNascimento(XMLGregorianCalendar value) {
this.dataNascimento = value;
}
 
/**
* Gets the value of the morada property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMorada() {
return morada;
}
 
/**
* Sets the value of the morada property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMorada(String value) {
this.morada = value;
}
 
/**
* Gets the value of the codigoPostal property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCodigoPostal() {
return codigoPostal;
}
 
/**
* Sets the value of the codigoPostal property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCodigoPostal(BigDecimal value) {
this.codigoPostal = value;
}
 
/**
* Gets the value of the subCodigoPostal property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getSubCodigoPostal() {
return subCodigoPostal;
}
 
/**
* Sets the value of the subCodigoPostal property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setSubCodigoPostal(BigDecimal value) {
this.subCodigoPostal = value;
}
 
/**
* Gets the value of the email property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getEmail() {
return email;
}
 
/**
* Sets the value of the email property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setEmail(String value) {
this.email = value;
}
 
/**
* Gets the value of the numeroBi property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNumeroBi() {
return numeroBi;
}
 
/**
* Sets the value of the numeroBi property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNumeroBi(String value) {
this.numeroBi = value;
}
 
/**
* Gets the value of the usernameNetpa property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getUsernameNetpa() {
return usernameNetpa;
}
 
/**
* Sets the value of the usernameNetpa property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setUsernameNetpa(String value) {
this.usernameNetpa = value;
}
 
}
/impl/gen/java/org/tempuri/GetAlunos.java
New file
0,0 → 1,32
 
package org.tempuri;
 
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "getAlunos")
public class GetAlunos {
 
 
}
/impl/gen/java/org/tempuri/ArrayOfAluno.java
New file
0,0 → 1,69
 
package org.tempuri;
 
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for ArrayOfAluno complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="ArrayOfAluno">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Aluno" type="{http://tempuri.org/}Aluno" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfAluno", propOrder = {
"aluno"
})
public class ArrayOfAluno {
 
@XmlElement(name = "Aluno", nillable = true)
protected List<Aluno> aluno;
 
/**
* Gets the value of the aluno property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the aluno property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAluno().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Aluno }
*
*
*/
public List<Aluno> getAluno() {
if (aluno == null) {
aluno = new ArrayList<Aluno>();
}
return this.aluno;
}
 
}
/impl/gen/java/org/tempuri/GetDocentesResponse.java
New file
0,0 → 1,62
 
package org.tempuri;
 
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="getDocentesResult" type="{http://tempuri.org/}ArrayOfDocente" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"getDocentesResult"
})
@XmlRootElement(name = "getDocentesResponse")
public class GetDocentesResponse {
 
protected ArrayOfDocente getDocentesResult;
 
/**
* Gets the value of the getDocentesResult property.
*
* @return
* possible object is
* {@link ArrayOfDocente }
*
*/
public ArrayOfDocente getGetDocentesResult() {
return getDocentesResult;
}
 
/**
* Sets the value of the getDocentesResult property.
*
* @param value
* allowed object is
* {@link ArrayOfDocente }
*
*/
public void setGetDocentesResult(ArrayOfDocente value) {
this.getDocentesResult = value;
}
 
}
/impl/gen/java/org/tempuri/GetDocentes.java
New file
0,0 → 1,32
 
package org.tempuri;
 
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType>
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XmlRootElement(name = "getDocentes")
public class GetDocentes {
 
 
}
/impl/gen/java/org/tempuri/package-info.java
New file
0,0 → 1,2
@javax.xml.bind.annotation.XmlSchema(namespace = "http://tempuri.org/", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package org.tempuri;
/impl/gen/java/org/tempuri/ArrayOfDocente.java
New file
0,0 → 1,69
 
package org.tempuri;
 
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for ArrayOfDocente complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="ArrayOfDocente">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Docente" type="{http://tempuri.org/}Docente" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfDocente", propOrder = {
"docente"
})
public class ArrayOfDocente {
 
@XmlElement(name = "Docente", nillable = true)
protected List<Docente> docente;
 
/**
* Gets the value of the docente property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the docente property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDocente().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Docente }
*
*
*/
public List<Docente> getDocente() {
if (docente == null) {
docente = new ArrayList<Docente>();
}
return this.docente;
}
 
}
/impl/gen/java/org/tempuri/Aluno.java
New file
0,0 → 1,90
 
package org.tempuri;
 
import java.math.BigDecimal;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
 
 
/**
* <p>Java class for Aluno complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Aluno">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="codigo" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="nome" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Aluno", propOrder = {
"codigo",
"nome"
})
public class Aluno {
 
@XmlElement(required = true)
protected BigDecimal codigo;
protected String nome;
 
/**
* Gets the value of the codigo property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCodigo() {
return codigo;
}
 
/**
* Sets the value of the codigo property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCodigo(BigDecimal value) {
this.codigo = value;
}
 
/**
* Gets the value of the nome property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNome() {
return nome;
}
 
/**
* Sets the value of the nome property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setNome(String value) {
this.nome = value;
}
 
}
/impl/gen/java/org/tempuri/ObjectFactory.java
New file
0,0 → 1,96
 
package org.tempuri;
 
import javax.xml.bind.annotation.XmlRegistry;
 
 
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the org.tempuri package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
 
 
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.tempuri
*
*/
public ObjectFactory() {
}
 
/**
* Create an instance of {@link GetAlunosResponse }
*
*/
public GetAlunosResponse createGetAlunosResponse() {
return new GetAlunosResponse();
}
 
/**
* Create an instance of {@link ArrayOfDocente }
*
*/
public ArrayOfDocente createArrayOfDocente() {
return new ArrayOfDocente();
}
 
/**
* Create an instance of {@link Aluno }
*
*/
public Aluno createAluno() {
return new Aluno();
}
 
/**
* Create an instance of {@link GetDocentes }
*
*/
public GetDocentes createGetDocentes() {
return new GetDocentes();
}
 
/**
* Create an instance of {@link GetAlunos }
*
*/
public GetAlunos createGetAlunos() {
return new GetAlunos();
}
 
/**
* Create an instance of {@link ArrayOfAluno }
*
*/
public ArrayOfAluno createArrayOfAluno() {
return new ArrayOfAluno();
}
 
/**
* Create an instance of {@link Docente }
*
*/
public Docente createDocente() {
return new Docente();
}
 
/**
* Create an instance of {@link GetDocentesResponse }
*
*/
public GetDocentesResponse createGetDocentesResponse() {
return new GetDocentesResponse();
}
 
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doGoogleSearch_ResponseStruct.java
New file
0,0 → 1,26
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
 
public class GoogleSearchPort_doGoogleSearch_ResponseStruct implements java.io.Serializable {
protected com.google.api.ws.clients.GoogleSearchResult _return;
public GoogleSearchPort_doGoogleSearch_ResponseStruct() {
}
public GoogleSearchPort_doGoogleSearch_ResponseStruct(com.google.api.ws.clients.GoogleSearchResult _return) {
this._return = _return;
}
public com.google.api.ws.clients.GoogleSearchResult get_return() {
return _return;
}
public void set_return(com.google.api.ws.clients.GoogleSearchResult _return) {
this._return = _return;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchResult.java
New file
0,0 → 1,126
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
 
public class GoogleSearchResult implements java.io.Serializable {
protected boolean documentFiltering;
protected java.lang.String searchComments;
protected int estimatedTotalResultsCount;
protected boolean estimateIsExact;
protected com.google.api.ws.clients.ResultElement[] resultElements;
protected java.lang.String searchQuery;
protected int startIndex;
protected int endIndex;
protected java.lang.String searchTips;
protected com.google.api.ws.clients.DirectoryCategory[] directoryCategories;
protected double searchTime;
public GoogleSearchResult() {
}
public GoogleSearchResult(boolean documentFiltering, java.lang.String searchComments, int estimatedTotalResultsCount, boolean estimateIsExact, com.google.api.ws.clients.ResultElement[] resultElements, java.lang.String searchQuery, int startIndex, int endIndex, java.lang.String searchTips, com.google.api.ws.clients.DirectoryCategory[] directoryCategories, double searchTime) {
this.documentFiltering = documentFiltering;
this.searchComments = searchComments;
this.estimatedTotalResultsCount = estimatedTotalResultsCount;
this.estimateIsExact = estimateIsExact;
this.resultElements = resultElements;
this.searchQuery = searchQuery;
this.startIndex = startIndex;
this.endIndex = endIndex;
this.searchTips = searchTips;
this.directoryCategories = directoryCategories;
this.searchTime = searchTime;
}
public boolean isDocumentFiltering() {
return documentFiltering;
}
public void setDocumentFiltering(boolean documentFiltering) {
this.documentFiltering = documentFiltering;
}
public java.lang.String getSearchComments() {
return searchComments;
}
public void setSearchComments(java.lang.String searchComments) {
this.searchComments = searchComments;
}
public int getEstimatedTotalResultsCount() {
return estimatedTotalResultsCount;
}
public void setEstimatedTotalResultsCount(int estimatedTotalResultsCount) {
this.estimatedTotalResultsCount = estimatedTotalResultsCount;
}
public boolean isEstimateIsExact() {
return estimateIsExact;
}
public void setEstimateIsExact(boolean estimateIsExact) {
this.estimateIsExact = estimateIsExact;
}
public com.google.api.ws.clients.ResultElement[] getResultElements() {
return resultElements;
}
public void setResultElements(com.google.api.ws.clients.ResultElement[] resultElements) {
this.resultElements = resultElements;
}
public java.lang.String getSearchQuery() {
return searchQuery;
}
public void setSearchQuery(java.lang.String searchQuery) {
this.searchQuery = searchQuery;
}
public int getStartIndex() {
return startIndex;
}
public void setStartIndex(int startIndex) {
this.startIndex = startIndex;
}
public int getEndIndex() {
return endIndex;
}
public void setEndIndex(int endIndex) {
this.endIndex = endIndex;
}
public java.lang.String getSearchTips() {
return searchTips;
}
public void setSearchTips(java.lang.String searchTips) {
this.searchTips = searchTips;
}
public com.google.api.ws.clients.DirectoryCategory[] getDirectoryCategories() {
return directoryCategories;
}
public void setDirectoryCategories(com.google.api.ws.clients.DirectoryCategory[] directoryCategories) {
this.directoryCategories = directoryCategories;
}
public double getSearchTime() {
return searchTime;
}
public void setSearchTime(double searchTime) {
this.searchTime = searchTime;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchService_Impl.java
New file
0,0 → 1,69
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.client.ServiceExceptionImpl;
import com.sun.xml.rpc.util.exception.*;
import com.sun.xml.rpc.soap.SOAPVersion;
import com.sun.xml.rpc.client.HandlerChainImpl;
import javax.xml.rpc.*;
import javax.xml.rpc.encoding.*;
import javax.xml.rpc.handler.HandlerChain;
import javax.xml.rpc.handler.HandlerInfo;
import javax.xml.namespace.QName;
 
public class GoogleSearchService_Impl extends com.sun.xml.rpc.client.BasicService implements GoogleSearchService {
private static final QName serviceName = new QName("urn:GoogleSearch", "GoogleSearchService");
private static final QName ns1_GoogleSearchPort_QNAME = new QName("urn:GoogleSearch", "GoogleSearchPort");
private static final Class googleSearchPort_PortClass = com.google.api.ws.clients.GoogleSearchPort.class;
public GoogleSearchService_Impl() {
super(serviceName, new QName[] {
ns1_GoogleSearchPort_QNAME
},
new com.google.api.ws.clients.GoogleSearchService_SerializerRegistry().getRegistry());
}
public java.rmi.Remote getPort(QName portName, Class serviceDefInterface) throws javax.xml.rpc.ServiceException {
try {
if (portName.equals(ns1_GoogleSearchPort_QNAME) &&
serviceDefInterface.equals(googleSearchPort_PortClass)) {
return getGoogleSearchPort();
}
} catch (Exception e) {
throw new ServiceExceptionImpl(new LocalizableExceptionAdapter(e));
}
return super.getPort(portName, serviceDefInterface);
}
public java.rmi.Remote getPort(Class serviceDefInterface) throws javax.xml.rpc.ServiceException {
try {
if (serviceDefInterface.equals(googleSearchPort_PortClass)) {
return getGoogleSearchPort();
}
} catch (Exception e) {
throw new ServiceExceptionImpl(new LocalizableExceptionAdapter(e));
}
return super.getPort(serviceDefInterface);
}
public com.google.api.ws.clients.GoogleSearchPort getGoogleSearchPort() {
String[] roles = new String[] {};
HandlerChainImpl handlerChain = new HandlerChainImpl(getHandlerRegistry().getHandlerChain(ns1_GoogleSearchPort_QNAME));
handlerChain.setRoles(roles);
com.google.api.ws.clients.GoogleSearchPort_Stub stub = new com.google.api.ws.clients.GoogleSearchPort_Stub(handlerChain);
try {
stub._initialize(super.internalTypeRegistry);
} catch (JAXRPCException e) {
throw e;
} catch (Exception e) {
throw new JAXRPCException(e.getMessage(), e);
}
return stub;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doSpellingSuggestion_RequestStruct_SOAPBuilder.java
New file
0,0 → 1,74
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.util.exception.LocalizableExceptionAdapter;
 
public class GoogleSearchPort_doSpellingSuggestion_RequestStruct_SOAPBuilder implements SOAPInstanceBuilder {
private com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct _instance;
private java.lang.String key;
private java.lang.String phrase;
private static final int myKEY_INDEX = 0;
private static final int myPHRASE_INDEX = 1;
public GoogleSearchPort_doSpellingSuggestion_RequestStruct_SOAPBuilder() {
}
public void setKey(java.lang.String key) {
this.key = key;
}
public void setPhrase(java.lang.String phrase) {
this.phrase = phrase;
}
public int memberGateType(int memberIndex) {
switch (memberIndex) {
case myKEY_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myPHRASE_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
default:
throw new IllegalArgumentException();
}
}
public void construct() {
}
public void setMember(int index, Object memberValue) {
try {
switch(index) {
case myKEY_INDEX:
_instance.setKey((java.lang.String)memberValue);
break;
case myPHRASE_INDEX:
_instance.setPhrase((java.lang.String)memberValue);
break;
default:
throw new IllegalArgumentException();
}
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e) {
throw new DeserializationException(new LocalizableExceptionAdapter(e));
}
}
public void initialize() {
}
public void setInstance(Object instance) {
_instance = (com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct)instance;
}
public Object getInstance() {
return _instance;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPSerializer.java
New file
0,0 → 1,204
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
import com.sun.xml.rpc.encoding.simpletype.*;
import com.sun.xml.rpc.encoding.soap.SOAPConstants;
import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
import com.sun.xml.rpc.streaming.*;
import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
 
public class GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPSerializer extends ObjectSerializerBase implements Initializable {
private static final QName ns1_key_QNAME = new QName("", "key");
private static final QName ns2_string_TYPE_QNAME = SchemaConstants.QNAME_TYPE_STRING;
private CombinedSerializer ns2_myns2_string__java_lang_String_String_Serializer;
private static final QName ns1_q_QNAME = new QName("", "q");
private static final QName ns1_start_QNAME = new QName("", "start");
private static final QName ns2_int_TYPE_QNAME = SchemaConstants.QNAME_TYPE_INT;
private CombinedSerializer ns2_myns2__int__int_Int_Serializer;
private static final QName ns1_maxResults_QNAME = new QName("", "maxResults");
private static final QName ns1_filter_QNAME = new QName("", "filter");
private static final QName ns2_boolean_TYPE_QNAME = SchemaConstants.QNAME_TYPE_BOOLEAN;
private CombinedSerializer ns2_myns2__boolean__boolean_Boolean_Serializer;
private static final QName ns1_restrict_QNAME = new QName("", "restrict");
private static final QName ns1_safeSearch_QNAME = new QName("", "safeSearch");
private static final QName ns1_lr_QNAME = new QName("", "lr");
private static final QName ns1_ie_QNAME = new QName("", "ie");
private static final QName ns1_oe_QNAME = new QName("", "oe");
private static final int myKEY_INDEX = 0;
private static final int myQ_INDEX = 1;
private static final int mySTART_INDEX = 2;
private static final int myMAXRESULTS_INDEX = 3;
private static final int myFILTER_INDEX = 4;
private static final int myRESTRICT_INDEX = 5;
private static final int mySAFESEARCH_INDEX = 6;
private static final int myLR_INDEX = 7;
private static final int myIE_INDEX = 8;
private static final int myOE_INDEX = 9;
public GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPSerializer(QName type, boolean encodeType, boolean isNullable, String encodingStyle) {
super(type, encodeType, isNullable, encodingStyle);
}
public void initialize(InternalTypeMappingRegistry registry) throws Exception {
ns2_myns2_string__java_lang_String_String_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, java.lang.String.class, ns2_string_TYPE_QNAME);
ns2_myns2__int__int_Int_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, int.class, ns2_int_TYPE_QNAME);
ns2_myns2__boolean__boolean_Boolean_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, boolean.class, ns2_boolean_TYPE_QNAME);
}
public Object doDeserialize(SOAPDeserializationState state, XMLReader reader,
SOAPDeserializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct instance = new com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct();
com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPBuilder builder = null;
Object member;
boolean isComplete = true;
QName elementName;
reader.nextElementContent();
for (int i=0; i<10; i++) {
elementName = reader.getName();
if (reader.getState() == XMLReader.END) {
break;
}
if (elementName.equals(ns1_key_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_key_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myKEY_INDEX, builder);
isComplete = false;
} else {
instance.setKey((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_q_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_q_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myQ_INDEX, builder);
isComplete = false;
} else {
instance.setQ((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_start_QNAME)) {
member = ns2_myns2__int__int_Int_Serializer.deserialize(ns1_start_QNAME, reader, context);
instance.setStart(((Integer)member).intValue());
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_maxResults_QNAME)) {
member = ns2_myns2__int__int_Int_Serializer.deserialize(ns1_maxResults_QNAME, reader, context);
instance.setMaxResults(((Integer)member).intValue());
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_filter_QNAME)) {
member = ns2_myns2__boolean__boolean_Boolean_Serializer.deserialize(ns1_filter_QNAME, reader, context);
instance.setFilter(((Boolean)member).booleanValue());
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_restrict_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_restrict_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myRESTRICT_INDEX, builder);
isComplete = false;
} else {
instance.setRestrict((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_safeSearch_QNAME)) {
member = ns2_myns2__boolean__boolean_Boolean_Serializer.deserialize(ns1_safeSearch_QNAME, reader, context);
instance.setSafeSearch(((Boolean)member).booleanValue());
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_lr_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_lr_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myLR_INDEX, builder);
isComplete = false;
} else {
instance.setLr((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_ie_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_ie_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myIE_INDEX, builder);
isComplete = false;
} else {
instance.setIe((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_oe_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_oe_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myOE_INDEX, builder);
isComplete = false;
} else {
instance.setOe((java.lang.String)member);
}
reader.nextElementContent();
continue;
} else {
throw new DeserializationException("soap.unexpectedElementName", new Object[] {ns1_oe_QNAME, elementName});
}
}
XMLReaderUtil.verifyReaderState(reader, XMLReader.END);
return (isComplete ? (Object)instance : (Object)state);
}
public void doSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct instance = (com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct)obj;
}
public void doSerializeInstance(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct instance = (com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct)obj;
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getKey(), ns1_key_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getQ(), ns1_q_QNAME, null, writer, context);
ns2_myns2__int__int_Int_Serializer.serialize(new Integer(instance.getStart()), ns1_start_QNAME, null, writer, context);
ns2_myns2__int__int_Int_Serializer.serialize(new Integer(instance.getMaxResults()), ns1_maxResults_QNAME, null, writer, context);
ns2_myns2__boolean__boolean_Boolean_Serializer.serialize(new Boolean(instance.isFilter()), ns1_filter_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getRestrict(), ns1_restrict_QNAME, null, writer, context);
ns2_myns2__boolean__boolean_Boolean_Serializer.serialize(new Boolean(instance.isSafeSearch()), ns1_safeSearch_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getLr(), ns1_lr_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getIe(), ns1_ie_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getOe(), ns1_oe_QNAME, null, writer, context);
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort.java
New file
0,0 → 1,15
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
public interface GoogleSearchPort extends java.rmi.Remote {
public byte[] doGetCachedPage(java.lang.String key, java.lang.String url) throws
java.rmi.RemoteException;
public java.lang.String doSpellingSuggestion(java.lang.String key, java.lang.String phrase) throws
java.rmi.RemoteException;
public com.google.api.ws.clients.GoogleSearchResult doGoogleSearch(java.lang.String key, java.lang.String q, int start, int maxResults, boolean filter, java.lang.String restrict, boolean safeSearch, java.lang.String lr, java.lang.String ie, java.lang.String oe) throws
java.rmi.RemoteException;
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doSpellingSuggestion_ResponseStruct_SOAPBuilder.java
New file
0,0 → 1,63
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.util.exception.LocalizableExceptionAdapter;
 
public class GoogleSearchPort_doSpellingSuggestion_ResponseStruct_SOAPBuilder implements SOAPInstanceBuilder {
private com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct _instance;
private java.lang.String _return;
private static final int my_RETURN_INDEX = 0;
public GoogleSearchPort_doSpellingSuggestion_ResponseStruct_SOAPBuilder() {
}
public void set_return(java.lang.String _return) {
this._return = _return;
}
public int memberGateType(int memberIndex) {
switch (memberIndex) {
case my_RETURN_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
default:
throw new IllegalArgumentException();
}
}
public void construct() {
}
public void setMember(int index, Object memberValue) {
try {
switch(index) {
case my_RETURN_INDEX:
_instance.set_return((java.lang.String)memberValue);
break;
default:
throw new IllegalArgumentException();
}
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e) {
throw new DeserializationException(new LocalizableExceptionAdapter(e));
}
}
public void initialize() {
}
public void setInstance(Object instance) {
_instance = (com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct)instance;
}
public Object getInstance() {
return _instance;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doSpellingSuggestion_RequestStruct.java
New file
0,0 → 1,36
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
 
public class GoogleSearchPort_doSpellingSuggestion_RequestStruct implements java.io.Serializable {
protected java.lang.String key;
protected java.lang.String phrase;
public GoogleSearchPort_doSpellingSuggestion_RequestStruct() {
}
public GoogleSearchPort_doSpellingSuggestion_RequestStruct(java.lang.String key, java.lang.String phrase) {
this.key = key;
this.phrase = phrase;
}
public java.lang.String getKey() {
return key;
}
public void setKey(java.lang.String key) {
this.key = key;
}
public java.lang.String getPhrase() {
return phrase;
}
public void setPhrase(java.lang.String phrase) {
this.phrase = phrase;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doGetCachedPage_ResponseStruct_SOAPSerializer.java
New file
0,0 → 1,75
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
import com.sun.xml.rpc.encoding.simpletype.*;
import com.sun.xml.rpc.encoding.soap.SOAPConstants;
import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
import com.sun.xml.rpc.streaming.*;
import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
 
public class GoogleSearchPort_doGetCachedPage_ResponseStruct_SOAPSerializer extends ObjectSerializerBase implements Initializable {
private static final QName ns1_return_QNAME = new QName("", "return");
private static final QName ns2_base64Binary_TYPE_QNAME = SchemaConstants.QNAME_TYPE_BASE64_BINARY;
private CombinedSerializer ns2_myns2_base64Binary__byte_Base64Binary_Serializer;
private static final int my_RETURN_INDEX = 0;
public GoogleSearchPort_doGetCachedPage_ResponseStruct_SOAPSerializer(QName type, boolean encodeType, boolean isNullable, String encodingStyle) {
super(type, encodeType, isNullable, encodingStyle);
}
public void initialize(InternalTypeMappingRegistry registry) throws Exception {
ns2_myns2_base64Binary__byte_Base64Binary_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, byte[].class, ns2_base64Binary_TYPE_QNAME);
}
public Object doDeserialize(SOAPDeserializationState state, XMLReader reader,
SOAPDeserializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct instance = new com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct();
com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct_SOAPBuilder builder = null;
Object member;
boolean isComplete = true;
QName elementName;
reader.nextElementContent();
elementName = reader.getName();
if (reader.getState() == XMLReader.START) {
if (elementName.equals(ns1_return_QNAME)) {
member = ns2_myns2_base64Binary__byte_Base64Binary_Serializer.deserialize(ns1_return_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, my_RETURN_INDEX, builder);
isComplete = false;
} else {
instance.set_return((byte[])member);
}
reader.nextElementContent();
} else {
throw new DeserializationException("soap.unexpectedElementName", new Object[] {ns1_return_QNAME, elementName});
}
}
XMLReaderUtil.verifyReaderState(reader, XMLReader.END);
return (isComplete ? (Object)instance : (Object)state);
}
public void doSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct instance = (com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct)obj;
}
public void doSerializeInstance(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct instance = (com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct)obj;
ns2_myns2_base64Binary__byte_Base64Binary_Serializer.serialize(instance.get_return(), ns1_return_QNAME, null, writer, context);
}
protected void verifyName(XMLReader reader, QName expectedName) throws Exception {
}
}
/impl/gen/java/com/google/api/ws/clients/ResultElement_SOAPBuilder.java
New file
0,0 → 1,146
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.util.exception.LocalizableExceptionAdapter;
 
public class ResultElement_SOAPBuilder implements SOAPInstanceBuilder {
private com.google.api.ws.clients.ResultElement _instance;
private java.lang.String summary;
private java.lang.String URL;
private java.lang.String snippet;
private java.lang.String title;
private java.lang.String cachedSize;
private boolean relatedInformationPresent;
private java.lang.String hostName;
private com.google.api.ws.clients.DirectoryCategory directoryCategory;
private java.lang.String directoryTitle;
private static final int mySUMMARY_INDEX = 0;
private static final int myURL_INDEX = 1;
private static final int mySNIPPET_INDEX = 2;
private static final int myTITLE_INDEX = 3;
private static final int myCACHEDSIZE_INDEX = 4;
private static final int myRELATEDINFORMATIONPRESENT_INDEX = 5;
private static final int myHOSTNAME_INDEX = 6;
private static final int myDIRECTORYCATEGORY_INDEX = 7;
private static final int myDIRECTORYTITLE_INDEX = 8;
public ResultElement_SOAPBuilder() {
}
public void setSummary(java.lang.String summary) {
this.summary = summary;
}
public void setURL(java.lang.String URL) {
this.URL = URL;
}
public void setSnippet(java.lang.String snippet) {
this.snippet = snippet;
}
public void setTitle(java.lang.String title) {
this.title = title;
}
public void setCachedSize(java.lang.String cachedSize) {
this.cachedSize = cachedSize;
}
public void setRelatedInformationPresent(boolean relatedInformationPresent) {
this.relatedInformationPresent = relatedInformationPresent;
}
public void setHostName(java.lang.String hostName) {
this.hostName = hostName;
}
public void setDirectoryCategory(com.google.api.ws.clients.DirectoryCategory directoryCategory) {
this.directoryCategory = directoryCategory;
}
public void setDirectoryTitle(java.lang.String directoryTitle) {
this.directoryTitle = directoryTitle;
}
public int memberGateType(int memberIndex) {
switch (memberIndex) {
case mySUMMARY_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myURL_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case mySNIPPET_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myTITLE_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myCACHEDSIZE_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myHOSTNAME_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myDIRECTORYCATEGORY_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myDIRECTORYTITLE_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
default:
throw new IllegalArgumentException();
}
}
public void construct() {
}
public void setMember(int index, Object memberValue) {
try {
switch(index) {
case mySUMMARY_INDEX:
_instance.setSummary((java.lang.String)memberValue);
break;
case myURL_INDEX:
_instance.setURL((java.lang.String)memberValue);
break;
case mySNIPPET_INDEX:
_instance.setSnippet((java.lang.String)memberValue);
break;
case myTITLE_INDEX:
_instance.setTitle((java.lang.String)memberValue);
break;
case myCACHEDSIZE_INDEX:
_instance.setCachedSize((java.lang.String)memberValue);
break;
case myHOSTNAME_INDEX:
_instance.setHostName((java.lang.String)memberValue);
break;
case myDIRECTORYCATEGORY_INDEX:
_instance.setDirectoryCategory((com.google.api.ws.clients.DirectoryCategory)memberValue);
break;
case myDIRECTORYTITLE_INDEX:
_instance.setDirectoryTitle((java.lang.String)memberValue);
break;
default:
throw new IllegalArgumentException();
}
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e) {
throw new DeserializationException(new LocalizableExceptionAdapter(e));
}
}
public void initialize() {
}
public void setInstance(Object instance) {
_instance = (com.google.api.ws.clients.ResultElement)instance;
}
public Object getInstance() {
return _instance;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doSpellingSuggestion_ResponseStruct.java
New file
0,0 → 1,26
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
 
public class GoogleSearchPort_doSpellingSuggestion_ResponseStruct implements java.io.Serializable {
protected java.lang.String _return;
public GoogleSearchPort_doSpellingSuggestion_ResponseStruct() {
}
public GoogleSearchPort_doSpellingSuggestion_ResponseStruct(java.lang.String _return) {
this._return = _return;
}
public java.lang.String get_return() {
return _return;
}
public void set_return(java.lang.String _return) {
this._return = _return;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPBuilder.java
New file
0,0 → 1,142
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.util.exception.LocalizableExceptionAdapter;
 
public class GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPBuilder implements SOAPInstanceBuilder {
private com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct _instance;
private java.lang.String key;
private java.lang.String q;
private int start;
private int maxResults;
private boolean filter;
private java.lang.String restrict;
private boolean safeSearch;
private java.lang.String lr;
private java.lang.String ie;
private java.lang.String oe;
private static final int myKEY_INDEX = 0;
private static final int myQ_INDEX = 1;
private static final int mySTART_INDEX = 2;
private static final int myMAXRESULTS_INDEX = 3;
private static final int myFILTER_INDEX = 4;
private static final int myRESTRICT_INDEX = 5;
private static final int mySAFESEARCH_INDEX = 6;
private static final int myLR_INDEX = 7;
private static final int myIE_INDEX = 8;
private static final int myOE_INDEX = 9;
public GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPBuilder() {
}
public void setKey(java.lang.String key) {
this.key = key;
}
public void setQ(java.lang.String q) {
this.q = q;
}
public void setStart(int start) {
this.start = start;
}
public void setMaxResults(int maxResults) {
this.maxResults = maxResults;
}
public void setFilter(boolean filter) {
this.filter = filter;
}
public void setRestrict(java.lang.String restrict) {
this.restrict = restrict;
}
public void setSafeSearch(boolean safeSearch) {
this.safeSearch = safeSearch;
}
public void setLr(java.lang.String lr) {
this.lr = lr;
}
public void setIe(java.lang.String ie) {
this.ie = ie;
}
public void setOe(java.lang.String oe) {
this.oe = oe;
}
public int memberGateType(int memberIndex) {
switch (memberIndex) {
case myKEY_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myQ_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myRESTRICT_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myLR_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myIE_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myOE_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
default:
throw new IllegalArgumentException();
}
}
public void construct() {
}
public void setMember(int index, Object memberValue) {
try {
switch(index) {
case myKEY_INDEX:
_instance.setKey((java.lang.String)memberValue);
break;
case myQ_INDEX:
_instance.setQ((java.lang.String)memberValue);
break;
case myRESTRICT_INDEX:
_instance.setRestrict((java.lang.String)memberValue);
break;
case myLR_INDEX:
_instance.setLr((java.lang.String)memberValue);
break;
case myIE_INDEX:
_instance.setIe((java.lang.String)memberValue);
break;
case myOE_INDEX:
_instance.setOe((java.lang.String)memberValue);
break;
default:
throw new IllegalArgumentException();
}
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e) {
throw new DeserializationException(new LocalizableExceptionAdapter(e));
}
}
public void initialize() {
}
public void setInstance(Object instance) {
_instance = (com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct)instance;
}
public Object getInstance() {
return _instance;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchService.java
New file
0,0 → 1,12
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import javax.xml.rpc.*;
 
public interface GoogleSearchService extends javax.xml.rpc.Service {
public com.google.api.ws.clients.GoogleSearchPort getGoogleSearchPort() throws ServiceException;
}
/impl/gen/java/com/google/api/ws/clients/ResultElement.java
New file
0,0 → 1,106
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
 
public class ResultElement implements java.io.Serializable {
protected java.lang.String summary;
protected java.lang.String URL;
protected java.lang.String snippet;
protected java.lang.String title;
protected java.lang.String cachedSize;
protected boolean relatedInformationPresent;
protected java.lang.String hostName;
protected com.google.api.ws.clients.DirectoryCategory directoryCategory;
protected java.lang.String directoryTitle;
public ResultElement() {
}
public ResultElement(java.lang.String summary, java.lang.String URL, java.lang.String snippet, java.lang.String title, java.lang.String cachedSize, boolean relatedInformationPresent, java.lang.String hostName, com.google.api.ws.clients.DirectoryCategory directoryCategory, java.lang.String directoryTitle) {
this.summary = summary;
this.URL = URL;
this.snippet = snippet;
this.title = title;
this.cachedSize = cachedSize;
this.relatedInformationPresent = relatedInformationPresent;
this.hostName = hostName;
this.directoryCategory = directoryCategory;
this.directoryTitle = directoryTitle;
}
public java.lang.String getSummary() {
return summary;
}
public void setSummary(java.lang.String summary) {
this.summary = summary;
}
public java.lang.String getURL() {
return URL;
}
public void setURL(java.lang.String URL) {
this.URL = URL;
}
public java.lang.String getSnippet() {
return snippet;
}
public void setSnippet(java.lang.String snippet) {
this.snippet = snippet;
}
public java.lang.String getTitle() {
return title;
}
public void setTitle(java.lang.String title) {
this.title = title;
}
public java.lang.String getCachedSize() {
return cachedSize;
}
public void setCachedSize(java.lang.String cachedSize) {
this.cachedSize = cachedSize;
}
public boolean isRelatedInformationPresent() {
return relatedInformationPresent;
}
public void setRelatedInformationPresent(boolean relatedInformationPresent) {
this.relatedInformationPresent = relatedInformationPresent;
}
public java.lang.String getHostName() {
return hostName;
}
public void setHostName(java.lang.String hostName) {
this.hostName = hostName;
}
public com.google.api.ws.clients.DirectoryCategory getDirectoryCategory() {
return directoryCategory;
}
public void setDirectoryCategory(com.google.api.ws.clients.DirectoryCategory directoryCategory) {
this.directoryCategory = directoryCategory;
}
public java.lang.String getDirectoryTitle() {
return directoryTitle;
}
public void setDirectoryTitle(java.lang.String directoryTitle) {
this.directoryTitle = directoryTitle;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doSpellingSuggestion_RequestStruct_SOAPSerializer.java
New file
0,0 → 1,94
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
import com.sun.xml.rpc.encoding.simpletype.*;
import com.sun.xml.rpc.encoding.soap.SOAPConstants;
import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
import com.sun.xml.rpc.streaming.*;
import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
 
public class GoogleSearchPort_doSpellingSuggestion_RequestStruct_SOAPSerializer extends ObjectSerializerBase implements Initializable {
private static final QName ns1_key_QNAME = new QName("", "key");
private static final QName ns2_string_TYPE_QNAME = SchemaConstants.QNAME_TYPE_STRING;
private CombinedSerializer ns2_myns2_string__java_lang_String_String_Serializer;
private static final QName ns1_phrase_QNAME = new QName("", "phrase");
private static final int myKEY_INDEX = 0;
private static final int myPHRASE_INDEX = 1;
public GoogleSearchPort_doSpellingSuggestion_RequestStruct_SOAPSerializer(QName type, boolean encodeType, boolean isNullable, String encodingStyle) {
super(type, encodeType, isNullable, encodingStyle);
}
public void initialize(InternalTypeMappingRegistry registry) throws Exception {
ns2_myns2_string__java_lang_String_String_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, java.lang.String.class, ns2_string_TYPE_QNAME);
}
public Object doDeserialize(SOAPDeserializationState state, XMLReader reader,
SOAPDeserializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct instance = new com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct();
com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct_SOAPBuilder builder = null;
Object member;
boolean isComplete = true;
QName elementName;
reader.nextElementContent();
for (int i=0; i<2; i++) {
elementName = reader.getName();
if (reader.getState() == XMLReader.END) {
break;
}
if (elementName.equals(ns1_key_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_key_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myKEY_INDEX, builder);
isComplete = false;
} else {
instance.setKey((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_phrase_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_phrase_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myPHRASE_INDEX, builder);
isComplete = false;
} else {
instance.setPhrase((java.lang.String)member);
}
reader.nextElementContent();
continue;
} else {
throw new DeserializationException("soap.unexpectedElementName", new Object[] {ns1_phrase_QNAME, elementName});
}
}
XMLReaderUtil.verifyReaderState(reader, XMLReader.END);
return (isComplete ? (Object)instance : (Object)state);
}
public void doSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct instance = (com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct)obj;
}
public void doSerializeInstance(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct instance = (com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct)obj;
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getKey(), ns1_key_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getPhrase(), ns1_phrase_QNAME, null, writer, context);
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doGoogleSearch_RequestStruct.java
New file
0,0 → 1,116
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
 
public class GoogleSearchPort_doGoogleSearch_RequestStruct implements java.io.Serializable {
protected java.lang.String key;
protected java.lang.String q;
protected int start;
protected int maxResults;
protected boolean filter;
protected java.lang.String restrict;
protected boolean safeSearch;
protected java.lang.String lr;
protected java.lang.String ie;
protected java.lang.String oe;
public GoogleSearchPort_doGoogleSearch_RequestStruct() {
}
public GoogleSearchPort_doGoogleSearch_RequestStruct(java.lang.String key, java.lang.String q, int start, int maxResults, boolean filter, java.lang.String restrict, boolean safeSearch, java.lang.String lr, java.lang.String ie, java.lang.String oe) {
this.key = key;
this.q = q;
this.start = start;
this.maxResults = maxResults;
this.filter = filter;
this.restrict = restrict;
this.safeSearch = safeSearch;
this.lr = lr;
this.ie = ie;
this.oe = oe;
}
public java.lang.String getKey() {
return key;
}
public void setKey(java.lang.String key) {
this.key = key;
}
public java.lang.String getQ() {
return q;
}
public void setQ(java.lang.String q) {
this.q = q;
}
public int getStart() {
return start;
}
public void setStart(int start) {
this.start = start;
}
public int getMaxResults() {
return maxResults;
}
public void setMaxResults(int maxResults) {
this.maxResults = maxResults;
}
public boolean isFilter() {
return filter;
}
public void setFilter(boolean filter) {
this.filter = filter;
}
public java.lang.String getRestrict() {
return restrict;
}
public void setRestrict(java.lang.String restrict) {
this.restrict = restrict;
}
public boolean isSafeSearch() {
return safeSearch;
}
public void setSafeSearch(boolean safeSearch) {
this.safeSearch = safeSearch;
}
public java.lang.String getLr() {
return lr;
}
public void setLr(java.lang.String lr) {
this.lr = lr;
}
public java.lang.String getIe() {
return ie;
}
public void setIe(java.lang.String ie) {
this.ie = ie;
}
public java.lang.String getOe() {
return oe;
}
public void setOe(java.lang.String oe) {
this.oe = oe;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doGetCachedPage_ResponseStruct_SOAPBuilder.java
New file
0,0 → 1,63
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.util.exception.LocalizableExceptionAdapter;
 
public class GoogleSearchPort_doGetCachedPage_ResponseStruct_SOAPBuilder implements SOAPInstanceBuilder {
private com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct _instance;
private byte[] _return;
private static final int my_RETURN_INDEX = 0;
public GoogleSearchPort_doGetCachedPage_ResponseStruct_SOAPBuilder() {
}
public void set_return(byte[] _return) {
this._return = _return;
}
public int memberGateType(int memberIndex) {
switch (memberIndex) {
case my_RETURN_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
default:
throw new IllegalArgumentException();
}
}
public void construct() {
}
public void setMember(int index, Object memberValue) {
try {
switch(index) {
case my_RETURN_INDEX:
_instance.set_return((byte[])memberValue);
break;
default:
throw new IllegalArgumentException();
}
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e) {
throw new DeserializationException(new LocalizableExceptionAdapter(e));
}
}
public void initialize() {
}
public void setInstance(Object instance) {
_instance = (com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct)instance;
}
public Object getInstance() {
return _instance;
}
}
/impl/gen/java/com/google/api/ws/clients/DirectoryCategory_SOAPBuilder.java
New file
0,0 → 1,74
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.util.exception.LocalizableExceptionAdapter;
 
public class DirectoryCategory_SOAPBuilder implements SOAPInstanceBuilder {
private com.google.api.ws.clients.DirectoryCategory _instance;
private java.lang.String fullViewableName;
private java.lang.String specialEncoding;
private static final int myFULLVIEWABLENAME_INDEX = 0;
private static final int mySPECIALENCODING_INDEX = 1;
public DirectoryCategory_SOAPBuilder() {
}
public void setFullViewableName(java.lang.String fullViewableName) {
this.fullViewableName = fullViewableName;
}
public void setSpecialEncoding(java.lang.String specialEncoding) {
this.specialEncoding = specialEncoding;
}
public int memberGateType(int memberIndex) {
switch (memberIndex) {
case myFULLVIEWABLENAME_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case mySPECIALENCODING_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
default:
throw new IllegalArgumentException();
}
}
public void construct() {
}
public void setMember(int index, Object memberValue) {
try {
switch(index) {
case myFULLVIEWABLENAME_INDEX:
_instance.setFullViewableName((java.lang.String)memberValue);
break;
case mySPECIALENCODING_INDEX:
_instance.setSpecialEncoding((java.lang.String)memberValue);
break;
default:
throw new IllegalArgumentException();
}
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e) {
throw new DeserializationException(new LocalizableExceptionAdapter(e));
}
}
public void initialize() {
}
public void setInstance(Object instance) {
_instance = (com.google.api.ws.clients.DirectoryCategory)instance;
}
public Object getInstance() {
return _instance;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doSpellingSuggestion_ResponseStruct_SOAPSerializer.java
New file
0,0 → 1,75
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
import com.sun.xml.rpc.encoding.simpletype.*;
import com.sun.xml.rpc.encoding.soap.SOAPConstants;
import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
import com.sun.xml.rpc.streaming.*;
import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
 
public class GoogleSearchPort_doSpellingSuggestion_ResponseStruct_SOAPSerializer extends ObjectSerializerBase implements Initializable {
private static final QName ns1_return_QNAME = new QName("", "return");
private static final QName ns2_string_TYPE_QNAME = SchemaConstants.QNAME_TYPE_STRING;
private CombinedSerializer ns2_myns2_string__java_lang_String_String_Serializer;
private static final int my_RETURN_INDEX = 0;
public GoogleSearchPort_doSpellingSuggestion_ResponseStruct_SOAPSerializer(QName type, boolean encodeType, boolean isNullable, String encodingStyle) {
super(type, encodeType, isNullable, encodingStyle);
}
public void initialize(InternalTypeMappingRegistry registry) throws Exception {
ns2_myns2_string__java_lang_String_String_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, java.lang.String.class, ns2_string_TYPE_QNAME);
}
public Object doDeserialize(SOAPDeserializationState state, XMLReader reader,
SOAPDeserializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct instance = new com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct();
com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct_SOAPBuilder builder = null;
Object member;
boolean isComplete = true;
QName elementName;
reader.nextElementContent();
elementName = reader.getName();
if (reader.getState() == XMLReader.START) {
if (elementName.equals(ns1_return_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_return_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, my_RETURN_INDEX, builder);
isComplete = false;
} else {
instance.set_return((java.lang.String)member);
}
reader.nextElementContent();
} else {
throw new DeserializationException("soap.unexpectedElementName", new Object[] {ns1_return_QNAME, elementName});
}
}
XMLReaderUtil.verifyReaderState(reader, XMLReader.END);
return (isComplete ? (Object)instance : (Object)state);
}
public void doSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct instance = (com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct)obj;
}
public void doSerializeInstance(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct instance = (com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct)obj;
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.get_return(), ns1_return_QNAME, null, writer, context);
}
protected void verifyName(XMLReader reader, QName expectedName) throws Exception {
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doGetCachedPage_ResponseStruct.java
New file
0,0 → 1,26
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
 
public class GoogleSearchPort_doGetCachedPage_ResponseStruct implements java.io.Serializable {
protected byte[] _return;
public GoogleSearchPort_doGetCachedPage_ResponseStruct() {
}
public GoogleSearchPort_doGetCachedPage_ResponseStruct(byte[] _return) {
this._return = _return;
}
public byte[] get_return() {
return _return;
}
public void set_return(byte[] _return) {
this._return = _return;
}
}
/impl/gen/java/com/google/api/ws/clients/DirectoryCategory.java
New file
0,0 → 1,36
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
 
public class DirectoryCategory implements java.io.Serializable {
protected java.lang.String fullViewableName;
protected java.lang.String specialEncoding;
public DirectoryCategory() {
}
public DirectoryCategory(java.lang.String fullViewableName, java.lang.String specialEncoding) {
this.fullViewableName = fullViewableName;
this.specialEncoding = specialEncoding;
}
public java.lang.String getFullViewableName() {
return fullViewableName;
}
public void setFullViewableName(java.lang.String fullViewableName) {
this.fullViewableName = fullViewableName;
}
public java.lang.String getSpecialEncoding() {
return specialEncoding;
}
public void setSpecialEncoding(java.lang.String specialEncoding) {
this.specialEncoding = specialEncoding;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_Stub.java
New file
0,0 → 1,346
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.server.http.MessageContextProperties;
import com.sun.xml.rpc.streaming.*;
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.encoding.soap.SOAPConstants;
import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
import com.sun.xml.rpc.encoding.literal.*;
import com.sun.xml.rpc.soap.streaming.*;
import com.sun.xml.rpc.soap.message.*;
import com.sun.xml.rpc.soap.SOAPVersion;
import com.sun.xml.rpc.soap.SOAPEncodingConstants;
import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
import java.rmi.RemoteException;
import java.util.Iterator;
import java.lang.reflect.*;
import java.lang.Class;
import com.sun.xml.rpc.client.SenderException;
import com.sun.xml.rpc.client.*;
import com.sun.xml.rpc.client.http.*;
import javax.xml.rpc.handler.*;
import javax.xml.rpc.JAXRPCException;
import javax.xml.rpc.soap.SOAPFaultException;
 
public class GoogleSearchPort_Stub
extends com.sun.xml.rpc.client.StubBase
implements com.google.api.ws.clients.GoogleSearchPort {
/*
* public constructor
*/
public GoogleSearchPort_Stub(HandlerChain handlerChain) {
super(handlerChain);
_setProperty(ENDPOINT_ADDRESS_PROPERTY, "http://api.google.com/search/beta2");
}
/*
* implementation of doGoogleSearch
*/
public com.google.api.ws.clients.GoogleSearchResult doGoogleSearch(java.lang.String key, java.lang.String q, int start, int maxResults, boolean filter, java.lang.String restrict, boolean safeSearch, java.lang.String lr, java.lang.String ie, java.lang.String oe)
throws java.rmi.RemoteException {
try {
StreamingSenderState _state = _start(_handlerChain);
InternalSOAPMessage _request = _state.getRequest();
_request.setOperationCode(doGoogleSearch_OPCODE);
com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct _myGoogleSearchPort_doGoogleSearch_RequestStruct =
new com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct();
_myGoogleSearchPort_doGoogleSearch_RequestStruct.setKey(key);
_myGoogleSearchPort_doGoogleSearch_RequestStruct.setQ(q);
_myGoogleSearchPort_doGoogleSearch_RequestStruct.setStart(start);
_myGoogleSearchPort_doGoogleSearch_RequestStruct.setMaxResults(maxResults);
_myGoogleSearchPort_doGoogleSearch_RequestStruct.setFilter(filter);
_myGoogleSearchPort_doGoogleSearch_RequestStruct.setRestrict(restrict);
_myGoogleSearchPort_doGoogleSearch_RequestStruct.setSafeSearch(safeSearch);
_myGoogleSearchPort_doGoogleSearch_RequestStruct.setLr(lr);
_myGoogleSearchPort_doGoogleSearch_RequestStruct.setIe(ie);
_myGoogleSearchPort_doGoogleSearch_RequestStruct.setOe(oe);
SOAPBlockInfo _bodyBlock = new SOAPBlockInfo(ns1_doGoogleSearch_doGoogleSearch_QNAME);
_bodyBlock.setValue(_myGoogleSearchPort_doGoogleSearch_RequestStruct);
_bodyBlock.setSerializer(ns1_myGoogleSearchPort_doGoogleSearch_RequestStruct_SOAPSerializer);
_request.setBody(_bodyBlock);
_state.getMessageContext().setProperty(HttpClientTransport.HTTP_SOAPACTION_PROPERTY, "urn:GoogleSearchAction");
_send((String) _getProperty(ENDPOINT_ADDRESS_PROPERTY), _state);
com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct _myGoogleSearchPort_doGoogleSearch_ResponseStruct = null;
Object _responseObj = _state.getResponse().getBody().getValue();
if (_responseObj instanceof SOAPDeserializationState) {
_myGoogleSearchPort_doGoogleSearch_ResponseStruct =
(com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct)((SOAPDeserializationState)_responseObj).getInstance();
} else {
_myGoogleSearchPort_doGoogleSearch_ResponseStruct =
(com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct)_responseObj;
}
return _myGoogleSearchPort_doGoogleSearch_ResponseStruct.get_return();
} catch (RemoteException e) {
// let this one through unchanged
throw e;
} catch (JAXRPCException e) {
throw new RemoteException(e.getMessage(), e);
} catch (Exception e) {
if (e instanceof RuntimeException) {
throw (RuntimeException)e;
} else {
throw new RemoteException(e.getMessage(), e);
}
}
}
/*
* implementation of doGetCachedPage
*/
public byte[] doGetCachedPage(java.lang.String key, java.lang.String url)
throws java.rmi.RemoteException {
try {
StreamingSenderState _state = _start(_handlerChain);
InternalSOAPMessage _request = _state.getRequest();
_request.setOperationCode(doGetCachedPage_OPCODE);
com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct _myGoogleSearchPort_doGetCachedPage_RequestStruct =
new com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct();
_myGoogleSearchPort_doGetCachedPage_RequestStruct.setKey(key);
_myGoogleSearchPort_doGetCachedPage_RequestStruct.setUrl(url);
SOAPBlockInfo _bodyBlock = new SOAPBlockInfo(ns1_doGetCachedPage_doGetCachedPage_QNAME);
_bodyBlock.setValue(_myGoogleSearchPort_doGetCachedPage_RequestStruct);
_bodyBlock.setSerializer(ns1_myGoogleSearchPort_doGetCachedPage_RequestStruct_SOAPSerializer);
_request.setBody(_bodyBlock);
_state.getMessageContext().setProperty(HttpClientTransport.HTTP_SOAPACTION_PROPERTY, "urn:GoogleSearchAction");
_send((String) _getProperty(ENDPOINT_ADDRESS_PROPERTY), _state);
com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct _myGoogleSearchPort_doGetCachedPage_ResponseStruct = null;
Object _responseObj = _state.getResponse().getBody().getValue();
if (_responseObj instanceof SOAPDeserializationState) {
_myGoogleSearchPort_doGetCachedPage_ResponseStruct =
(com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct)((SOAPDeserializationState)_responseObj).getInstance();
} else {
_myGoogleSearchPort_doGetCachedPage_ResponseStruct =
(com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct)_responseObj;
}
return _myGoogleSearchPort_doGetCachedPage_ResponseStruct.get_return();
} catch (RemoteException e) {
// let this one through unchanged
throw e;
} catch (JAXRPCException e) {
throw new RemoteException(e.getMessage(), e);
} catch (Exception e) {
if (e instanceof RuntimeException) {
throw (RuntimeException)e;
} else {
throw new RemoteException(e.getMessage(), e);
}
}
}
/*
* implementation of doSpellingSuggestion
*/
public java.lang.String doSpellingSuggestion(java.lang.String key, java.lang.String phrase)
throws java.rmi.RemoteException {
try {
StreamingSenderState _state = _start(_handlerChain);
InternalSOAPMessage _request = _state.getRequest();
_request.setOperationCode(doSpellingSuggestion_OPCODE);
com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct _myGoogleSearchPort_doSpellingSuggestion_RequestStruct =
new com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct();
_myGoogleSearchPort_doSpellingSuggestion_RequestStruct.setKey(key);
_myGoogleSearchPort_doSpellingSuggestion_RequestStruct.setPhrase(phrase);
SOAPBlockInfo _bodyBlock = new SOAPBlockInfo(ns1_doSpellingSuggestion_doSpellingSuggestion_QNAME);
_bodyBlock.setValue(_myGoogleSearchPort_doSpellingSuggestion_RequestStruct);
_bodyBlock.setSerializer(ns1_myGoogleSearchPort_doSpellingSuggestion_RequestStruct_SOAPSerializer);
_request.setBody(_bodyBlock);
_state.getMessageContext().setProperty(HttpClientTransport.HTTP_SOAPACTION_PROPERTY, "urn:GoogleSearchAction");
_send((String) _getProperty(ENDPOINT_ADDRESS_PROPERTY), _state);
com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct _myGoogleSearchPort_doSpellingSuggestion_ResponseStruct = null;
Object _responseObj = _state.getResponse().getBody().getValue();
if (_responseObj instanceof SOAPDeserializationState) {
_myGoogleSearchPort_doSpellingSuggestion_ResponseStruct =
(com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct)((SOAPDeserializationState)_responseObj).getInstance();
} else {
_myGoogleSearchPort_doSpellingSuggestion_ResponseStruct =
(com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct)_responseObj;
}
return _myGoogleSearchPort_doSpellingSuggestion_ResponseStruct.get_return();
} catch (RemoteException e) {
// let this one through unchanged
throw e;
} catch (JAXRPCException e) {
throw new RemoteException(e.getMessage(), e);
} catch (Exception e) {
if (e instanceof RuntimeException) {
throw (RuntimeException)e;
} else {
throw new RemoteException(e.getMessage(), e);
}
}
}
/*
* this method deserializes the request/response structure in the body
*/
protected void _readFirstBodyElement(XMLReader bodyReader, SOAPDeserializationContext deserializationContext, StreamingSenderState state) throws Exception {
int opcode = state.getRequest().getOperationCode();
switch (opcode) {
case doGoogleSearch_OPCODE:
_deserialize_doGoogleSearch(bodyReader, deserializationContext, state);
break;
case doGetCachedPage_OPCODE:
_deserialize_doGetCachedPage(bodyReader, deserializationContext, state);
break;
case doSpellingSuggestion_OPCODE:
_deserialize_doSpellingSuggestion(bodyReader, deserializationContext, state);
break;
default:
throw new SenderException("sender.response.unrecognizedOperation", Integer.toString(opcode));
}
}
/*
* This method deserializes the body of the doGoogleSearch operation.
*/
private void _deserialize_doGoogleSearch(XMLReader bodyReader, SOAPDeserializationContext deserializationContext, StreamingSenderState state) throws Exception {
Object myGoogleSearchPort_doGoogleSearch_ResponseStructObj =
ns1_myGoogleSearchPort_doGoogleSearch_ResponseStruct_SOAPSerializer.deserialize(ns1_doGoogleSearch_doGoogleSearchResponse_QNAME,
bodyReader, deserializationContext);
SOAPBlockInfo bodyBlock = new SOAPBlockInfo(ns1_doGoogleSearch_doGoogleSearchResponse_QNAME);
bodyBlock.setValue(myGoogleSearchPort_doGoogleSearch_ResponseStructObj);
state.getResponse().setBody(bodyBlock);
}
/*
* This method deserializes the body of the doGetCachedPage operation.
*/
private void _deserialize_doGetCachedPage(XMLReader bodyReader, SOAPDeserializationContext deserializationContext, StreamingSenderState state) throws Exception {
Object myGoogleSearchPort_doGetCachedPage_ResponseStructObj =
ns1_myGoogleSearchPort_doGetCachedPage_ResponseStruct_SOAPSerializer.deserialize(ns1_doGetCachedPage_doGetCachedPageResponse_QNAME,
bodyReader, deserializationContext);
SOAPBlockInfo bodyBlock = new SOAPBlockInfo(ns1_doGetCachedPage_doGetCachedPageResponse_QNAME);
bodyBlock.setValue(myGoogleSearchPort_doGetCachedPage_ResponseStructObj);
state.getResponse().setBody(bodyBlock);
}
/*
* This method deserializes the body of the doSpellingSuggestion operation.
*/
private void _deserialize_doSpellingSuggestion(XMLReader bodyReader, SOAPDeserializationContext deserializationContext, StreamingSenderState state) throws Exception {
Object myGoogleSearchPort_doSpellingSuggestion_ResponseStructObj =
ns1_myGoogleSearchPort_doSpellingSuggestion_ResponseStruct_SOAPSerializer.deserialize(ns1_doSpellingSuggestion_doSpellingSuggestionResponse_QNAME,
bodyReader, deserializationContext);
SOAPBlockInfo bodyBlock = new SOAPBlockInfo(ns1_doSpellingSuggestion_doSpellingSuggestionResponse_QNAME);
bodyBlock.setValue(myGoogleSearchPort_doSpellingSuggestion_ResponseStructObj);
state.getResponse().setBody(bodyBlock);
}
public String _getDefaultEnvelopeEncodingStyle() {
return SOAPNamespaceConstants.ENCODING;
}
public String _getImplicitEnvelopeEncodingStyle() {
return "";
}
public String _getEncodingStyle() {
return SOAPNamespaceConstants.ENCODING;
}
public void _setEncodingStyle(String encodingStyle) {
throw new UnsupportedOperationException("cannot set encoding style");
}
/*
* This method returns an array containing (prefix, nsURI) pairs.
*/
protected String[] _getNamespaceDeclarations() {
return myNamespace_declarations;
}
/*
* This method returns an array containing the names of the headers we understand.
*/
public QName[] _getUnderstoodHeaders() {
return understoodHeaderNames;
}
public void _initialize(InternalTypeMappingRegistry registry) throws Exception {
super._initialize(registry);
ns1_myGoogleSearchPort_doGoogleSearch_RequestStruct_SOAPSerializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct.class, ns1_doGoogleSearch_TYPE_QNAME);
ns1_myGoogleSearchPort_doGetCachedPage_ResponseStruct_SOAPSerializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct.class, ns1_doGetCachedPageResponse_TYPE_QNAME);
ns1_myGoogleSearchPort_doGetCachedPage_RequestStruct_SOAPSerializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct.class, ns1_doGetCachedPage_TYPE_QNAME);
ns1_myGoogleSearchPort_doSpellingSuggestion_RequestStruct_SOAPSerializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct.class, ns1_doSpellingSuggestion_TYPE_QNAME);
ns1_myGoogleSearchPort_doSpellingSuggestion_ResponseStruct_SOAPSerializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct.class, ns1_doSpellingSuggestionResponse_TYPE_QNAME);
ns1_myGoogleSearchPort_doGoogleSearch_ResponseStruct_SOAPSerializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct.class, ns1_doGoogleSearchResponse_TYPE_QNAME);
}
private static final QName _portName = new QName("urn:GoogleSearch", "GoogleSearchPort");
private static final int doGoogleSearch_OPCODE = 0;
private static final int doGetCachedPage_OPCODE = 1;
private static final int doSpellingSuggestion_OPCODE = 2;
private static final QName ns1_doGoogleSearch_doGoogleSearch_QNAME = new QName("urn:GoogleSearch", "doGoogleSearch");
private static final QName ns1_doGoogleSearch_TYPE_QNAME = new QName("urn:GoogleSearch", "doGoogleSearch");
private CombinedSerializer ns1_myGoogleSearchPort_doGoogleSearch_RequestStruct_SOAPSerializer;
private static final QName ns1_doGoogleSearch_doGoogleSearchResponse_QNAME = new QName("urn:GoogleSearch", "doGoogleSearchResponse");
private static final QName ns1_doGoogleSearchResponse_TYPE_QNAME = new QName("urn:GoogleSearch", "doGoogleSearchResponse");
private CombinedSerializer ns1_myGoogleSearchPort_doGoogleSearch_ResponseStruct_SOAPSerializer;
private static final QName ns1_doGetCachedPage_doGetCachedPage_QNAME = new QName("urn:GoogleSearch", "doGetCachedPage");
private static final QName ns1_doGetCachedPage_TYPE_QNAME = new QName("urn:GoogleSearch", "doGetCachedPage");
private CombinedSerializer ns1_myGoogleSearchPort_doGetCachedPage_RequestStruct_SOAPSerializer;
private static final QName ns1_doGetCachedPage_doGetCachedPageResponse_QNAME = new QName("urn:GoogleSearch", "doGetCachedPageResponse");
private static final QName ns1_doGetCachedPageResponse_TYPE_QNAME = new QName("urn:GoogleSearch", "doGetCachedPageResponse");
private CombinedSerializer ns1_myGoogleSearchPort_doGetCachedPage_ResponseStruct_SOAPSerializer;
private static final QName ns1_doSpellingSuggestion_doSpellingSuggestion_QNAME = new QName("urn:GoogleSearch", "doSpellingSuggestion");
private static final QName ns1_doSpellingSuggestion_TYPE_QNAME = new QName("urn:GoogleSearch", "doSpellingSuggestion");
private CombinedSerializer ns1_myGoogleSearchPort_doSpellingSuggestion_RequestStruct_SOAPSerializer;
private static final QName ns1_doSpellingSuggestion_doSpellingSuggestionResponse_QNAME = new QName("urn:GoogleSearch", "doSpellingSuggestionResponse");
private static final QName ns1_doSpellingSuggestionResponse_TYPE_QNAME = new QName("urn:GoogleSearch", "doSpellingSuggestionResponse");
private CombinedSerializer ns1_myGoogleSearchPort_doSpellingSuggestion_ResponseStruct_SOAPSerializer;
private static final String[] myNamespace_declarations =
new String[] {
"ns0", "urn:GoogleSearch"
};
private static final QName[] understoodHeaderNames = new QName[] { };
}
/impl/gen/java/com/google/api/ws/clients/ResultElement_SOAPSerializer.java
New file
0,0 → 1,211
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
import com.sun.xml.rpc.encoding.simpletype.*;
import com.sun.xml.rpc.encoding.soap.SOAPConstants;
import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
import com.sun.xml.rpc.streaming.*;
import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
 
public class ResultElement_SOAPSerializer extends ObjectSerializerBase implements Initializable {
private static final QName ns1_summary_QNAME = new QName("", "summary");
private static final QName ns2_string_TYPE_QNAME = SchemaConstants.QNAME_TYPE_STRING;
private CombinedSerializer ns2_myns2_string__java_lang_String_String_Serializer;
private static final QName ns1_URL_QNAME = new QName("", "URL");
private static final QName ns1_snippet_QNAME = new QName("", "snippet");
private static final QName ns1_title_QNAME = new QName("", "title");
private static final QName ns1_cachedSize_QNAME = new QName("", "cachedSize");
private static final QName ns1_relatedInformationPresent_QNAME = new QName("", "relatedInformationPresent");
private static final QName ns2_boolean_TYPE_QNAME = SchemaConstants.QNAME_TYPE_BOOLEAN;
private CombinedSerializer ns2_myns2__boolean__boolean_Boolean_Serializer;
private static final QName ns1_hostName_QNAME = new QName("", "hostName");
private static final QName ns1_directoryCategory_QNAME = new QName("", "directoryCategory");
private static final QName ns3_DirectoryCategory_TYPE_QNAME = new QName("urn:GoogleSearch", "DirectoryCategory");
private CombinedSerializer ns3_myDirectoryCategory_SOAPSerializer;
private static final QName ns1_directoryTitle_QNAME = new QName("", "directoryTitle");
private static final int mySUMMARY_INDEX = 0;
private static final int myURL_INDEX = 1;
private static final int mySNIPPET_INDEX = 2;
private static final int myTITLE_INDEX = 3;
private static final int myCACHEDSIZE_INDEX = 4;
private static final int myRELATEDINFORMATIONPRESENT_INDEX = 5;
private static final int myHOSTNAME_INDEX = 6;
private static final int myDIRECTORYCATEGORY_INDEX = 7;
private static final int myDIRECTORYTITLE_INDEX = 8;
public ResultElement_SOAPSerializer(QName type, boolean encodeType, boolean isNullable, String encodingStyle) {
super(type, encodeType, isNullable, encodingStyle);
}
public void initialize(InternalTypeMappingRegistry registry) throws Exception {
ns2_myns2_string__java_lang_String_String_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, java.lang.String.class, ns2_string_TYPE_QNAME);
ns2_myns2__boolean__boolean_Boolean_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, boolean.class, ns2_boolean_TYPE_QNAME);
ns3_myDirectoryCategory_SOAPSerializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, com.google.api.ws.clients.DirectoryCategory.class, ns3_DirectoryCategory_TYPE_QNAME);
}
public Object doDeserialize(SOAPDeserializationState state, XMLReader reader,
SOAPDeserializationContext context) throws Exception {
com.google.api.ws.clients.ResultElement instance = new com.google.api.ws.clients.ResultElement();
com.google.api.ws.clients.ResultElement_SOAPBuilder builder = null;
Object member;
boolean isComplete = true;
QName elementName;
reader.nextElementContent();
for (int i=0; i<9; i++) {
elementName = reader.getName();
if (reader.getState() == XMLReader.END) {
break;
}
if (elementName.equals(ns1_summary_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_summary_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.ResultElement_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, mySUMMARY_INDEX, builder);
isComplete = false;
} else {
instance.setSummary((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_URL_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_URL_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.ResultElement_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myURL_INDEX, builder);
isComplete = false;
} else {
instance.setURL((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_snippet_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_snippet_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.ResultElement_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, mySNIPPET_INDEX, builder);
isComplete = false;
} else {
instance.setSnippet((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_title_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_title_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.ResultElement_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myTITLE_INDEX, builder);
isComplete = false;
} else {
instance.setTitle((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_cachedSize_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_cachedSize_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.ResultElement_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myCACHEDSIZE_INDEX, builder);
isComplete = false;
} else {
instance.setCachedSize((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_relatedInformationPresent_QNAME)) {
member = ns2_myns2__boolean__boolean_Boolean_Serializer.deserialize(ns1_relatedInformationPresent_QNAME, reader, context);
instance.setRelatedInformationPresent(((Boolean)member).booleanValue());
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_hostName_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_hostName_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.ResultElement_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myHOSTNAME_INDEX, builder);
isComplete = false;
} else {
instance.setHostName((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_directoryCategory_QNAME)) {
member = ns3_myDirectoryCategory_SOAPSerializer.deserialize(ns1_directoryCategory_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.ResultElement_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myDIRECTORYCATEGORY_INDEX, builder);
isComplete = false;
} else {
instance.setDirectoryCategory((com.google.api.ws.clients.DirectoryCategory)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_directoryTitle_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_directoryTitle_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.ResultElement_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myDIRECTORYTITLE_INDEX, builder);
isComplete = false;
} else {
instance.setDirectoryTitle((java.lang.String)member);
}
reader.nextElementContent();
continue;
} else {
throw new DeserializationException("soap.unexpectedElementName", new Object[] {ns1_directoryTitle_QNAME, elementName});
}
}
XMLReaderUtil.verifyReaderState(reader, XMLReader.END);
return (isComplete ? (Object)instance : (Object)state);
}
public void doSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.ResultElement instance = (com.google.api.ws.clients.ResultElement)obj;
}
public void doSerializeInstance(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.ResultElement instance = (com.google.api.ws.clients.ResultElement)obj;
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getSummary(), ns1_summary_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getURL(), ns1_URL_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getSnippet(), ns1_snippet_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getTitle(), ns1_title_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getCachedSize(), ns1_cachedSize_QNAME, null, writer, context);
ns2_myns2__boolean__boolean_Boolean_Serializer.serialize(new Boolean(instance.isRelatedInformationPresent()), ns1_relatedInformationPresent_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getHostName(), ns1_hostName_QNAME, null, writer, context);
ns3_myDirectoryCategory_SOAPSerializer.serialize(instance.getDirectoryCategory(), ns1_directoryCategory_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getDirectoryTitle(), ns1_directoryTitle_QNAME, null, writer, context);
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchService_SerializerRegistry.java
New file
0,0 → 1,131
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.client.BasicService;
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.encoding.simpletype.*;
import com.sun.xml.rpc.encoding.soap.*;
import com.sun.xml.rpc.encoding.literal.*;
import com.sun.xml.rpc.soap.SOAPVersion;
import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.rpc.*;
import javax.xml.rpc.encoding.*;
import javax.xml.namespace.QName;
 
public class GoogleSearchService_SerializerRegistry implements SerializerConstants {
public GoogleSearchService_SerializerRegistry() {
}
public TypeMappingRegistry getRegistry() {
TypeMappingRegistry registry = BasicService.createStandardTypeMappingRegistry();
TypeMapping mapping12 = registry.getTypeMapping(SOAP12Constants.NS_SOAP_ENCODING);
TypeMapping mapping = registry.getTypeMapping(SOAPConstants.NS_SOAP_ENCODING);
TypeMapping mapping2 = registry.getTypeMapping("");
{
QName type = new QName("urn:GoogleSearch", "DirectoryCategoryArray");
QName elemName = new QName("", "item");
QName elemType = new QName("urn:GoogleSearch", "DirectoryCategory");
CombinedSerializer serializer = new ObjectArraySerializer(type,
ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING ,
elemName, elemType, com.google.api.ws.clients.DirectoryCategory.class, 1, null, SOAPVersion.SOAP_11);
serializer = new ReferenceableSerializerImpl(SERIALIZE_AS_REF, serializer, SOAPVersion.SOAP_11);
registerSerializer(mapping,com.google.api.ws.clients.DirectoryCategory[].class, type, serializer);
}
{
QName type = new QName("urn:GoogleSearch", "ResultElement");
CombinedSerializer serializer = new com.google.api.ws.clients.ResultElement_SOAPSerializer(type,
ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING);
serializer = new ReferenceableSerializerImpl(SERIALIZE_AS_REF, serializer, SOAPVersion.SOAP_11);
registerSerializer(mapping,com.google.api.ws.clients.ResultElement.class, type, serializer);
}
{
QName type = new QName("urn:GoogleSearch", "DirectoryCategory");
CombinedSerializer serializer = new com.google.api.ws.clients.DirectoryCategory_SOAPSerializer(type,
ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING);
serializer = new ReferenceableSerializerImpl(SERIALIZE_AS_REF, serializer, SOAPVersion.SOAP_11);
registerSerializer(mapping,com.google.api.ws.clients.DirectoryCategory.class, type, serializer);
}
{
QName type = new QName("urn:GoogleSearch", "doSpellingSuggestion");
CombinedSerializer serializer = new com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct_SOAPSerializer(type,
DONT_ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING);
serializer = new ReferenceableSerializerImpl(DONT_SERIALIZE_AS_REF, serializer, SOAPVersion.SOAP_11);
registerSerializer(mapping,com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_RequestStruct.class, type, serializer);
}
{
QName type = new QName("urn:GoogleSearch", "doGetCachedPage");
CombinedSerializer serializer = new com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct_SOAPSerializer(type,
DONT_ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING);
serializer = new ReferenceableSerializerImpl(DONT_SERIALIZE_AS_REF, serializer, SOAPVersion.SOAP_11);
registerSerializer(mapping,com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct.class, type, serializer);
}
{
QName type = new QName("urn:GoogleSearch", "GoogleSearchResult");
CombinedSerializer serializer = new com.google.api.ws.clients.GoogleSearchResult_SOAPSerializer(type,
ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING);
serializer = new ReferenceableSerializerImpl(SERIALIZE_AS_REF, serializer, SOAPVersion.SOAP_11);
registerSerializer(mapping,com.google.api.ws.clients.GoogleSearchResult.class, type, serializer);
}
{
QName type = new QName("urn:GoogleSearch", "doSpellingSuggestionResponse");
CombinedSerializer serializer = new com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct_SOAPSerializer(type,
DONT_ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING);
serializer = new ReferenceableSerializerImpl(DONT_SERIALIZE_AS_REF, serializer, SOAPVersion.SOAP_11);
registerSerializer(mapping,com.google.api.ws.clients.GoogleSearchPort_doSpellingSuggestion_ResponseStruct.class, type, serializer);
}
{
QName type = new QName("urn:GoogleSearch", "ResultElementArray");
QName elemName = new QName("", "item");
QName elemType = new QName("urn:GoogleSearch", "ResultElement");
CombinedSerializer serializer = new ObjectArraySerializer(type,
ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING ,
elemName, elemType, com.google.api.ws.clients.ResultElement.class, 1, null, SOAPVersion.SOAP_11);
serializer = new ReferenceableSerializerImpl(SERIALIZE_AS_REF, serializer, SOAPVersion.SOAP_11);
registerSerializer(mapping,com.google.api.ws.clients.ResultElement[].class, type, serializer);
}
{
QName type = new QName("urn:GoogleSearch", "doGoogleSearch");
CombinedSerializer serializer = new com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct_SOAPSerializer(type,
DONT_ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING);
serializer = new ReferenceableSerializerImpl(DONT_SERIALIZE_AS_REF, serializer, SOAPVersion.SOAP_11);
registerSerializer(mapping,com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_RequestStruct.class, type, serializer);
}
{
QName type = new QName("urn:GoogleSearch", "doGoogleSearchResponse");
CombinedSerializer serializer = new com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct_SOAPSerializer(type,
DONT_ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING);
serializer = new ReferenceableSerializerImpl(DONT_SERIALIZE_AS_REF, serializer, SOAPVersion.SOAP_11);
registerSerializer(mapping,com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct.class, type, serializer);
}
{
CombinedSerializer serializer = new SimpleMultiTypeSerializer(SchemaConstants.QNAME_TYPE_BASE64_BINARY,
ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING, XSDBase64BinaryEncoder.getInstance(),
new QName[] {
SchemaConstants.QNAME_TYPE_BASE64_BINARY,
SOAPConstants.QNAME_TYPE_BASE64_BINARY,
SOAPConstants.QNAME_TYPE_BASE64});
serializer = new ReferenceableSerializerImpl(SERIALIZE_AS_REF, serializer, SOAPVersion.SOAP_11);
registerSerializer(mapping,byte[].class, SchemaConstants.QNAME_TYPE_BASE64_BINARY, serializer);
}
{
QName type = new QName("urn:GoogleSearch", "doGetCachedPageResponse");
CombinedSerializer serializer = new com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct_SOAPSerializer(type,
DONT_ENCODE_TYPE, NULLABLE, SOAPConstants.NS_SOAP_ENCODING);
serializer = new ReferenceableSerializerImpl(DONT_SERIALIZE_AS_REF, serializer, SOAPVersion.SOAP_11);
registerSerializer(mapping,com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_ResponseStruct.class, type, serializer);
}
return registry;
}
private static void registerSerializer(TypeMapping mapping, Class javaType, QName xmlType,
Serializer ser) {
mapping.register(javaType, xmlType, new SingletonSerializerFactory(ser),
new SingletonDeserializerFactory((Deserializer)ser));
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doGetCachedPage_RequestStruct_SOAPSerializer.java
New file
0,0 → 1,94
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
import com.sun.xml.rpc.encoding.simpletype.*;
import com.sun.xml.rpc.encoding.soap.SOAPConstants;
import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
import com.sun.xml.rpc.streaming.*;
import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
 
public class GoogleSearchPort_doGetCachedPage_RequestStruct_SOAPSerializer extends ObjectSerializerBase implements Initializable {
private static final QName ns1_key_QNAME = new QName("", "key");
private static final QName ns2_string_TYPE_QNAME = SchemaConstants.QNAME_TYPE_STRING;
private CombinedSerializer ns2_myns2_string__java_lang_String_String_Serializer;
private static final QName ns1_url_QNAME = new QName("", "url");
private static final int myKEY_INDEX = 0;
private static final int myURL_INDEX = 1;
public GoogleSearchPort_doGetCachedPage_RequestStruct_SOAPSerializer(QName type, boolean encodeType, boolean isNullable, String encodingStyle) {
super(type, encodeType, isNullable, encodingStyle);
}
public void initialize(InternalTypeMappingRegistry registry) throws Exception {
ns2_myns2_string__java_lang_String_String_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, java.lang.String.class, ns2_string_TYPE_QNAME);
}
public Object doDeserialize(SOAPDeserializationState state, XMLReader reader,
SOAPDeserializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct instance = new com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct();
com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct_SOAPBuilder builder = null;
Object member;
boolean isComplete = true;
QName elementName;
reader.nextElementContent();
for (int i=0; i<2; i++) {
elementName = reader.getName();
if (reader.getState() == XMLReader.END) {
break;
}
if (elementName.equals(ns1_key_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_key_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myKEY_INDEX, builder);
isComplete = false;
} else {
instance.setKey((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_url_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_url_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myURL_INDEX, builder);
isComplete = false;
} else {
instance.setUrl((java.lang.String)member);
}
reader.nextElementContent();
continue;
} else {
throw new DeserializationException("soap.unexpectedElementName", new Object[] {ns1_url_QNAME, elementName});
}
}
XMLReaderUtil.verifyReaderState(reader, XMLReader.END);
return (isComplete ? (Object)instance : (Object)state);
}
public void doSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct instance = (com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct)obj;
}
public void doSerializeInstance(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct instance = (com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct)obj;
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getKey(), ns1_key_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getUrl(), ns1_url_QNAME, null, writer, context);
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doGoogleSearch_ResponseStruct_SOAPSerializer.java
New file
0,0 → 1,75
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
import com.sun.xml.rpc.encoding.simpletype.*;
import com.sun.xml.rpc.encoding.soap.SOAPConstants;
import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
import com.sun.xml.rpc.streaming.*;
import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
 
public class GoogleSearchPort_doGoogleSearch_ResponseStruct_SOAPSerializer extends ObjectSerializerBase implements Initializable {
private static final QName ns1_return_QNAME = new QName("", "return");
private static final QName ns3_GoogleSearchResult_TYPE_QNAME = new QName("urn:GoogleSearch", "GoogleSearchResult");
private CombinedSerializer ns3_myGoogleSearchResult_SOAPSerializer;
private static final int my_RETURN_INDEX = 0;
public GoogleSearchPort_doGoogleSearch_ResponseStruct_SOAPSerializer(QName type, boolean encodeType, boolean isNullable, String encodingStyle) {
super(type, encodeType, isNullable, encodingStyle);
}
public void initialize(InternalTypeMappingRegistry registry) throws Exception {
ns3_myGoogleSearchResult_SOAPSerializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, com.google.api.ws.clients.GoogleSearchResult.class, ns3_GoogleSearchResult_TYPE_QNAME);
}
public Object doDeserialize(SOAPDeserializationState state, XMLReader reader,
SOAPDeserializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct instance = new com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct();
com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct_SOAPBuilder builder = null;
Object member;
boolean isComplete = true;
QName elementName;
reader.nextElementContent();
elementName = reader.getName();
if (reader.getState() == XMLReader.START) {
if (elementName.equals(ns1_return_QNAME)) {
member = ns3_myGoogleSearchResult_SOAPSerializer.deserialize(ns1_return_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, my_RETURN_INDEX, builder);
isComplete = false;
} else {
instance.set_return((com.google.api.ws.clients.GoogleSearchResult)member);
}
reader.nextElementContent();
} else {
throw new DeserializationException("soap.unexpectedElementName", new Object[] {ns1_return_QNAME, elementName});
}
}
XMLReaderUtil.verifyReaderState(reader, XMLReader.END);
return (isComplete ? (Object)instance : (Object)state);
}
public void doSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct instance = (com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct)obj;
}
public void doSerializeInstance(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct instance = (com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct)obj;
ns3_myGoogleSearchResult_SOAPSerializer.serialize(instance.get_return(), ns1_return_QNAME, null, writer, context);
}
protected void verifyName(XMLReader reader, QName expectedName) throws Exception {
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchResult_SOAPSerializer.java
New file
0,0 → 1,214
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
import com.sun.xml.rpc.encoding.simpletype.*;
import com.sun.xml.rpc.encoding.soap.SOAPConstants;
import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
import com.sun.xml.rpc.streaming.*;
import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
 
public class GoogleSearchResult_SOAPSerializer extends ObjectSerializerBase implements Initializable {
private static final QName ns1_documentFiltering_QNAME = new QName("", "documentFiltering");
private static final QName ns2_boolean_TYPE_QNAME = SchemaConstants.QNAME_TYPE_BOOLEAN;
private CombinedSerializer ns2_myns2__boolean__boolean_Boolean_Serializer;
private static final QName ns1_searchComments_QNAME = new QName("", "searchComments");
private static final QName ns2_string_TYPE_QNAME = SchemaConstants.QNAME_TYPE_STRING;
private CombinedSerializer ns2_myns2_string__java_lang_String_String_Serializer;
private static final QName ns1_estimatedTotalResultsCount_QNAME = new QName("", "estimatedTotalResultsCount");
private static final QName ns2_int_TYPE_QNAME = SchemaConstants.QNAME_TYPE_INT;
private CombinedSerializer ns2_myns2__int__int_Int_Serializer;
private static final QName ns1_estimateIsExact_QNAME = new QName("", "estimateIsExact");
private static final QName ns1_resultElements_QNAME = new QName("", "resultElements");
private static final QName ns3_ResultElementArray_TYPE_QNAME = new QName("urn:GoogleSearch", "ResultElementArray");
private CombinedSerializer ns3_myns3_ResultElementArray__ResultElementArray_SOAPSerializer1;
private static final QName ns1_searchQuery_QNAME = new QName("", "searchQuery");
private static final QName ns1_startIndex_QNAME = new QName("", "startIndex");
private static final QName ns1_endIndex_QNAME = new QName("", "endIndex");
private static final QName ns1_searchTips_QNAME = new QName("", "searchTips");
private static final QName ns1_directoryCategories_QNAME = new QName("", "directoryCategories");
private static final QName ns3_DirectoryCategoryArray_TYPE_QNAME = new QName("urn:GoogleSearch", "DirectoryCategoryArray");
private CombinedSerializer ns3_myns3_DirectoryCategoryArray__DirectoryCategoryArray_SOAPSerializer1;
private static final QName ns1_searchTime_QNAME = new QName("", "searchTime");
private static final QName ns2_double_TYPE_QNAME = SchemaConstants.QNAME_TYPE_DOUBLE;
private CombinedSerializer ns2_myns2__double__double_Double_Serializer;
private static final int myDOCUMENTFILTERING_INDEX = 0;
private static final int mySEARCHCOMMENTS_INDEX = 1;
private static final int myESTIMATEDTOTALRESULTSCOUNT_INDEX = 2;
private static final int myESTIMATEISEXACT_INDEX = 3;
private static final int myRESULTELEMENTS_INDEX = 4;
private static final int mySEARCHQUERY_INDEX = 5;
private static final int mySTARTINDEX_INDEX = 6;
private static final int myENDINDEX_INDEX = 7;
private static final int mySEARCHTIPS_INDEX = 8;
private static final int myDIRECTORYCATEGORIES_INDEX = 9;
private static final int mySEARCHTIME_INDEX = 10;
public GoogleSearchResult_SOAPSerializer(QName type, boolean encodeType, boolean isNullable, String encodingStyle) {
super(type, encodeType, isNullable, encodingStyle);
}
public void initialize(InternalTypeMappingRegistry registry) throws Exception {
ns2_myns2__boolean__boolean_Boolean_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, boolean.class, ns2_boolean_TYPE_QNAME);
ns2_myns2_string__java_lang_String_String_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, java.lang.String.class, ns2_string_TYPE_QNAME);
ns2_myns2__int__int_Int_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, int.class, ns2_int_TYPE_QNAME);
ns3_myns3_ResultElementArray__ResultElementArray_SOAPSerializer1 = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, com.google.api.ws.clients.ResultElement[].class, ns3_ResultElementArray_TYPE_QNAME);
ns3_myns3_DirectoryCategoryArray__DirectoryCategoryArray_SOAPSerializer1 = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, com.google.api.ws.clients.DirectoryCategory[].class, ns3_DirectoryCategoryArray_TYPE_QNAME);
ns2_myns2__double__double_Double_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, double.class, ns2_double_TYPE_QNAME);
}
public Object doDeserialize(SOAPDeserializationState state, XMLReader reader,
SOAPDeserializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchResult instance = new com.google.api.ws.clients.GoogleSearchResult();
com.google.api.ws.clients.GoogleSearchResult_SOAPBuilder builder = null;
Object member;
boolean isComplete = true;
QName elementName;
reader.nextElementContent();
for (int i=0; i<11; i++) {
elementName = reader.getName();
if (reader.getState() == XMLReader.END) {
break;
}
if (elementName.equals(ns1_documentFiltering_QNAME)) {
member = ns2_myns2__boolean__boolean_Boolean_Serializer.deserialize(ns1_documentFiltering_QNAME, reader, context);
instance.setDocumentFiltering(((Boolean)member).booleanValue());
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_searchComments_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_searchComments_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchResult_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, mySEARCHCOMMENTS_INDEX, builder);
isComplete = false;
} else {
instance.setSearchComments((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_estimatedTotalResultsCount_QNAME)) {
member = ns2_myns2__int__int_Int_Serializer.deserialize(ns1_estimatedTotalResultsCount_QNAME, reader, context);
instance.setEstimatedTotalResultsCount(((Integer)member).intValue());
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_estimateIsExact_QNAME)) {
member = ns2_myns2__boolean__boolean_Boolean_Serializer.deserialize(ns1_estimateIsExact_QNAME, reader, context);
instance.setEstimateIsExact(((Boolean)member).booleanValue());
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_resultElements_QNAME)) {
member = ns3_myns3_ResultElementArray__ResultElementArray_SOAPSerializer1.deserialize(ns1_resultElements_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchResult_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myRESULTELEMENTS_INDEX, builder);
isComplete = false;
} else {
instance.setResultElements((com.google.api.ws.clients.ResultElement[])member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_searchQuery_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_searchQuery_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchResult_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, mySEARCHQUERY_INDEX, builder);
isComplete = false;
} else {
instance.setSearchQuery((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_startIndex_QNAME)) {
member = ns2_myns2__int__int_Int_Serializer.deserialize(ns1_startIndex_QNAME, reader, context);
instance.setStartIndex(((Integer)member).intValue());
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_endIndex_QNAME)) {
member = ns2_myns2__int__int_Int_Serializer.deserialize(ns1_endIndex_QNAME, reader, context);
instance.setEndIndex(((Integer)member).intValue());
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_searchTips_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_searchTips_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchResult_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, mySEARCHTIPS_INDEX, builder);
isComplete = false;
} else {
instance.setSearchTips((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_directoryCategories_QNAME)) {
member = ns3_myns3_DirectoryCategoryArray__DirectoryCategoryArray_SOAPSerializer1.deserialize(ns1_directoryCategories_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.GoogleSearchResult_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myDIRECTORYCATEGORIES_INDEX, builder);
isComplete = false;
} else {
instance.setDirectoryCategories((com.google.api.ws.clients.DirectoryCategory[])member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_searchTime_QNAME)) {
member = ns2_myns2__double__double_Double_Serializer.deserialize(ns1_searchTime_QNAME, reader, context);
instance.setSearchTime(((Double)member).doubleValue());
reader.nextElementContent();
continue;
} else {
throw new DeserializationException("soap.unexpectedElementName", new Object[] {ns1_searchTime_QNAME, elementName});
}
}
XMLReaderUtil.verifyReaderState(reader, XMLReader.END);
return (isComplete ? (Object)instance : (Object)state);
}
public void doSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchResult instance = (com.google.api.ws.clients.GoogleSearchResult)obj;
}
public void doSerializeInstance(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.GoogleSearchResult instance = (com.google.api.ws.clients.GoogleSearchResult)obj;
ns2_myns2__boolean__boolean_Boolean_Serializer.serialize(new Boolean(instance.isDocumentFiltering()), ns1_documentFiltering_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getSearchComments(), ns1_searchComments_QNAME, null, writer, context);
ns2_myns2__int__int_Int_Serializer.serialize(new Integer(instance.getEstimatedTotalResultsCount()), ns1_estimatedTotalResultsCount_QNAME, null, writer, context);
ns2_myns2__boolean__boolean_Boolean_Serializer.serialize(new Boolean(instance.isEstimateIsExact()), ns1_estimateIsExact_QNAME, null, writer, context);
ns3_myns3_ResultElementArray__ResultElementArray_SOAPSerializer1.serialize(instance.getResultElements(), ns1_resultElements_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getSearchQuery(), ns1_searchQuery_QNAME, null, writer, context);
ns2_myns2__int__int_Int_Serializer.serialize(new Integer(instance.getStartIndex()), ns1_startIndex_QNAME, null, writer, context);
ns2_myns2__int__int_Int_Serializer.serialize(new Integer(instance.getEndIndex()), ns1_endIndex_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getSearchTips(), ns1_searchTips_QNAME, null, writer, context);
ns3_myns3_DirectoryCategoryArray__DirectoryCategoryArray_SOAPSerializer1.serialize(instance.getDirectoryCategories(), ns1_directoryCategories_QNAME, null, writer, context);
ns2_myns2__double__double_Double_Serializer.serialize(new Double(instance.getSearchTime()), ns1_searchTime_QNAME, null, writer, context);
}
}
/impl/gen/java/com/google/api/ws/clients/DirectoryCategory_SOAPSerializer.java
New file
0,0 → 1,94
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.encoding.literal.DetailFragmentDeserializer;
import com.sun.xml.rpc.encoding.simpletype.*;
import com.sun.xml.rpc.encoding.soap.SOAPConstants;
import com.sun.xml.rpc.encoding.soap.SOAP12Constants;
import com.sun.xml.rpc.streaming.*;
import com.sun.xml.rpc.wsdl.document.schema.SchemaConstants;
import javax.xml.namespace.QName;
 
public class DirectoryCategory_SOAPSerializer extends ObjectSerializerBase implements Initializable {
private static final QName ns1_fullViewableName_QNAME = new QName("", "fullViewableName");
private static final QName ns2_string_TYPE_QNAME = SchemaConstants.QNAME_TYPE_STRING;
private CombinedSerializer ns2_myns2_string__java_lang_String_String_Serializer;
private static final QName ns1_specialEncoding_QNAME = new QName("", "specialEncoding");
private static final int myFULLVIEWABLENAME_INDEX = 0;
private static final int mySPECIALENCODING_INDEX = 1;
public DirectoryCategory_SOAPSerializer(QName type, boolean encodeType, boolean isNullable, String encodingStyle) {
super(type, encodeType, isNullable, encodingStyle);
}
public void initialize(InternalTypeMappingRegistry registry) throws Exception {
ns2_myns2_string__java_lang_String_String_Serializer = (CombinedSerializer)registry.getSerializer(SOAPConstants.NS_SOAP_ENCODING, java.lang.String.class, ns2_string_TYPE_QNAME);
}
public Object doDeserialize(SOAPDeserializationState state, XMLReader reader,
SOAPDeserializationContext context) throws Exception {
com.google.api.ws.clients.DirectoryCategory instance = new com.google.api.ws.clients.DirectoryCategory();
com.google.api.ws.clients.DirectoryCategory_SOAPBuilder builder = null;
Object member;
boolean isComplete = true;
QName elementName;
reader.nextElementContent();
for (int i=0; i<2; i++) {
elementName = reader.getName();
if (reader.getState() == XMLReader.END) {
break;
}
if (elementName.equals(ns1_fullViewableName_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_fullViewableName_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.DirectoryCategory_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, myFULLVIEWABLENAME_INDEX, builder);
isComplete = false;
} else {
instance.setFullViewableName((java.lang.String)member);
}
reader.nextElementContent();
continue;
}
if (elementName.equals(ns1_specialEncoding_QNAME)) {
member = ns2_myns2_string__java_lang_String_String_Serializer.deserialize(ns1_specialEncoding_QNAME, reader, context);
if (member instanceof SOAPDeserializationState) {
if (builder == null) {
builder = new com.google.api.ws.clients.DirectoryCategory_SOAPBuilder();
}
state = registerWithMemberState(instance, state, member, mySPECIALENCODING_INDEX, builder);
isComplete = false;
} else {
instance.setSpecialEncoding((java.lang.String)member);
}
reader.nextElementContent();
continue;
} else {
throw new DeserializationException("soap.unexpectedElementName", new Object[] {ns1_specialEncoding_QNAME, elementName});
}
}
XMLReaderUtil.verifyReaderState(reader, XMLReader.END);
return (isComplete ? (Object)instance : (Object)state);
}
public void doSerializeAttributes(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.DirectoryCategory instance = (com.google.api.ws.clients.DirectoryCategory)obj;
}
public void doSerializeInstance(Object obj, XMLWriter writer, SOAPSerializationContext context) throws Exception {
com.google.api.ws.clients.DirectoryCategory instance = (com.google.api.ws.clients.DirectoryCategory)obj;
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getFullViewableName(), ns1_fullViewableName_QNAME, null, writer, context);
ns2_myns2_string__java_lang_String_String_Serializer.serialize(instance.getSpecialEncoding(), ns1_specialEncoding_QNAME, null, writer, context);
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doGetCachedPage_RequestStruct_SOAPBuilder.java
New file
0,0 → 1,74
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.util.exception.LocalizableExceptionAdapter;
 
public class GoogleSearchPort_doGetCachedPage_RequestStruct_SOAPBuilder implements SOAPInstanceBuilder {
private com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct _instance;
private java.lang.String key;
private java.lang.String url;
private static final int myKEY_INDEX = 0;
private static final int myURL_INDEX = 1;
public GoogleSearchPort_doGetCachedPage_RequestStruct_SOAPBuilder() {
}
public void setKey(java.lang.String key) {
this.key = key;
}
public void setUrl(java.lang.String url) {
this.url = url;
}
public int memberGateType(int memberIndex) {
switch (memberIndex) {
case myKEY_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myURL_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
default:
throw new IllegalArgumentException();
}
}
public void construct() {
}
public void setMember(int index, Object memberValue) {
try {
switch(index) {
case myKEY_INDEX:
_instance.setKey((java.lang.String)memberValue);
break;
case myURL_INDEX:
_instance.setUrl((java.lang.String)memberValue);
break;
default:
throw new IllegalArgumentException();
}
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e) {
throw new DeserializationException(new LocalizableExceptionAdapter(e));
}
}
public void initialize() {
}
public void setInstance(Object instance) {
_instance = (com.google.api.ws.clients.GoogleSearchPort_doGetCachedPage_RequestStruct)instance;
}
public Object getInstance() {
return _instance;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doGoogleSearch_ResponseStruct_SOAPBuilder.java
New file
0,0 → 1,63
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.util.exception.LocalizableExceptionAdapter;
 
public class GoogleSearchPort_doGoogleSearch_ResponseStruct_SOAPBuilder implements SOAPInstanceBuilder {
private com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct _instance;
private com.google.api.ws.clients.GoogleSearchResult _return;
private static final int my_RETURN_INDEX = 0;
public GoogleSearchPort_doGoogleSearch_ResponseStruct_SOAPBuilder() {
}
public void set_return(com.google.api.ws.clients.GoogleSearchResult _return) {
this._return = _return;
}
public int memberGateType(int memberIndex) {
switch (memberIndex) {
case my_RETURN_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
default:
throw new IllegalArgumentException();
}
}
public void construct() {
}
public void setMember(int index, Object memberValue) {
try {
switch(index) {
case my_RETURN_INDEX:
_instance.set_return((com.google.api.ws.clients.GoogleSearchResult)memberValue);
break;
default:
throw new IllegalArgumentException();
}
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e) {
throw new DeserializationException(new LocalizableExceptionAdapter(e));
}
}
public void initialize() {
}
public void setInstance(Object instance) {
_instance = (com.google.api.ws.clients.GoogleSearchPort_doGoogleSearch_ResponseStruct)instance;
}
public Object getInstance() {
return _instance;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchResult_SOAPBuilder.java
New file
0,0 → 1,143
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
import com.sun.xml.rpc.encoding.*;
import com.sun.xml.rpc.util.exception.LocalizableExceptionAdapter;
 
public class GoogleSearchResult_SOAPBuilder implements SOAPInstanceBuilder {
private com.google.api.ws.clients.GoogleSearchResult _instance;
private boolean documentFiltering;
private java.lang.String searchComments;
private int estimatedTotalResultsCount;
private boolean estimateIsExact;
private com.google.api.ws.clients.ResultElement[] resultElements;
private java.lang.String searchQuery;
private int startIndex;
private int endIndex;
private java.lang.String searchTips;
private com.google.api.ws.clients.DirectoryCategory[] directoryCategories;
private double searchTime;
private static final int myDOCUMENTFILTERING_INDEX = 0;
private static final int mySEARCHCOMMENTS_INDEX = 1;
private static final int myESTIMATEDTOTALRESULTSCOUNT_INDEX = 2;
private static final int myESTIMATEISEXACT_INDEX = 3;
private static final int myRESULTELEMENTS_INDEX = 4;
private static final int mySEARCHQUERY_INDEX = 5;
private static final int mySTARTINDEX_INDEX = 6;
private static final int myENDINDEX_INDEX = 7;
private static final int mySEARCHTIPS_INDEX = 8;
private static final int myDIRECTORYCATEGORIES_INDEX = 9;
private static final int mySEARCHTIME_INDEX = 10;
public GoogleSearchResult_SOAPBuilder() {
}
public void setDocumentFiltering(boolean documentFiltering) {
this.documentFiltering = documentFiltering;
}
public void setSearchComments(java.lang.String searchComments) {
this.searchComments = searchComments;
}
public void setEstimatedTotalResultsCount(int estimatedTotalResultsCount) {
this.estimatedTotalResultsCount = estimatedTotalResultsCount;
}
public void setEstimateIsExact(boolean estimateIsExact) {
this.estimateIsExact = estimateIsExact;
}
public void setResultElements(com.google.api.ws.clients.ResultElement[] resultElements) {
this.resultElements = resultElements;
}
public void setSearchQuery(java.lang.String searchQuery) {
this.searchQuery = searchQuery;
}
public void setStartIndex(int startIndex) {
this.startIndex = startIndex;
}
public void setEndIndex(int endIndex) {
this.endIndex = endIndex;
}
public void setSearchTips(java.lang.String searchTips) {
this.searchTips = searchTips;
}
public void setDirectoryCategories(com.google.api.ws.clients.DirectoryCategory[] directoryCategories) {
this.directoryCategories = directoryCategories;
}
public void setSearchTime(double searchTime) {
this.searchTime = searchTime;
}
public int memberGateType(int memberIndex) {
switch (memberIndex) {
case mySEARCHCOMMENTS_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myRESULTELEMENTS_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case mySEARCHQUERY_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case mySEARCHTIPS_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
case myDIRECTORYCATEGORIES_INDEX:
return GATES_INITIALIZATION | REQUIRES_CREATION;
default:
throw new IllegalArgumentException();
}
}
public void construct() {
}
public void setMember(int index, Object memberValue) {
try {
switch(index) {
case mySEARCHCOMMENTS_INDEX:
_instance.setSearchComments((java.lang.String)memberValue);
break;
case myRESULTELEMENTS_INDEX:
_instance.setResultElements((com.google.api.ws.clients.ResultElement[])memberValue);
break;
case mySEARCHQUERY_INDEX:
_instance.setSearchQuery((java.lang.String)memberValue);
break;
case mySEARCHTIPS_INDEX:
_instance.setSearchTips((java.lang.String)memberValue);
break;
case myDIRECTORYCATEGORIES_INDEX:
_instance.setDirectoryCategories((com.google.api.ws.clients.DirectoryCategory[])memberValue);
break;
default:
throw new IllegalArgumentException();
}
}
catch (RuntimeException e) {
throw e;
}
catch (Exception e) {
throw new DeserializationException(new LocalizableExceptionAdapter(e));
}
}
public void initialize() {
}
public void setInstance(Object instance) {
_instance = (com.google.api.ws.clients.GoogleSearchResult)instance;
}
public Object getInstance() {
return _instance;
}
}
/impl/gen/java/com/google/api/ws/clients/GoogleSearchPort_doGetCachedPage_RequestStruct.java
New file
0,0 → 1,36
// This class was generated by the JAXRPC SI, do not edit.
// Contents subject to change without notice.
// JAX-RPC Standard Implementation (1.1.2_01, build R40)
// Generated source version: 1.1.2
 
package com.google.api.ws.clients;
 
 
public class GoogleSearchPort_doGetCachedPage_RequestStruct implements java.io.Serializable {
protected java.lang.String key;
protected java.lang.String url;
public GoogleSearchPort_doGetCachedPage_RequestStruct() {
}
public GoogleSearchPort_doGetCachedPage_RequestStruct(java.lang.String key, java.lang.String url) {
this.key = key;
this.url = url;
}
public java.lang.String getKey() {
return key;
}
public void setKey(java.lang.String key) {
this.key = key;
}
public java.lang.String getUrl() {
return url;
}
public void setUrl(java.lang.String url) {
this.url = url;
}
}
/impl/build-web-services.xml
New file
0,0 → 1,58
<?xml version="1.0" encoding="utf-8"?>
<project name="estgwebservices" basedir=".">
<import file="libs.xml"/>
<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
<classpath refid="pathToToolsLib"/>
</taskdef>
 
<taskdef name="wscompile" classname="com.sun.xml.rpc.tools.ant.Wscompile">
<classpath refid="pathToToolsLib"/>
</taskdef>
 
<target name="ws.generate-siges-client" depends="initDirs">
<copy file="${ws.client.binding.dir}/${ws.siges.binding.file}" todir="${build.dir.ws}" overwrite="true"/>
<replace file="${build.dir.ws}/${ws.siges.binding.file}" encoding="UTF-8">
<replacefilter token="@wsdl.client@" value="${ws.siges.wsdl}"/>
<replacefilter token="@target.namespace@" value="${ws.siges.target.namespace}"/>
<replacefilter token="@ws.package@" value="${ws.siges.package}"/>
</replace>
<wsimport
debug="${ws.debug}"
verbose="${ws.verbose}"
keep="${ws.keep}"
extension="${ws.extension}"
destdir="${gen.dir.java}"
wsdl="${ws.siges.wsdl}">
<binding dir="${build.dir.ws}" includes="${ws.client.binding.file}"/>
</wsimport>
<delete>
<fileset dir="${gen.dir.java}">
<include name="**/*.class"/>
</fileset>
</delete>
</target>
 
<target name="ws.generate-google-client">
<property name="config_target" location="${ws.conf.dir}"/>
<copy file="${ws.conf.dir}/GoogleSearch-config.xml" tofile="${build.dir.ws}/GoogleSearch-config.xml" filtering="on" encoding="UTF-8" overwrite="true">
<filterset>
<filter token="CONFIG_ABSOLUTE_PATH" value="${config_target}"/>
<filter token="package" value="${ws.google.package}"/>
</filterset>
</copy>
<wscompile
verbose="true"
debug="true"
xPrintStackTrace="true"
xSerializable="true"
optimize="true"
fork="true"
keep="true"
client="true"
import="false"
base="${build.dir.classes}" sourceBase="${gen.dir.java}" mapping="${build.dir.ws}/GoogleSearch-mapping.xml" config="${build.dir.ws}/GoogleSearch-config.xml">
<classpath refid="pathToToolsLib"/>
</wscompile>
</target>
 
</project>
/impl/build.properties
51,6 → 51,7
build.dir =build/ant
build.dir.classes =${build.dir}/classes
build.dir.war =${build.dir}/war
build.dir.ws =${build.dir}/ws
log.dir =${data.dir}
dist.dir =dist
gen.dir =gen
121,5 → 122,24
dao.impl.template=daoimpl.ftl
dao.file.pattern=Dao
 
#WEB-SERVICES CONFIGURATION
ws.conf.dir=${conf.dir}/web-services
 
ws.debug=false
ws.keep=true
ws.verbose=false
ws.extension=true
# customization files
ws.client.binding.dir=${conf.dir}/web-services/
ws.client.binding.file=generic-client.xml
 
ws.client.features=explicitcontext,useonewayoperations
#Siges Service Specific Configuration
ws.siges.package=pt.ipp.siges.web.services.clients
ws.siges.wsdl=http://172.20.130.15/SigesWeb/SiGesWEB.asmx?wsdl
ws.siges.target.namespace=http://tempuri.org/
ws.siges.binding.file=siges-client.xml
 
#Google Service Specific Configuration
 
ws.google.package=com.google.api.ws.clients
/impl/build.xml
1,4 → 1,4
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<project name="estgweb" basedir="." default="help">
 
 
17,51 → 17,10
Path libs definitions and Properties files
==========================================================================================
-->
<property file="local.properties"/>
<property file="build.properties"/>
 
<path id="pathToToolsLib">
<fileset dir="${tomcat.libs.common.home}">
<include name="**.jar"/>
</fileset>
<fileset dir="${tomcat.libs.ant.home}">
<include name="**.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/mail">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/berserk">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/ldap">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/hibernate">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/log4j">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/jaxb">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/mysql">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/commons">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/web">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/struts">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/jfreechart">
<include name="**/*.jar"/>
</fileset>
</path>
 
<import file="libs.xml"/>
<import file="build-web-services.xml"/>
 
<!--
==========================================================================================
79,7 → 38,7
-->
<target name="clean" description="clean *.class and build dir">
<delete dir="${build.dir}"/>
<delete dir="${dist.dir}"/>
<delete dir="${dist.dir}"/>
<delete>
<fileset dir="${gen.dir.java}">
<include name="**/*.java"/>
101,6 → 60,7
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.dir.classes}"/>
<mkdir dir="${build.dir.war}"/>
<mkdir dir="${build.dir.ws}"/>
<delete dir="${dist.dir}"/>
<mkdir dir="${dist.dir}"/>
<mkdir dir="${gen.dir.java}"/>
255,6 → 215,12
<fileset dir="${common.lib.dir}/jfreechart">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/lucene">
<include name="**/*.jar"/>
</fileset>
<fileset dir="${common.lib.dir}/jaxrpc16">
<include name="**/*.jar"/>
</fileset>
</copy>
<copy file="${dist.dir}/estgweb.jar" todir="${build.dir.war}/WEB-INF/lib"/>
<copy todir="${build.dir.war}/WEB-INF" overwrite="true">
/impl
Property changes:
Added: svn:ignore
+ local.properties
/common/jaxrpc/jaxb-xjc.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/sjsxp.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/saaj-impl.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/http.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/jaxws-rt.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/jsr173_api.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/jaxb-impl.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/FastInfoset.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/saaj-api.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/jaxws-tools.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/jaxb-api.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/jsr250-api.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/jsr181-api.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/activation.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/resolver.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/jaxrpc/jaxws-api.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/xml/xml-apis.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/xml/xercesImpl.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/xml/resolver.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/xml/xalan.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/lucene/lucene-highlighter-2.2.0.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/lucene/lucene-similarity-2.2.0.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream
/common/lucene/lucene-core-2.2.0.jar
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
+ application/octet-stream