Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 1085 → Rev 1119

/impl/importRoutines.xml
107,9 → 107,13
<java classname="pt.estgp.estgweb.services.courseunits.SaveCourseUnitProgram" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
</target>
 
<target name="storeAllEvaluationsFtp">
<java classname="pt.estgp.estgweb.services.courseunits.SaveCourseUnitEvaluation" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
</target>
 
 
 
 
<target name="loadSummariesAtsi">
<java classname="pt.estgp.estgweb.services.sigesimports.LoadSumariesToPDF" classpath="${build.dir.classes}" classpathref="pathToToolsLib"/>
</target>
/impl/conf/language/MessageResources.properties
475,6 → 475,9
user.role.courseValidateProgramTGI=Comissão de Curso de TGI
user.role.courseValidateProgramRU=Comissão de Curso de RU
 
user.role.courseValidateProgramCF=Comissão de Curso de Contabilidade e Finanças
user.role.courseValidateProgramTPB=Comissão de Curso de Tecnologias de Produção de Biocombustíveis
 
configuration.grades=Configuração Pautas
configuration=Configurações
configuration.directories=Configuração de Directórios
/impl/conf/language/MessageResourcesCourseUnits.properties
94,7 → 94,7
courseunit.students=Estudantes
courseunit.students.count=Total de estudantes inscritos
courseunit.program=Ficha Curricular
courseunit.edit.program=Editar Programa
courseunit.edit.program=Editar Ficha Curricular
 
courseunit.assignement.deliver.time=Entregue
courseunit.assignement.deliver.time.ok=Entregue a Horas
142,10 → 142,10
 
 
 
courseunits.contentsGrants=Permiss\u00f5es de Consulta dos Ficheiros de Conte\u00fados
courseunits.contentsGrants.PUBLIC=PUBLICAS
courseunits.contentsGrants.PRIVATE=PRIVADOS A ESTUDANTES E DOCENTES DA UNIDADE
courseunits.contentsGrants.INTERNAL=COMUNIDADE ACAD\u00c9MICA
courseunits.contentsGrants=Anuncios e Blog
courseunits.contentsGrants.PUBLIC=PUBLICO
courseunits.contentsGrants.PRIVATE=privado unidade
courseunits.contentsGrants.INTERNAL=interno ESTG
 
 
courseunit.program.objectivos=Objetivos da aprendizagem (conhecimentos, aptid\u00f5es e compet\u00eancias) a desenvolver pelos estudantes, operacionaliza\u00e7\u00e3o dos objetivos e medi\u00e7\u00e3o do seu grau de cumprimento)
/impl/conf/app.properties
257,6 → 257,8
user.role.78=courseValidateProgramRPS
user.role.79=courseValidateProgramTGI
user.role.80=courseValidateProgramRU
user.role.85=courseValidateProgramCF
user.role.86=courseValidateProgramTPB
 
 
user.role.81=courseValidatePrograms
/impl/conf/directories/topMenus.xsl
57,4 → 57,86
</xsl:if>
</li>
</xsl:template>
 
 
 
<xsl:template match="/" mode="new" >
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
 
</div>
<ul class="nav navbar-nav">
<xsl:apply-templates select="/d:directory/d:leaf" mode="root"/>
</ul>
 
 
</div>
 
</nav>
</xsl:template>
 
 
<xsl:template match="d:leaf" mode="new">
<xsl:choose>
<xsl:when test="./d:leaf">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" >
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="@url and @absolute='true'">
<xsl:value-of select="@url"/>
</xsl:when>
<xsl:when test="@url and @absolute='false'">
<xsl:value-of select="$contextPath"/><xsl:value-of select="@url"/>
</xsl:when>
<xsl:otherwise>#</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="@label"/>
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<xsl:for-each select="./d:leaf">
<li>
<a>
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="@url and @absolute='true'">
<xsl:value-of select="@url"/>
</xsl:when>
<xsl:when test="@url and @absolute='false'">
<xsl:value-of select="$contextPath"/><xsl:value-of select="@url"/>
</xsl:when>
<xsl:otherwise>#</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="@label"/>
</a>
</li>
</xsl:for-each>
</ul>
</li>
</xsl:when>
<xsl:otherwise>
<li>
<a>
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="@url and @absolute='true'">
<xsl:value-of select="@url"/>
</xsl:when>
<xsl:when test="@url and @absolute='false'">
<xsl:value-of select="$contextPath"/><xsl:value-of select="@url"/>
</xsl:when>
<xsl:otherwise>#</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="@label"/>
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
 
</xsl:stylesheet>
/impl/src/java/jomm/dao/impl/AbstractDao.java
937,4 → 937,6
}
return deletedObjects;
}
 
 
}
/impl/src/java/pt/estgp/estgweb/services/courseunits/SaveCourseUnitEvaluation.java
1,5 → 1,6
package pt.estgp.estgweb.services.courseunits;
 
import jomm.dao.impl.AbstractDao;
import jomm.utils.PdfUtils;
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPClient;
9,8 → 10,10
import pt.estgp.estgweb.Globals;
import pt.estgp.estgweb.domain.*;
import pt.estgp.estgweb.domain.dao.DaoFactory;
import pt.estgp.estgweb.domain.dao.impl.CourseUnitDaoImpl;
import pt.estgp.estgweb.domain.views.CourseUnitEvaluationView;
import pt.estgp.estgweb.filters.chains.ResourceAccessControlEnum;
import pt.estgp.estgweb.services.data.IRepositoryFile;
import pt.estgp.estgweb.services.data.RepositoryService;
import pt.estgp.estgweb.services.expceptions.ServiceException;
import pt.estgp.estgweb.utils.Dom4jUtil;
19,10 → 22,7
 
import javax.xml.transform.TransformerException;
import javax.xml.transform.dom.DOMSource;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.*;
import java.text.SimpleDateFormat;
import java.util.*;
 
200,13 → 200,13
 
//NOVO
 
/*
 
if(cuv.isClosed())
{
RepositoryFileImpl repoFile = repositoryService.loadView(cu.getEvaluationStreamId());
sendPdfFtpIonline(cu,errors,userSession,path,repoFile.getLastVersion().getSaveDate(),null);
sendPdfFtpIonline(cu,errors,userSession,new FileInputStream(path),repoFile.getLastVersion().getSaveDate(),null);
}
*/
 
}
 
public String generatePdf(CourseUnitEvaluation cuv, CourseUnit c) throws IOException, TransformerException, FOPException {
253,7 → 253,7
}*/
 
SimpleDateFormat sdf = new SimpleDateFormat("yyyy_MM_dd.HH_mm_ss");
private void sendPdfFtpIonline(CourseUnit cu, List<String> errors, UserSession u,String pdfPath,Date versionDate,FTPClient client) throws IOException, TransformerException, FOPException {
private boolean sendPdfFtpIonline(CourseUnit cu, List<String> errors, UserSession u,InputStream input,Date versionDate,FTPClient client) throws IOException, TransformerException, FOPException {
 
FtpServer server = null;
if(client == null)
264,7 → 264,7
{
logger.warn("###################");
logger.warn("################### > CANT CONNECT FTP");
return;
return false;
}
}
client.setFileType(FTP.BINARY_FILE_TYPE);
273,18 → 273,70
if(!client.changeWorkingDirectory(pastaFichaCurricular))
{
logger.error("FTP CANT CHANGE TO PATH: " + pastaFichaCurricular);
return false;
}
else
{
client.storeFile(cu.getCode() + "_" + cu.getNormalizedName() + "_v" + sdf.format(versionDate) + ".pdf",new FileInputStream(pdfPath));
client.storeFile(cu.getCode() + "_" + cu.getNormalizedName() + "_v" + sdf.format(versionDate) + ".pdf",input);
 
if(server != null)
{
client.quit();
client.disconnect();
}
return true;
}
 
//
}
 
public void storeAllClosedEvaluationsInActivePeriod() throws IOException
{
CourseUnitDaoImpl dao = DaoFactory.getCourseUnitDaoImpl();
List<Long> unitsIds = dao.loadClosedCourseUnitsEvaluations();
 
List<String> errors = new ArrayList<String>();
for (Long unitId: unitsIds) {
CourseUnit next = DaoFactory.getCourseUnitDaoImpl().load(unitId);
 
try {
if(next.getEvaluationStreamId() == null)
{
System.out.print("Generating PDF for evaluation report for: " + next.getCourse().getName() + " - " + next.getSemestre() + " - " + next.getNormalizedName());
createPdf(next.getCourseUnitEvaluation(),next,null,errors);
}
 
System.out.print("Sending evaluation report for: " + next.getCourse().getName() + " - " + next.getSemestre() + " - " + next.getNormalizedName());
 
RepositoryFileImpl repoFile = repositoryService.loadView(next.getEvaluationStreamId());
IRepositoryFile iRepoFile = repositoryService.loadByIdentifier(next.getEvaluationStreamId());
 
 
if(sendPdfFtpIonline(next,errors,null,iRepoFile.getInput(),repoFile.getLastVersion().getSaveDate(),null))
System.out.print(" ... OK");
else
System.out.print(" ... FAIL probably no StreamID");
System.out.print("\n");
if(errors.size()>0)
for(String error:errors)
logger.warn(error);
} catch (IOException e) {
logger.error(e,e);
} catch (TransformerException e) {
logger.error(e, e);
} catch (FOPException e) {
e.printStackTrace();
}
 
AbstractDao.getCurrentSession().evict(next);
}
}
 
public static void main(String[] args) throws IOException {
 
AbstractDao.getCurrentSession().beginTransaction();
new SaveCourseUnitEvaluation().storeAllClosedEvaluationsInActivePeriod();
AbstractDao.getCurrentSession().flush();
AbstractDao.getCurrentSession().getTransaction().commit();
}
}
/impl/src/java/pt/estgp/estgweb/services/email/SendEmailService.java
204,8 → 204,15
}
}
 
public Email getMessageEmail(String from, String subject,String text, LangEnum langEnum, String target, List<User> users, User user)
public static class SendTo
{
public String name;
public String email;
public String outEmail;
}
 
public Email getMessageEmail(String from, String subject,String text, LangEnum langEnum, String target, List<String> emails, User user)
{
// # 0 : From
// # 1 : Subject
// # 2 : Text
230,6 → 237,52
}
 
List<String> recipients = new ArrayList<String>();
for(String e: emails)
{
if(Email.validEmail(e))
recipients.add(e);
}
logger.info("subject: " + subject);
logger.info("user: " + user.getEmail());
logger.info("template: " + template);
logger.info("arguments:");
for(String arg: arguments)
logger.info(arg);
logger.info("recipients:");
for(String rec: recipients)
logger.info(rec);
logger.info("arguments end");
Email email = new Email(subject ,recipients,user.getEmail(),template,arguments,Message.RecipientType.BCC);
email.setFromName(from + " (ESTG)");
return email;
}
 
public Email getMessageEmailOld(String from, String subject,String text, LangEnum langEnum, String target, List<User> users, User user)
{
// # 0 : From
// # 1 : Subject
// # 2 : Text
// # 3 : person
// # 4 : target
List<String> arguments = new ArrayList<String>();
arguments.add(from);
arguments.add(subject);
arguments.add(text);
arguments.add(user.getName());
arguments.add(target);
 
String template;
 
if(langEnum == LangEnum.PORTUGUESE)
{
template = Globals.EMAIL_MESSAGE_TEMPLATE_PT;
}
else
{
template = Globals.EMAIL_MESSAGE_TEMPLATE_EN;
}
 
List<String> recipients = new ArrayList<String>();
for(User u: users)
{
if(Email.validEmail(u.getEmail()))
/impl/src/java/pt/estgp/estgweb/services/sigesimports/ImportTeachersService.java
533,7 → 533,7
if(!added)
{
 
if(!tImpl.isLocalRemovedUnit(cUNow))
if(!tImpl.isLocalUnit(cUNow))
{
String msg = "Removendo unidade: " + ((CourseUnitImpl)cUNow).getSigesUniqueIdentifiers() + " - do docente: " + teacher.getSigesCode() + " - Associacao desapareceu do SIGES";
serviceLogInfo(msg);
/impl/src/java/pt/estgp/estgweb/services/sigesimports/ImportCourseService.java
19,9 → 19,7
import pt.estgp.estgweb.services.logresults.impl.DefaultLogMessages;
import pt.estgp.estgweb.utils.ConfigProperties;
import pt.estgp.estgweb.utils.Email;
import pt.ipportalegre.siges.web.services.ArrayOfDisciplina;
import pt.ipportalegre.siges.web.services.Disciplina;
import pt.ipportalegre.siges.web.services.SiGesWEB;
import pt.ipportalegre.siges.web.services.*;
import pt.utl.ist.berserk.logic.serviceManager.IService;
 
import javax.xml.namespace.QName;
84,6 → 82,7
return logMessages;
}
 
 
importUnitsSemestre(service, "S1", year, disciplinasMap, disciplinasMapS1, cursosMap, logMessages);
importUnitsSemestre(service, "S2", year, disciplinasMap, disciplinasMapS2, cursosMap, logMessages);
importUnitsSemestre(service, "A", year, disciplinasMap, disciplinasMapA, cursosMap, logMessages);
125,13 → 124,13
/**
* Update Course Units
*/
updateCourseUnits(disciplinasMapS1, "S1",logMessages,year);
updateCourseUnits(disciplinasMapS2, "S2",logMessages,year);
updateCourseUnits(disciplinasMapA, "A",logMessages,year);
updateCourseUnits(disciplinasMapT1, "T1",logMessages,year);
updateCourseUnits(disciplinasMapT2, "T2",logMessages,year);
updateCourseUnits(disciplinasMapT3, "T3",logMessages,year);
updateCourseUnits(disciplinasMapT4, "T4",logMessages,year);
updateCourseUnits(disciplinasMapS1, "S1",logMessages,year,service);
updateCourseUnits(disciplinasMapS2, "S2",logMessages,year,service);
updateCourseUnits(disciplinasMapA, "A",logMessages,year,service);
updateCourseUnits(disciplinasMapT1, "T1",logMessages,year,service);
updateCourseUnits(disciplinasMapT2, "T2",logMessages,year,service);
updateCourseUnits(disciplinasMapT3, "T3",logMessages,year,service);
updateCourseUnits(disciplinasMapT4, "T4",logMessages,year,service);
 
serviceLogInfo("######################################");
serviceLogInfo("######################################");
211,6 → 210,8
HashMap<String, Disciplina> cursosMap,
DefaultLogMessages logMessages)
{
 
 
logMessages.addMessage(new DefaultLogMessage("import.semestre.course.units." + semestre, LogMessageTypeEnum.INFO));
serviceLogInfo("importing " + semestre + " course units");
logger.info("importing " + semestre + " course units");
218,43 → 219,108
List<Disciplina> disciplinas = arrayOfDisciplina.getDisciplina();
for (Disciplina d : disciplinas)
{
if (disciplinasMap.get(d.getCodigo().intValue() + ":" + d.getCodigoCurso() + ":" + semestre) != null)
if (disciplinasMap.get(getDisciplinaUniqueRef(d)) != null)
{
logMessages.addMessage(new DefaultLogMessage("import.semestre.repeated." + semestre, "unit: " + d.getCodigo().intValue(), "", LogMessageTypeEnum.WARNING));
serviceLogWarn("repeated unit in " + semestre + ":" + d.getCodigo().intValue());
logger.warn("repeated unit in " + semestre + ":" + d.getCodigo().intValue());
}
disciplinasMap.put(d.getCodigo().intValue() + ":" + d.getCodigoCurso() + ":" + semestre, d);
disciplinasMapSemestre.put(d.getCodigo().intValue() + ":" + d.getCodigoCurso() + ":" + semestre, d);
disciplinasMap.put(getDisciplinaUniqueRef(d), d);
disciplinasMapSemestre.put(getDisciplinaUniqueRef(d), d);
cursosMap.put(d.getCodigoCurso().intValue()+":"+year, d);
}
}
 
private void updateCourseUnits(HashMap<String, Disciplina> disciplinasMapS, String semestre, DefaultLogMessages logMessages, String year)
private String getDisciplinaUniqueRef(Disciplina d)
{
return d.getCodigo().intValue() + ":" + d.getCodigoCurso() + ":" + d.getCdDuracao() + ":" + d.getCdTurma();
}
 
private void updateCourseUnits(HashMap<String, Disciplina> disciplinasMapS, String semestre, DefaultLogMessages logMessages, String year,SiGesWEB service)
{
logMessages.addMessage(new DefaultLogMessage("import.semestre.updating.course.units." + semestre, LogMessageTypeEnum.INFO));
/**Inicialização da Estrutura de Suporte aos Cursos/Turma*/
ArrayOfTurmaCurso arrayOfTurmaCurso = service.getSiGesWEBSoap().loadParesTurmaCurso(
new BigDecimal(DaoFactory.getConfigurationDaoImpl().getSigesInstitutionCode())
, year,semestre);
HashMap<String,List<BigDecimal>> turmaCourses = new HashMap<String, List<BigDecimal>>();
for(TurmaCurso turmaCursoPair: arrayOfTurmaCurso.getTurmaCurso())
{
List<BigDecimal> cursos = turmaCourses.get(turmaCursoPair.getCdTurma());
if(cursos == null)
{
cursos = new ArrayList<BigDecimal>();
turmaCourses.put(turmaCursoPair.getCdTurma(),cursos);
}
cursos.add(turmaCursoPair.getCodigoCurso());
System.out.println("Adding:" + turmaCursoPair.getCdTurma() + "->" + turmaCursoPair.getCodigoCurso());
}
/***END INICIALIZACAO***/
 
logger.info("updating " + semestre + " course units");
serviceLogInfo("updating " + semestre + " course units");
Set<Map.Entry<String, Disciplina>> set = disciplinasMapS.entrySet();
for (Map.Entry<String, Disciplina> entry : set)
{
Disciplina d = entry.getValue();
if(d.getCdTipoDisciplina().longValue() == 6)
{
logMessages.addMessage(new DefaultLogMessage("import.error","Ignorando disciplica com tipo = " + d.getCdTipoDisciplina(), "see log for details", LogMessageTypeEnum.WARNING));
logger.warn(logMessages.getLastMessage());
serviceLogWarn(logMessages.getLastMessage());
 
continue;
}
CourseUnit c;
try{
c = DaoFactory.getCourseUnitDaoImpl().loadBySigesCodeUnique("" + d.getCodigo(), "" + d.getCodigoCurso(), semestre, year);
c = DaoFactory.getCourseUnitDaoImpl().loadBySigesCodeUnique("" + d.getCodigo(), "" + d.getCodigoCurso(), semestre, year, d.getCdTurma());
}catch(NonUniqueResultException e)
{
logger.fatal("Unidade Repetida: (" + d.getCodigo() + ") curso: " + d.getCodigoCurso() + " " + semestre + " " + year);
serviceLogFatal("Unidade Repetida: (" + d.getCodigo() + ") curso: " + d.getCodigoCurso() + " " + semestre + " " + year);
logMessages.addMessage(new DefaultLogMessage("import.error","Unidade Repetida: (" + d.getCodigo() + ") curso: " + d.getCodigoCurso() + " " + semestre + " " + year, "see log for details", LogMessageTypeEnum.ERROR));
logger.fatal(logMessages.getLastMessage());
serviceLogWarn(logMessages.getLastMessage());
 
throw e;
}
//NOVO pode ainda nao ter turma
if(c == null)
{
List<CourseUnit> cus = DaoFactory.getCourseUnitDaoImpl().loadBySigesCodeTurmaNull("" + d.getCodigo(), "" + d.getCodigoCurso(), semestre, year);
if(cus == null || cus.size() == 0 )
{
// nao faz nada deixa ir null para criar
 
}
else if(cus.size() == 1)
{
//Tem de levar turma
c = cus.get(0);
c.setCdTurma(d.getCdTurma());
//é a primeira leva com o primeiro código de turma mete-se já este mas a seguir pode vir outro
logger.info("Adding turma code: " + d.getCdTurma() + " to unit:" + d.getCodigo() + "/" + d.getNome() + " curso:" + d.getCodigoCurso() + "/" + d.getNomeCurso());
serviceLogInfo("Adding turma code: " + d.getCdTurma() + " to unit:" + d.getCodigo() + "/" + d.getNome() + " curso:" + d.getCodigoCurso() + "/" + d.getNomeCurso());
}
else
{
logMessages.addMessage(new DefaultLogMessage("import.error", "Unidade Repetida: (" + d.getCodigo() + ") curso: " + d.getCodigoCurso() + " " + semestre + " " + year + " " + d.getCdTurma(), "see log for details", LogMessageTypeEnum.ERROR));
logger.fatal(logMessages.getLastMessage());
serviceLogWarn(logMessages.getLastMessage());
}
}
//NOVO
if (c == null)
{
c = DomainObjectFactory.createCourseUnitImpl();
DaoFactory.getCourseUnitDaoImpl().save(c);
serviceLogInfo("New Unit Found: (" + d.getCodigo() + ") " + d.getNome() + " - curso (" + d.getNomeCurso() + ") " + d.getNomeCurso());
logMessages.addMessage(new DefaultLogMessage("import.error", "New Unit Found: (" + d.getCodigo() + ") " + d.getNome() + " - curso (" + d.getNomeCurso() + ") " + d.getNomeCurso() + " turma(" + d.getCdTurma() + ")", "see log for details", LogMessageTypeEnum.ERROR));
logger.info(logMessages.getLastMessage());
serviceLogInfo(logMessages.getLastMessage());
newUnits++;
}
//NOVO
 
c.setCdTurma("" + d.getCdTurma());
//FIM NOVO
c.setName(d.getNome());
c.setInstitutionCode("" + DaoFactory.getConfigurationDaoImpl().getSigesInstitutionCode());
c.setCode("" + d.getCodigo().intValue());
264,7 → 330,6
c.setImportYear(year);
Course course = DaoFactory.getCourseDaoImpl().findCourseByCode(c.getCourseCode());
c.setCourse(course);
 
}
}
 
282,12 → 347,12
 
public static void main(String[] args) throws ServiceException
{
String year = DaoFactory.getConfigurationDaoImpl().getImportsDefaultImportYearCreateTransaction();
String year = "201415";//DaoFactory.getConfigurationDaoImpl().getImportsDefaultImportYearCreateTransaction();
if(args != null && args.length > 0)
year = args[0];
AbstractDao.getCurrentSession().beginTransaction();
new ImportCourseService().run(year);
AbstractDao.getCurrentSession().getTransaction().commit();
AbstractDao.getCurrentSession().getTransaction().rollback();
}
 
 
/impl/src/java/pt/estgp/estgweb/services/jobs/ServiceJob.java
136,8 → 136,10
protected abstract ILogMessages runJobServiceTask() throws Throwable;
 
protected void commitPartially() {
 
AbstractDao.getCurrentSession().getTransaction().commit();
AbstractDao.getCurrentSession().beginTransaction();
AbstractDao.getCurrentSession().update(jobServiceTask);
if(jobServiceTask != null)
AbstractDao.getCurrentSession().update(jobServiceTask);
}
}
/impl/src/java/pt/estgp/estgweb/services/data/RepositoryService.java
115,6 → 115,10
return repositoryFile;
}
 
public IRepositoryFile loadByIdentifier(String identifier)
{
return load(identifier,null);
}
/**
* @param identifier .
* @param userSession .
/impl/src/java/pt/estgp/estgweb/services/announcements/CreateAnnouncementService.java
4,6 → 4,7
import pt.estgp.estgweb.Globals;
import pt.estgp.estgweb.domain.*;
import pt.estgp.estgweb.domain.dao.DaoFactory;
import pt.estgp.estgweb.domain.dao.impl.AnnouncementDaoImpl;
import pt.estgp.estgweb.domain.enums.LangEnum;
import pt.estgp.estgweb.domain.views.AnnouncementView;
import pt.estgp.estgweb.domain.views.UserView;
85,7 → 86,7
return all;
}
}
public List<UserView> sendMessage(HttpServletRequest request, String from, String year, String department, long courseId, long courseUnitId, String semestre, MessageTarget target, String text,String subject, UserSession userSession)
public List<UserView> sendMessageOld(HttpServletRequest request, String from, String year, String department, long courseId, long courseUnitId, String semestre, MessageTarget target, String text,String subject, UserSession userSession)
{
List<User> users = DaoFactory.getAnnouncementDaoImpl().findUsers(year,department,courseId,courseUnitId,semestre,target);
List<User> usersToConsume = new ArrayList<User>();
103,6 → 104,41
iter.remove();
contador++;
}
Email e = sendEmailService.getMessageEmailOld(
jomm.utils.MessageResources.getMessage(request, "user.role." + from),
subject,
text,
LangEnum.PORTUGUESE,
jomm.utils.MessageResources.getMessage(request, "submit.todo.message." + target.getTarget()),
usersToJob,
userSession.getUser());
e.setHtml(true);
EMAILJob emailJob = new EMAILJob(e);
JobScheduleService.getInstance().scheduleNow(emailJob,"Message Email from " + userSession.getUsername() + " as " + from + ": year:" + year + " - department:" + department + " - courseId:" + courseId + " - courseUnitId:" + courseUnitId + " - semestre:" + semestre + " - target:" + target + " - subject:" + subject ,userSession);
}
List<UserView> userViews = UserView.getViews(users);
return userViews;
}
 
public Integer sendMessage(HttpServletRequest request, String from, String year, String department, long courseId, long courseUnitId, String semestre, MessageTarget target, String text,String subject, UserSession userSession)
{
//List<User> users = DaoFactory.getAnnouncementDaoImpl().findUsers(year,department,courseId,courseUnitId,semestre,target);
AnnouncementDaoImpl.FindUsersResult result = DaoFactory.getAnnouncementDaoImpl().findUsersEmails(year, department, courseId, courseUnitId, semestre, target);
List<String> usersToConsume = result.emails;
 
 
logger.info("Scheduling mail jobs to " + result.users + " users: " + usersToConsume.size() + " recipients");
while(usersToConsume.size() > 0)
{
Iterator<String> iter = usersToConsume.iterator();
List<String> usersToJob = new ArrayList<String>();
int contador = 0;
while(iter.hasNext() && contador < 20)
{
usersToJob.add(iter.next());
iter.remove();
contador++;
}
Email e = sendEmailService.getMessageEmail(
jomm.utils.MessageResources.getMessage(request,"user.role." + from),
subject,
115,8 → 151,8
EMAILJob emailJob = new EMAILJob(e);
JobScheduleService.getInstance().scheduleNow(emailJob,"Message Email from " + userSession.getUsername() + " as " + from + ": year:" + year + " - department:" + department + " - courseId:" + courseId + " - courseUnitId:" + courseUnitId + " - semestre:" + semestre + " - target:" + target + " - subject:" + subject ,userSession);
}
List<UserView> userViews = UserView.getViews(users);
return userViews;
 
return result.users;
}
 
public AnnouncementView run(AnnouncementView announcementView, Image imageBig, Image imageSmall, UserSession userSession)
/impl/src/java/pt/estgp/estgweb/domain/views/CourseUnitView.java
62,6 → 62,7
private String extension;
private List<CourseUnitAssignementView> courseUnitAssignements;
private String sumariosPathFileIntranet;
private String cdTurma;
 
private boolean notFound = false;
 
136,6 → 137,7
this.summariesJson = courseUnit.getSummariesJson();
this.sumariosPathFileIntranet = ((CourseUnitImpl)courseUnit).getSummariosPathFileIntranet();
this.evaluationOpenByAdmin = courseUnit.isEvaluationOpenByAdmin(); //nao tem persistencia propria tem de ser feito num serviço
this.cdTurma = courseUnit.getCdTurma();
 
// this.objectives = courseUnit.getObjectives(); DEPRECATED
if(courseUnit.getCourseUnitProgram() !=null && courseUnit.getCourseUnitProgram().getCourseUnitProgramPart2() != null)
229,6 → 231,10
return responsableId;
}
 
public String getCdTurma() {
return cdTurma;
}
 
public void setResponsableId(long responsableId) {
this.responsableId = responsableId;
}
/impl/src/java/pt/estgp/estgweb/domain/dao/impl/ConfigurationDaoImpl.java
59,6 → 59,17
return config;
}
 
public Configuration loadSimpleConfigurationForConsult()
{
List<Configuration> configs = createCriteria().list();
if(configs.size() == 0)
{
return null;
}
else
return configs.get(0);
}
 
public void updateInterfaceImportYearCreateTransaction(String importYear)
{
getCurrentSession().beginTransaction();
/impl/src/java/pt/estgp/estgweb/domain/dao/impl/AnnouncementDaoImpl.java
4,6 → 4,8
import org.hibernate.Criteria;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.ProjectionList;
import org.hibernate.criterion.Projections;
import pt.estgp.estgweb.Globals;
import pt.estgp.estgweb.domain.*;
import pt.estgp.estgweb.domain.dao.DaoFactory;
34,6 → 36,292
}
 
 
public static class FindUsersResult
{
public int users;
public List<String> emails;
}
public FindUsersResult findUsersEmails(String year, String department, long courseId, long courseUnitId, String semestre, CreateAnnouncementService.MessageTarget target)
{
FindUsersResult findUsersResult = new FindUsersResult();
List<String> users = new ArrayList<String>();
findUsersResult.emails = users;
 
ProjectionList projList = Projections.projectionList();
projList.add(Projections.distinct(Projections.property("id")));
projList.add(Projections.property("sigesCode"));
projList.add(Projections.property("email"));
projList.add(Projections.property("outEmail"));
 
if(target.isWorkers())
{
Criteria criteria = createCriteria(User.class);
criteria.add(like("roles", "%worker%"));
List<User > l = criteria.list();
findUsersResult.users = l.size();
for(User u: l)
{
if(u.getEmail() != null)
users.add(u.getEmail());
if(u.getOutEmail() != null)
users.add(u.getOutEmail());
}
}
 
if(courseUnitId > 0)
{
CourseUnit cu = DaoFactory.getCourseUnitDaoImpl().load(courseUnitId);
if(target.isTeachers())
{
findUsersResult.users = cu.getTeachers().size();
for(Teacher t: cu.getTeachers())
{
 
if(t.getEmail() != null)
users.add(t.getEmail());
if(t.getOutEmail() != null)
users.add(t.getOutEmail());
}
}
if(target.isStudents())
{
findUsersResult.users = cu.getStudents().size();
for(Student t: cu.getStudents())
{
if(t.getEmail() != null)
users.add(t.getEmail());
if(t.getOutEmail() != null)
users.add(t.getOutEmail());
}
}
}
else if(semestre != null && semestre.length() > 0)
{
if(target.isTeachers())
{
Criteria usersC = createCriteria(Teacher.class);
usersC.setProjection(projList);
usersC.createAlias("teachedUnits", "tU");
usersC.createAlias("tU.course","tUC");
usersC.add(eq("tU.semestre",semestre))
.add(eq("tUC.id",courseId));
//NOVO
if(year != null && year.length() > 0)
usersC.add(eq("tU.importYear",year));
//NOVO
List<Object[]> l = usersC.list();
findUsersResult.users = l.size();
for(Object[] t: l)
{
// if(t[1] != null)
// users.add(t[1] + "@" + Globals.EMAIL_LOCAL_SUFFIX);
if(t[2] != null)
users.add((String) t[2]);
if(t[3] != null)
users.add((String) t[3]);
}
}
if(target.isStudents())
{
Criteria usersC = createCriteria(Student.class);
usersC.setProjection(projList);
usersC.createAlias("subscribedUnits", "sU");
usersC.createAlias("sU.course","sUC");
usersC.add(eq("sU.semestre",semestre))
.add(eq("sUC.id",courseId));
if(year != null && year.length() > 0)
usersC.add(eq("sU.importYear",year));
List<Object[]> l = usersC.list();
findUsersResult.users = l.size();
 
for(Object[] t: l)
{
// if(t[1] != null)
// users.add(t[1] + "@" + Globals.EMAIL_LOCAL_SUFFIX);
if(t[2] != null)
users.add((String) t[2]);
if(t[3] != null)
users.add((String) t[3]);
}
}
}
else if(courseId > 0)
{
if(target.isTeachers())
{
Criteria usersC = createCriteria(Teacher.class);
usersC.setProjection(projList);
usersC.createAlias("teachedUnits", "tU");
usersC.createAlias("tU.course","tUC");
usersC.add(eq("tUC.id",courseId));
if(year != null && year.length() > 0)
usersC.add(eq("tU.importYear",year));
List<Object[]> l = usersC.list();
findUsersResult.users = l.size();
for(Object[] t: l)
{
// if(t[1] != null)
// users.add(t[1] + "@" + Globals.EMAIL_LOCAL_SUFFIX);
if(t[2] != null)
users.add((String) t[2]);
if(t[3] != null)
users.add((String) t[3]);
}
}
if(target.isStudents())
{
Criteria usersC = createCriteria(Student.class);
usersC.setProjection(projList);
usersC.createAlias("subscribedUnits", "sU");
usersC.createAlias("sU.course","sUC");
usersC.add(eq("sUC.id",courseId));
if(year != null && year.length() > 0)
usersC.add(eq("sU.importYear",year));
List<Object[]> l = usersC.list();
findUsersResult.users = l.size();
for(Object[] t: l)
{
// if(t[1] != null)
// users.add(t[1] + "@" + Globals.EMAIL_LOCAL_SUFFIX);
if(t[2] != null)
users.add((String) t[2]);
if(t[3] != null)
users.add((String) t[3]);
}
}
}
else if(department != null && department.length() > 0)
{
if(target.isTeachers())
{
Criteria usersC = createCriteria(Teacher.class);
usersC.setProjection(projList);
usersC.createAlias("teachedUnits", "tU");
usersC.createAlias("tU.course","tUC");
usersC.add(eq("tUC.area",department));
if(year != null && year.length() > 0)
usersC.add(eq("tU.importYear",year));
List<Object[]> l = usersC.list();
findUsersResult.users = l.size();
for(Object[] t: l)
{
// if(t[1] != null)
// users.add(t[1] + "@" + Globals.EMAIL_LOCAL_SUFFIX);
if(t[2] != null)
users.add((String) t[2]);
if(t[3] != null)
users.add((String) t[3]);
}
}
if(target.isStudents())
{
Criteria usersC = createCriteria(Student.class);
usersC.setProjection(projList);
usersC.createAlias("subscribedUnits", "sU");
usersC.createAlias("sU.course","sUC");
usersC.add(eq("sUC.area",department));
if(year != null && year.length() > 0)
usersC.add(eq("sU.importYear",year));
List<Object[]> l = usersC.list();
findUsersResult.users = l.size();
for(Object[] t: l)
{
// if(t[1] != null)
// users.add(t[1] + "@" + Globals.EMAIL_LOCAL_SUFFIX);
if(t[2] != null)
users.add((String) t[2]);
if(t[3] != null)
users.add((String) t[3]);
}
}
}
else if(year != null && year.length() > 0)
{
if(target.isTeachers())
{
Criteria usersC = createCriteria(Teacher.class).
setProjection(projList).
createAlias("teachedUnits", "tU")
.add(eq("tU.importYear", year));
List<Object[]> l = usersC.list();
findUsersResult.users = l.size();
for(Object[] t: l)
{
// if(t[1] != null)
// users.add(t[1] + "@" + Globals.EMAIL_LOCAL_SUFFIX);
if(t[2] != null)
users.add((String) t[2]);
if(t[3] != null)
users.add((String) t[3]);
}
}
if(target.isStudents())
{
Criteria usersC = createCriteria(Student.class).
setProjection(projList).
createAlias("subscribedUnits", "sU").
add(eq("sU.importYear", year));
List<Object[]> l = usersC.list();
findUsersResult.users = l.size();
for(Object[] t: l)
{
// if(t[1] != null)
// users.add(t[1] + "@" + Globals.EMAIL_LOCAL_SUFFIX);
if(t[2] != null)
users.add((String) t[2]);
if(t[3] != null)
users.add((String) t[3]);
}
}
}
else
{
if(target.isTeachers())
{
Criteria usersC = createCriteria(Teacher.class).
setProjection(projList);
List<Object[]> l = usersC.list();
findUsersResult.users = l.size();
for(Object[] t: l)
{
//if(t[1] != null)
// users.add(((String) t[1]) + "@" + Globals.EMAIL_LOCAL_SUFFIX);
if(t[2] != null)
users.add((String) t[2]);
if(t[3] != null)
users.add((String) t[3]);
}
}
if(target.isStudents())
{
Criteria usersC = createCriteria(Student.class).
setProjection(projList);
List<Object[]> l = usersC.list();
findUsersResult.users = l.size();
for(Object[] t: l)
{
// if(t[1] != null)
// users.add(((String) t[1]) + "@" + Globals.EMAIL_LOCAL_SUFFIX);
if(t[2] != null)
users.add((String) t[2]);
if(t[3] != null)
users.add((String) t[3]);
}
}
}
 
// System.out.println("Selected People:" + users.size());
// for(User u : users)
// {
// System.out.println(u.getName());
// }
// System.out.println("/Selected Students:" + users.size());
 
return findUsersResult;
 
 
}
 
public List<User> findUsers(String year, String department, long courseId, long courseUnitId, String semestre, CreateAnnouncementService.MessageTarget target)
{
List<User> users = new ArrayList<User>();
/impl/src/java/pt/estgp/estgweb/domain/dao/impl/CourseUnitDaoImpl.java
5,7 → 5,9
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Projections;
import org.hibernate.sql.JoinFragment;
import pt.estgp.estgweb.Globals;
import pt.estgp.estgweb.domain.*;
import pt.estgp.estgweb.domain.dao.DaoFactory;
import pt.estgp.estgweb.domain.dao.DaoUtils;
218,7 → 220,7
}
 
 
//TODO Na actualiza��o de uma cadeira para o curso de TESTE mudar o coursecode para o o coursecode desse curso para nao deixar os dados duplicados e mal
//TODO Na actualizacao de uma cadeira para o curso de TESTE mudar o coursecode para o o coursecode desse curso para nao deixar os dados duplicados e mal
//se nao a carregar unidades vai buscar a errada
public CourseUnit loadBySigesCodeUnique(String sigesCode, String courseCode, String semestre, String year)
{
231,15 → 233,53
.uniqueResult();
}
 
public CourseUnit loadBySigesCodeUniqueMostRecent(String sigesCode, String courseCode, String semestre)
/**
* Metodo especial para a fase de transicao para terem código de turma
* @param sigesCode
* @param courseCode
* @param semestre
* @param year
* @return
*/
public List<CourseUnit> loadBySigesCodeTurmaNull(String sigesCode, String courseCode, String semestre, String year)
{
return (List<CourseUnit>)
createCriteria()
.add(eq("code", sigesCode))
.add(eq("courseCode", courseCode))
.add(eq("semestre", semestre))
.add(eq("importYear", year))
.add(isNull("cdTurma"))
.list();
}
 
//TODO Na actualizacao de uma cadeira para o curso de TESTE mudar o coursecode para o o coursecode desse curso para nao deixar os dados duplicados e mal
//se nao a carregar unidades vai buscar a errada
public CourseUnit loadBySigesCodeUnique(String sigesCode, String courseCode, String semestre, String year,String turma)
{
return (CourseUnit)
createCriteria()
.add(eq("code", sigesCode))
.add(eq("courseCode", courseCode))
.add(eq("semestre", semestre))
.add(eq("importYear", year))
.add(eq("cdTurma", turma))
.uniqueResult();
}
 
public CourseUnit loadBySigesCodeUniqueMostRecent(String sigesCode, String courseCode, String semestre)
{
List<CourseUnit> cus =
createCriteria()
.add(eq("code", sigesCode))
.add(eq("courseCode", courseCode))
.add(eq("semestre", semestre))
.addOrder(Order.desc("importYear"))
.setMaxResults(1).list().get(0);
.setMaxResults(1).list();
if(cus.size() > 0)
return cus.get(0);
logger.warn("Accessing unit not existent with siges code " + sigesCode + " course code: " + courseCode + " semestre: " + semestre);
return null;
}
 
 
507,7 → 547,7
List<Course> courses = DaoFactory.getCourseDaoImpl().findAll(DaoFactory.getConfigurationDaoImpl().getInterfaceImportYear());
for(Course course: courses)
{
if(userSession.getUser().hasRole(course.getValidationRole()))
if(userSession.getUser().hasRole(course.getValidationRole()) || userSession.getUser().hasRole(Globals.SERVICES_PROGRAMS_ROLE))
{
List<CourseUnit> courseUnits = loadMissingProgramValidateGivenCourse(course.getId());
if(courseUnits != null && courseUnits.size() > 0)
521,13 → 561,15
}
return result;
}
 
 
public List<CourseMissingValidationProgram> loadMissingPrograms(UserSession userSession)
{
List<CourseMissingValidationProgram> result = new ArrayList<CourseMissingValidationProgram>();
List<Course> courses = DaoFactory.getCourseDaoImpl().findAll(DaoFactory.getConfigurationDaoImpl().getInterfaceImportYear());
for(Course course: courses)
{
if(userSession.getUser().hasRole(course.getValidationRole()))
if(userSession.getUser().hasRole(course.getValidationRole()) || userSession.getUser().hasRole(Globals.SERVICES_PROGRAMS_ROLE))
{
List<CourseUnit> courseUnits = loadMissingProgramGivenCourse(course.getId());
if(courseUnits != null && courseUnits.size() > 0)
553,7 → 595,7
List<Course> courses = DaoFactory.getCourseDaoImpl().findAll();
for(Course course: courses)
{
if(userSession.getUser().hasRole(course.getValidationRole()))
if(userSession.getUser().hasRole(course.getValidationRole()) || userSession.getUser().hasRole(Globals.SERVICES_PROGRAMS_ROLE))
{
List<CourseUnit> courseUnits = loadMissingEvaluationValidateGivenCourse(course.getId());
if(courseUnits != null && courseUnits.size() > 0)
568,6 → 610,8
return result;
}
 
 
 
/*
* Neste caso apenas se validam as do ano anterior*/
 
591,6 → 635,30
}
 
/**
*
* @return devolve todos os ids de unidades que verifiquem a condição de avaliação
* do periodo actual e tenham o programa fechado pela comissão
*/
 
public List<Long> loadClosedCourseUnitsEvaluations()
{
String activeYear = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveYear();
 
Criterion degreesCrit = getCourseUnitActiveDegreeCourseIdsCriterion(activeYear);
if(degreesCrit == null)
return new ArrayList<Long>();
 
return createCriteria()
.setProjection(Projections.property("id"))
.createAlias("course", "c")
.createAlias("courseUnitEvaluation", "ce")
.add(eq("importYear", activeYear))
.add(degreesCrit)
.add((eq("ce.closed", true)))
.list();
}
 
/**
* Devolve um criteio OR para todos os cursos de grau pertencente à lista de graus
* ou pertencete à lista de cursoIds
 
655,7 → 723,7
createCriteria()
.createAlias("course", "c")
.createAlias("courseUnitEvaluation", "ce")
.createAlias("teachers","t")
.createAlias("teachers", "t")
.add(eq("t.id", userSession.getUser().getId()))
.add(eq("importYear", activeYear))
//.add(not(eq("importYear", DaoFactory.getConfigurationDaoImpl().getInterfaceImportYear())))
676,7 → 744,7
List<Course> courses = DaoFactory.getCourseDaoImpl().findAll();
for(Course course: courses)
{
if(userSession.getUser().hasRole(course.getValidationRole()))
if(userSession.getUser().hasRole(course.getValidationRole()) || userSession.getUser().hasRole(Globals.SERVICES_PROGRAMS_ROLE))
{
List<CourseUnit> courseUnits = loadMissingEvaluation(course.getId());
if(courseUnits != null && courseUnits.size() > 0)
/impl/src/java/pt/estgp/estgweb/domain/UserSessionImpl.java
24,6 → 24,7
{
 
private Set<SessionObject> removeList;
private Configuration nowConfiguration;
 
/**
* @return
279,4 → 280,11
}
}
 
public Configuration getNowConfiguration() {
return nowConfiguration;
}
 
public void setNowConfiguration(Configuration nowConfiguration) {
this.nowConfiguration = nowConfiguration;
}
}
/impl/src/java/pt/estgp/estgweb/filters/filters/Session.java
3,10 → 3,7
import org.apache.log4j.Logger;
import org.hibernate.ObjectNotFoundException;
import pt.estgp.estgweb.Globals;
import pt.estgp.estgweb.domain.DomainObjectFactory;
import pt.estgp.estgweb.domain.SessionObject;
import pt.estgp.estgweb.domain.UserSession;
import pt.estgp.estgweb.domain.UserSessionImpl;
import pt.estgp.estgweb.domain.*;
import pt.estgp.estgweb.domain.dao.DaoFactory;
import pt.estgp.estgweb.filters.chains.FlowFilter;
import pt.estgp.estgweb.utils.ConfigProperties;
42,11 → 39,16
try
{
userSession = (UserSessionImpl) DaoFactory.getUserSessionDaoImpl().get((Serializable) request.getRequester());
 
if(userSession != null && userSession.getObjects() != null)
{
Configuration config = DaoFactory.getConfigurationDaoImpl().loadSimpleConfigurationForConsult();
userSession.setNowConfiguration(config);
for(SessionObject sessionObject: userSession.getObjects())
{
sessionObject.getObject();
}
}
if(userSession != null && new Date().getTime() - userSession.getSaveDate().getTime() < TIMEOUT_SESSION)
{
putSessionInArgs(userSession,request);
/impl/src/java/pt/estgp/estgweb/web/LayoutController.java
1,6 → 1,5
package pt.estgp.estgweb.web;
 
import jomm.utils.DesUtils;
import jomm.web.ftp.IFile;
import jomm.web.ftp.impl.FtpFile;
import jomm.web.utils.NavPlace;
12,8 → 11,6
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import pt.estgp.estgweb.domain.UserSession;
import pt.estgp.estgweb.domain.UserSessionImpl;
import pt.estgp.estgweb.services.ftpservices.FtpService;
import pt.estgp.estgweb.utils.ConfigProperties;
import pt.estgp.estgweb.web.controllers.ApplicationDispatchController;
import pt.estgp.estgweb.web.exceptions.NotAuthorizedException;
120,7 → 117,7
 
 
 
protected void processRequestFtp(HttpServletRequest request, HttpServletResponse response, String path, String serverStr, String server, String startPath)
protected void processRequestFtp(HttpServletRequest request, HttpServletResponse response, String path, String server, String serverUrl, String startPath)
throws ServletException, IOException
{
try
131,17 → 128,20
FtpManager.checkOperations(this,request,response);
 
UserSession userSession = UserSessionProxy.loadUserSessionFromRequest(request);
String username = userSession != null ? userSession.getUsername() : "UNKNOWN";
//String username = userSession != null ? userSession.getUsername() : "UNKNOWN";
 
FTPFileProxy.UserCredentialsForFtp u = FTPFileProxy.getUserCredentialsForFtp(server, userSession);
String username = u.username;
String password = u.password;
 
 
if (path != null)
{
 
boolean isStaticAccess = ConfigProperties.getBooleanProperty(serverStr+".use.default.credentials.to.updates.and.deletes");
String user;
String pass;
//boolean isStaticAccess = ConfigProperties.getBooleanProperty(serverStr+".use.default.credentials.to.updates.and.deletes");
//String user;
//String pass;
 
/*
if(isStaticAccess)
{
user = ConfigProperties.getProperty(serverStr + ".user");
155,8 → 155,9
pass= DesUtils.getInstance().decrypt(passwordCode);
//pass= ((UserImpl)userSession.getUser()).getPop3PassDecrypted();
}
FtpServer ftpServer = FtpServer.getNewServer(server, user, pass);
FTPClient client = ftpServer.getClient();
*/
FtpServer ftpServer = FtpServer.getNewServer(serverUrl, username, password);
FTPClient client = FTPFileProxy.getFtpClient(ftpServer,userSession,server,serverUrl);
if(client == null)
{
logger.warn("###################");
175,8 → 176,8
{
IFile iFile;
if (path.endsWith("/"))
iFile = new FtpFile(ftpFile, server + URIUtil.encodePath(path +ftpFile.getName(),"ISO-8859-1"), path);
else iFile = new FtpFile(ftpFile, server + URIUtil.encodePath(path + "/" + ftpFile.getName(),"ISO-8859-1"), path);
iFile = new FtpFile(ftpFile, serverUrl + URIUtil.encodePath(path +ftpFile.getName(),"ISO-8859-1"), path);
else iFile = new FtpFile(ftpFile, serverUrl + URIUtil.encodePath(path + "/" + ftpFile.getName(),"ISO-8859-1"), path);
iFiles.add(iFile);
}
List<NavPlace> navPlaces = FtpFile.getNavPlaces(path,startPath);
187,7 → 188,7
}
else
{
throw new FileNotFoundException("url not found for server:" + server + " and path:" + path);
throw new FileNotFoundException("url not found for server:" + serverUrl + " and path:" + path);
}
}
catch (Throwable e)
/impl/src/java/pt/estgp/estgweb/web/UserSessionProxy.java
96,6 → 96,24
}
}
 
public static UserSession createUserSession(HttpServletRequest request, HttpServletResponse response) throws Throwable
{
try
{
 
IServiceManager sm = ServiceManager.getInstance();
Object[] args = new Object[]{RequestUtils.getRequester(request, response)};
UserSession userSession = (UserSession) sm.execute(RequestUtils.getRequester(request, response),"LoadUserSession",args);
 
request.setAttribute(Globals.USER_SESSION_KEY,userSession);
return userSession;
}
catch (Throwable e)
{
throw e;
}
}
 
public static UserSession loadUserSessionFromRequest(HttpServletRequest request)
{
return (UserSession) request.getAttribute(Globals.USER_SESSION_KEY);
/impl/src/java/pt/estgp/estgweb/web/controllers/announcements/MessagesController.java
6,7 → 6,6
import org.apache.struts.action.ActionMapping;
import pt.estgp.estgweb.domain.views.CourseUnitView;
import pt.estgp.estgweb.domain.views.CourseView;
import pt.estgp.estgweb.domain.views.UserView;
import pt.estgp.estgweb.filters.exceptions.NotFoundException;
import pt.estgp.estgweb.services.announcements.CreateAnnouncementService;
import pt.estgp.estgweb.web.controllers.courseunits.CourseUnitsController;
141,9 → 140,9
String[] names = new String[]{};
Object[] args = new Object[]{request, mF.getFromRole(),mF.getImportYear(),mF.getDepartamento(),mF.getCourseId(),mF.getCourseUnitId(),mF.getSemestre(), CreateAnnouncementService.MessageTarget.parse(mF.getTarget()),mF.getText(),mF.getSubject()};
// String from, String year, String department, long courseId, long courseUnitId, String semestre, MessageTarget target,
List<UserView> users = (List<UserView>) sm.execute(RequestUtils.getRequester(request, response), "SendMessage", args, names);
Integer size = (Integer) sm.execute(RequestUtils.getRequester(request, response), "SendMessage", args, names);
 
addMessage(request,"submit.todo.message.success","" + users.size());
addMessage(request,"submit.todo.message.success","" + size);
return mapping.findForward("success");
}
catch (FilterChainFailedException e)
/impl/src/java/pt/estgp/estgweb/web/filters/UserSessionFilter.java
3,6 → 3,7
import org.apache.log4j.Logger;
import pt.estgp.estgweb.Globals;
import pt.estgp.estgweb.domain.UserSessionImpl;
import pt.estgp.estgweb.domain.dao.DaoFactory;
import pt.estgp.estgweb.web.UserSessionProxy;
import pt.estgp.estgweb.web.exceptions.NoCookiesException;
import pt.utl.ist.berserk.logic.serviceManager.IServiceManager;
12,6 → 13,7
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.Locale;
 
96,6 → 98,20
try
{
UserSessionImpl userSession = (UserSessionImpl) UserSessionProxy.loadUserSession(hrequest,((HttpServletResponse) response));
boolean dummy = false;
if(userSession == null)
{
dummy = true;
System.out.println("Creating dummy UserSession");
userSession = new UserSessionImpl();//creating a dummy there is no cookie
request.setAttribute(Globals.USER_SESSION_KEY,userSession);
userSession.setIpAddress(request.getRemoteAddr() + " : " + request.getRemoteHost() + " : " + request.getRemotePort());
userSession.setSaveDate(new Date());
userSession.setNowConfiguration(DaoFactory.getConfigurationDaoImpl().loadSimpleConfigurationForConsult());
chain.doFilter(request,response);
return;
}
 
request.setAttribute(Globals.USER_SESSION_KEY,userSession);
userSession.setIpAddress(request.getRemoteAddr() + " : " + request.getRemoteHost() + " : " + request.getRemotePort());
String lang = request.getParameter("language");
/impl/src/java/pt/estgp/estgweb/web/FTPFileProxy.java
50,7 → 50,9
{
UserCredentialsForFtp u = new UserCredentialsForFtp();
boolean useDefaultCredentialsRead = ConfigProperties.getBooleanProperty(server + ".use.default.credentials.to.read");
String passwordUserInSessionCript = (String) ((UserSessionImpl)userSession).get(FtpService.FTP_PASSWORD);
String passwordUserInSessionCript = null;
if(userSession != null && ((UserSessionImpl)userSession).get(FtpService.FTP_PASSWORD) != null)
passwordUserInSessionCript = (String) ((UserSessionImpl)userSession).get(FtpService.FTP_PASSWORD);
 
if(!useDefaultCredentialsRead && // DEVE USAR AS DO USER
passwordUserInSessionCript != null && userSession.getUser() != null) // E ESTA AUTENTICADO
195,7 → 197,7
InputStream stream = client.retrieveFileStream(file.getName());
response.setContentLength((int)file.getSize());
response.setContentType(MimeTypeGuesser.getInstance().guessMimeType(file.getName()));
response.setHeader("Content-disposition","inline; filename=" + file.getName());
response.setHeader("Content-disposition","attachment; filename=" + file.getName());
StreamsUtils.inputStream2OutputStream(stream, response.getOutputStream());
stream.close();
 
/impl/src/hbm/pt/estgp/estgweb/domain/CourseUnit.hbm.xml
35,6 → 35,7
<property name="summariesJson" type="text">
<column name="summariesJson" sql-type="TEXT"/>
</property>
<property name="cdTurma" type="string" index="cdTurmaIndex" />
<!--Not In Use-->
<many-to-one name="validatorUser" class="pt.estgp.estgweb.domain.User" lazy="false" outer-join="true" />
<many-to-one name="course" class="pt.estgp.estgweb.domain.Course" lazy="false" outer-join="true"/>
/impl/src/hbm/pt/estgp/estgweb/domain/Configuration.hbm.xml
32,6 → 32,10
<property name="courseUnitEvaluationActiveDegrees" type="string"/>
<property name="courseUnitEvaluationActiveCourseIds" type="string"/>
 
<property name="openInfoIntranet" type="string">
<column name="openInfoIntranet" sql-type="TEXT"/>
</property>
 
<many-to-one name="configurationGrades" class="pt.estgp.estgweb.domain.ConfigurationGrades" lazy="proxy" outer-join="false"/>
<subclass name="pt.estgp.estgweb.domain.ConfigurationImpl" discriminator-value="ConfigurationImpl"/>
</class>
/impl/src/web/auth/index.jsp
1,21 → 1,35
<%@ 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-bean.tld" prefix="bean" %>
<%@ taglib prefix="logic" uri="http://jakarta.apache.org/struts/tags-logic" %>
<jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSessionImpl" scope="request"/>
<html:errors/>
 
<html:errors/>
<html:form action="/authenticate">
<input type="hidden" name="dispatch" value="login">
<table class="boxHorizontal">
<tr>
<th><bean:message key="username"/></th>
<td><input type="text" name="username"></td>
</tr>
<tr>
<th><bean:message key="password"/></th>
<td><input type="password" name="password"></td>
</tr>
<tr class="buttons">
<td colspan="2"><html:submit titleKey="submit"/></td>
</tr>
</table>
</html:form>
<div class="container">
<logic:notEmpty name="UserSession" property="nowConfiguration.openInfoIntranet">
<div class="row">
<div class="col-sm-8">
<div class="alert alert-warning" role="alert">${UserSession.nowConfiguration.openInfoIntranet}</div>
</div>
</div>
</logic:notEmpty>
 
<div class="row">
<div class="col-sm-4">
<form role="form" action="<%=request.getContextPath()%>/authenticate.do" method="post">
<input type="hidden" name="dispatch" value="login">
<div class="form-group">
<label for="login"><bean:message key="username"/></label>
<input type="text" class="form-control" id="login" name="username"/>
</div>
<div class="form-group">
<label for="pwd"><bean:message key="password"/></label>
<input type="password" class="form-control" id="pwd" name="password"/>
</div>
<button type="submit" class="btn btn-default"><bean:message key="submit"/></button>
</form>
</div>
</div>
 
 
</div>
/impl/src/web/css/lavish-bootstrap.css
254,7 → 254,7
font-size: 14px;
line-height: 1.428571429;
color: #a67b50;
background-color: #fbfbfa;
background-color: #FFFFFF;
}
input,
button,
/impl/src/web/layout/scripts.jsp
248,9 → 248,38
}
);
}
if($(".tablesorterfiltered"))
{
$(".tablesorterfiltered").tablesorter({
theme: 'blue',
 
 
sortMultiSortKey: 'altKey',
//sortList: [[0,0]],
widgets: ["zebra","filter"],
 
ignoreCase: false,
widthFixed : true,
widgetOptions : {filter_reset : 'button.reset',filter_columnFilters : true},
textExtraction: function(node) {
// extract data from markup and return it
if($(node).find(':input').size()>0)
{
var values = $(node).find(":input").map(function() {
return $(this).val()
}).get().join(",");
 
 
return values;
}
return $(node).text();
}
}
);
}
 
 
 
// External search
// buttons set up like this:
// <button type="button" data-filter-column="4" data-filter-text="2?%">Saved Search</button>
268,6 → 297,8
$.tablesorter.setFilters( $('#myTable'), filters, true ); // new v2.9
if($('#myTable2'))
$.tablesorter.setFilters( $('#myTable2'), filters, true ); // new v2.9
if($('.tablesorterfiltered'))
$.tablesorter.setFilters( $('.tablesorterfiltered'), filters, true ); // new v2.9
 
/** old method (prior to tablsorter v2.9 ***
var filters = $('table.tablesorter').find('input.tablesorter-filter');
/impl/src/web/user/courses/directedCoordinatedCoursesCourseView.jsp
42,11 → 42,12
}
);
</script>
<table id="myTable${SEMESTRE}NP${courseView.id}" class="dataTable tablesorter">
<table id="myTable${SEMESTRE}NP${courseView.id}" class="dataTable tablesorter tablesorterfiltered">
<thead>
<tr>
<th>Código</th>
<th>Unidade</th>
<th>Turma</th>
<th>Docente</th>
<td></td>
</tr>
56,6 → 57,7
<tr>
<td>${courseUnitView.code}</td>
<td>${courseUnitView.name}</td>
<td>${courseUnitView.cdTurma}</td>
<td>${courseUnitView.teachersSnipet}</td>
 
<td class="icons">
68,17 → 70,24
<html:link action="/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/edit.png"/></html:link>
</logic:equal>
<logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id">
<baco:hasRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms">
<html:link action="/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/edit.png"/></html:link>
</baco:hasRole>
</logic:notEqual>
<logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id">
<baco:isTeacherOfCourseUnit courseUnitId="${courseUnitView.id}">
<html:link action="/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/edit.png"/></html:link>
<baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms">
<html:link action="/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/edit.png"/></html:link>
</baco:hasNotRole>
</baco:isTeacherOfCourseUnit>
</logic:notEqual>
</logic:equal>
<baco:hasRole role="${courseView.validationRole},courseValidatePrograms">
<baco:hasRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms">
<logic:equal value="true" name="courseUnitView" property="validEvaluation">
<a href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><img src="<%=request.getContextPath()%>/imgs/avaliacao_icon.png"/></a>
</logic:equal>
</baco:hasRole>
<baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms">
<baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms">
<baco:isTeacherOfCourseUnit courseUnitId="${courseUnitView.id}">
<logic:equal value="true" name="courseUnitView" property="validEvaluation">
<a href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><img src="<%=request.getContextPath()%>/imgs/avaliacao_icon.png"/></a>
125,12 → 134,13
}
);
</script>
<table id="myTable${SEMESTRE}PI${courseView.id}" class="dataTable tablesorter">
<table id="myTable${SEMESTRE}PI${courseView.id}" class="dataTable tablesorter tablesorterfiltered">
<thead>
<tr>
<td></td>
<th>Código</th>
<th>Unidade</th>
<th>Turma</th>
<th>Docente</th>
<td></td>
</tr>
164,7 → 174,8
<nested:checkbox property="validProgram"/></td>
</baco:hasRole>
<td>${courseUnitView.code}</td>
<td>${courseUnitView.name}</td>
<td>${courseUnitView.name}</td>
<td>${courseUnitView.cdTurma}</td>
<td>${courseUnitView.teachersSnipet}</td>
<td class="icons">
<a href="<%=request.getContextPath()%>/user/startLoadCourseUnitFromHome.do?id=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/home.png"/></a>
175,17 → 186,24
<html:link action="/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/edit.png"/></html:link>
</logic:equal>
<logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id">
<baco:hasRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms">
<html:link action="/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/edit.png"/></html:link>
</baco:hasRole>
</logic:notEqual>
<logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id">
<baco:isTeacherOfCourseUnit courseUnitId="${courseUnitView.id}">
<html:link action="/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/edit.png"/></html:link>
<baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms">
<html:link action="/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/edit.png"/></html:link>
</baco:hasNotRole>
</baco:isTeacherOfCourseUnit>
</logic:notEqual>
</logic:equal>
<baco:hasRole role="${courseView.validationRole},courseValidatePrograms">
<baco:hasRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms">
<logic:equal value="true" name="courseUnitView" property="validEvaluation">
<a href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><img src="<%=request.getContextPath()%>/imgs/avaliacao_icon.png"/></a>
</logic:equal>
</baco:hasRole>
<baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms">
<baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms">
<baco:isTeacherOfCourseUnit courseUnitId="${courseUnitView.id}">
<logic:equal value="true" name="courseUnitView" property="validEvaluation">
<a href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><img src="<%=request.getContextPath()%>/imgs/avaliacao_icon.png"/></a>
227,12 → 245,13
}
);
</script>
<table id="myTable${SEMESTRE}PV${courseView.id}" class="dataTable tablesorter">
<table id="myTable${SEMESTRE}PV${courseView.id}" class="dataTable tablesorter tablesorterfiltered">
<thead>
<tr>
<td></td>
<th>Código</th>
<th>Unidade</th>
<th>Turma</th>
<th>Docente</th>
<td></td>
</tr>
266,6 → 285,7
</baco:hasRole>
<td>${courseUnitView.code}</td>
<td>${courseUnitView.name}</td>
<td>${courseUnitView.cdTurma}</td>
<td>${courseUnitView.teachersSnipet}</td>
<td class="icons">
<a href="<%=request.getContextPath()%>/user/startLoadCourseUnitFromHome.do?id=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/home.png"/></a>
278,23 → 298,30
<html:link action="/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/edit.png"/></html:link>
</logic:equal>
<logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id">
<baco:hasRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms">
<html:link action="/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/edit.png"/></html:link>
</baco:hasRole>
</logic:notEqual>
<logic:notEqual value="${courseView.coordinator.id}" name="UserSession" property="user.id">
<baco:isTeacherOfCourseUnit courseUnitId="${courseUnitView.id}">
<html:link action="/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/edit.png"/></html:link>
<baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms">
<html:link action="/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/edit.png"/></html:link>
</baco:hasNotRole>
</baco:isTeacherOfCourseUnit>
</logic:notEqual>
<baco:hasRole role="${courseView.validationRole},courseValidatePrograms">
</logic:equal>
<baco:hasRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms">
<logic:equal value="true" name="courseUnitView" property="validEvaluation">
<a href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><img src="<%=request.getContextPath()%>/imgs/avaliacao_icon.png"/></a>
</logic:equal>
</baco:hasRole>
<baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms,servicesPrograms">
<baco:isTeacherOfCourseUnit courseUnitId="${courseUnitView.id}">
<logic:equal value="true" name="courseUnitView" property="validEvaluation">
<a href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><img src="<%=request.getContextPath()%>/imgs/avaliacao_icon.png"/></a>
</logic:equal>
</baco:hasRole>
<baco:hasNotRole role="${courseView.validationRole},courseValidatePrograms">
<baco:isTeacherOfCourseUnit courseUnitId="${courseUnitView.id}">
<logic:equal value="true" name="courseUnitView" property="validEvaluation">
<a href="<%=request.getContextPath()%>/repositoryStream/${courseUnitView.evaluationStreamId}"><img src="<%=request.getContextPath()%>/imgs/avaliacao_icon.png"/></a>
</logic:equal>
</baco:isTeacherOfCourseUnit>
</baco:hasNotRole>
</logic:equal>
</baco:isTeacherOfCourseUnit>
</baco:hasNotRole>
</baco:isNotAdmin>
<baco:isAdmin>
<html:link action="/startLoadCourseUnitProgram?courseUnitId=${courseUnitView.id}"><img src="<%=request.getContextPath()%>/imgs/edit.png"/></html:link>
/impl/src/web/user/courseunits/courseunitEvaluation.jsp
6,6 → 6,7
<%@ page import="pt.estgp.estgweb.domain.Teacher" %>
<%@ page import="pt.estgp.estgweb.domain.ConfigurationImpl" %>
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %>
<%@ page import="pt.estgp.estgweb.Globals" %>
<%@ 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" %>
26,9 → 27,10
<%
IServiceManager sm = ServiceManager.getInstance();
 
List<pt.estgp.estgweb.domain.views.CourseUnitView> otherYearUnits;
/*List<pt.estgp.estgweb.domain.views.CourseUnitView> otherYearUnits;
otherYearUnits = new ArrayList<pt.estgp.estgweb.domain.views.CourseUnitView>();
try{
 
String[] names = new String[]{};
Object[] args = new Object[]{new Long(CourseUnitView.getId())};
otherYearUnits =
46,7 → 48,7
{
System.err.print(e.toString());
e.printStackTrace();
}
}*/
 
boolean closed = CourseUnitEvaluationForm.getCourseUnitEvaluationView().getCourseUnitEvaluation().isClosed();
boolean teacherComplete = CourseUnitEvaluationForm.getCourseUnitEvaluationView().getCourseUnitEvaluation().isTeacherComplete();
118,7 → 120,9
CourseUnitView.isOwnedBy(UserSession.getUser(),false)
||
//Validation Role e o papel da comissão de curso
UserSession.getUser().hasRole(CourseUnitView.getCourseView().getValidationRole()))
UserSession.getUser().hasRole(CourseUnitView.getCourseView().getValidationRole())
||
UserSession.getUser().hasRole(Globals.SERVICES_PROGRAMS_ROLE))
{
 
 
/impl/src/web/user/courseunits/courseunit.jsp
2,6 → 2,7
<%@ page import="pt.estgp.estgweb.web.utils.RequestUtils" %>
<%@ page import="pt.utl.ist.berserk.logic.serviceManager.IServiceManager" %>
<%@ page import="pt.utl.ist.berserk.logic.serviceManager.ServiceManager" %>
<%@ page import="pt.estgp.estgweb.Globals" %>
<%@ 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" %>
42,20 → 43,23
request.setAttribute("CourseUnitInEvaluation",courseUnitViewInEvaluation);
}
 
boolean showEvaluationReport = false;
 
%>
 
<jomm:messages/>
 
<div id="contentPane">
<h1>${CourseUnitView.name} (${CourseUnitView.code}) - (${CourseUnitView.semestre}) - ${CourseUnitView.importYear})</h1>
<table width="100%" cellpadding="0" cellspacing="2" border="0">
<tr>
<td valign="top" class="seccao">
<div class="panel panel-primary">
<div class="panel-heading">
${CourseUnitView.name} (${CourseUnitView.code}) - semestre ${CourseUnitView.semestre} - ano ${CourseUnitView.importYear} - turma ${CourseUnitView.cdTurma}
</div>
<div class="panel-body">
 
 
 
<baco:isAuthenticated>
<%
if(activeEvaluationYear != null)
{
 
%>
 
<%
64,300 → 68,280
CourseUnitView.isOwnedBy(UserSession.getUser(),false)
||
//Validation Role e o papel da comissão de curso
UserSession.getUser().hasRole(CourseUnitView.getCourseView().getValidationRole()))
UserSession.getUser().hasRole(CourseUnitView.getCourseView().getValidationRole())
||
UserSession.getUser().hasRole(Globals.SERVICES_PROGRAMS_ROLE))
{
if(CourseUnitView.isValidEvaluation())
{
%>
<p>
<label class="INFO"> <a href="<%=request.getContextPath()%>/repositoryStream/<%=CourseUnitView.getEvaluationStreamId()%>">Relatório de avaliação em PDF</a></label>
</p>
<%
showEvaluationReport = true;
 
}
 
if(courseUnitViewInEvaluation != null)
{
%>
<p>
<label class="WARNING">Atenção tem um relatório de avaliação em fase de preenchimento no ano <%=courseUnitViewInEvaluation.getImportYear()%> (Entrar no <%=courseUnitViewInEvaluation.getImportYear()%> pelo menu lateral esquerdo antes de clicar em relatório de avaliação e confirmar no titulo da unidade).</label>
</p>
<%
%>
<div class="row">
<div class="col-sm-8">
<div class="alert alert-warning" role="alert">Atenção tem um relatório de avaliação em fase de preenchimento no ano <%=courseUnitViewInEvaluation.getImportYear()%> (Entrar no <%=courseUnitViewInEvaluation.getImportYear()%> pelo menu lateral esquerdo antes de clicar em relatório de avaliação e confirmar no titulo da unidade).</div>
</div>
</div>
 
<%
}
}
 
}
%>
</baco:isAuthenticated>
<baco:hasRole role="admin,all,services">
<ul>
<li>
<html:link action="/user/startEditCourseUnitAdminFromServiceZone.do?id=${CourseUnitView.id}">
Editar Dados Administrativos Unidade
</html:link>
</li>
<li>
<html:link action="/user/courseControllerFromServiceZone.do?dispatch=edit&courseView.id=${CourseUnitView.courseId}">
Editar Dados Administrativos Curso
</html:link>
</li>
</ul>
<html:form styleClass="form" action="/user/courseUnitControllerFromHome" enctype="multipart/form-data">
<input type="hidden" name="dispatch" value="update"/>
<html:hidden property="courseUnitView.id"/>
 
</baco:hasRole>
 
<html:form styleClass="form" action="/user/courseUnitControllerFromHome" enctype="multipart/form-data">
<input type="hidden" name="dispatch" value="update"/>
<html:hidden property="courseUnitView.id"/>
<div class="panel panel-default">
<div class="panel-heading">
<bean:message key="courseunit.objectives"/>
</div>
<div class="panel-body">
<p><logic:present name="CourseUnitView" property="objectives">
${CourseUnitView.formatedObjectives}
</logic:present>
<logic:notPresent name="CourseUnitView" property="objectives">
<bean:message key="courseunit.objectives.not.available"/>
</logic:notPresent></p>
</div>
</div>
<div class="row">
<div class="col-md-8 col-sm-6 col-xs-12">
<div class="row">
<div class="col-md-6 col-sm-12 col-xs-12">
 
<p>
<%--<baco:cantManage name="CourseUnitView">--%>
<div class="panel panel-default">
<div class="panel-heading">
<bean:message key="courseunit.objectives"/>
</div>
<div class="panel-body">
<p><logic:present name="CourseUnitView" property="objectives">
${CourseUnitView.formatedObjectives}
</logic:present>
<logic:notPresent name="CourseUnitView" property="objectives">
<bean:message key="courseunit.objectives.not.available"/>
</logic:notPresent></p>
</div>
</div>
</div>
<div class="col-md-6 col-sm-12 col-xs-12">
<div class="panel panel-default">
<div class="panel-heading">
Recursos
</div>
<div class="panel-body">
 
<%--</baco:cantManage>--%>
<%--<baco:canManage name="CourseUnitView">--%>
<%--<html:textarea styleClass="textarea" property="courseUnitView.objectives"/>--%>
<%--</baco:canManage>--%>
</p>
<baco:canManage name="CourseUnitView">
<h2><bean:message key="courseunits.contentsGrants"/></h2>
<p>
<html:select property="courseUnitView.contentsGrants">
<%--<html:option value="PUBLIC"><bean:message key="courseunits.contentsGrants.PUBLIC"/></html:option>--%>
<html:option value="INTERNAL"><bean:message key="courseunits.contentsGrants.INTERNAL"/></html:option>
<html:option value="PRIVATE"><bean:message key="courseunits.contentsGrants.PRIVATE"/></html:option>
</html:select>
<baco:canManage name="CourseUnitView">
<input type="button" onclick="set(form,'update');form.submit()" value="<bean:message key="confirm"/>">
</baco:canManage>
</p>
</baco:canManage>
<baco:isAuthenticated>
<h2><bean:message key="courseunit.programfilepath"/>
<baco:isTeacherOfCourseUnit courseUnitId="${CourseUnitView.id}">
<logic:equal value="false" name="CourseUnitView" property="validProgram">
Ficha aberta para edição: (<html:link action="/startLoadCourseUnitProgram?courseUnitId=${CourseUnitView.id}"><bean:message key="courseunit.edit.program"/></html:link>)
</logic:equal>
<div class="list-group">
 
</baco:isTeacherOfCourseUnit>
<logic:equal value="${CourseUnitView.coordinatorId}" name="UserSession" property="user.id">
<logic:equal value="false" name="CourseUnitView" property="validProgram">
Ficha aberta para edição: (<html:link action="/startLoadCourseUnitProgram?courseUnitId=${CourseUnitView.id}"><bean:message key="courseunit.edit.program"/></html:link>)
</logic:equal>
</logic:equal>
<baco:hasRole role="admin,all,services,ci">
<div class="list-group-item">
<html:link action="/user/startEditCourseUnitAdminFromServiceZone.do?id=${CourseUnitView.id}">
Editar Dados Administrativos Unidade
</html:link>
</div>
<div class="list-group-item">
<html:link action="/user/courseControllerFromServiceZone.do?dispatch=edit&courseView.id=${CourseUnitView.courseId}">
Editar Dados Administrativos Curso
</html:link>
</div>
</baco:hasRole>
<%
if(showEvaluationReport)
{
%>
<div class="list-group-item">
<a href="<%=request.getContextPath()%>/repositoryStream/<%=CourseUnitView.getEvaluationStreamId()%>">Relatório de avaliação (ano ${CourseUnitView.importYear})</a>
<span class="badge">
<a href="<%=request.getContextPath()%>/repositoryStream/${CourseUnitView.evaluationStreamId}"><img src="<%=request.getContextPath()%>/imgs/mime/pdf.gif"/></a>
</span>
</div>
<%
}
%>
<baco:canManage name="CourseUnitView">
 
<baco:isAdmin>
Ficha aberta para edição: (<html:link action="/startLoadCourseUnitProgram?courseUnitId=${CourseUnitView.id}"><bean:message key="courseunit.edit.program"/></html:link>)
</baco:isAdmin>
<div class="list-group-item">
<bean:message key="courseunits.contentsGrants"/> -
<%--<html:option value="PUBLIC"><bean:message key="courseunits.contentsGrants.PUBLIC"/></html:option>--%>
<html:radio onclick="set(form,'update');form.submit()" property="courseUnitView.contentsGrants" value="INTERNAL"/> <bean:message key="courseunits.contentsGrants.INTERNAL"/>
<html:radio onclick="set(form,'update');form.submit()" property="courseUnitView.contentsGrants" value="PRIVATE" /> <bean:message key="courseunits.contentsGrants.PRIVATE"/>
</div>
</baco:canManage>
 
<baco:isAuthenticated>
 
<logic:equal value="true" name="CourseUnitView" property="validProgram">
(Ficha curricular validada)
</logic:equal>
<logic:equal value="false" name="CourseUnitView" property="validProgram">
(<label style="color:red">Ficha curricular ainda não validada pela Comissão de Curso</label>)
</logic:equal>
</h2>
<p>
<baco:canManage name="CourseUnitView">
<!--
<logic:equal value="false" name="CourseUnitView" property="validProgram">
<html:file property="programFile"/>
</logic:equal>
-->
<logic:present name="CourseUnitView" property="programStreamId">
<a href="<%=request.getContextPath()%>/repositoryStream/${CourseUnitView.programStreamId}"><bean:message key="courseunit.programfilepath"/></a> (${CourseUnitView.programSize} Kb)
<logic:equal value="true" name="CourseUnitView" property="validProgram">
(<bean:message key="courseunit.programfile.valid"/>)
</logic:equal>
</logic:present>
</baco:canManage>
 
 
<baco:cantManage name="CourseUnitView">
<logic:present name="CourseUnitView" property="programStreamId">
<logic:equal value="true" name="CourseUnitView" property="validProgram">
(<bean:message key="courseunit.programfile.valid"/>)
</logic:equal>
<a href="<%=request.getContextPath()%>/repositoryStream/${CourseUnitView.programStreamId}"><bean:message key="courseunit.programfilepath"/></a> (${CourseUnitView.programSize} Kb)
 
</logic:present>
</baco:cantManage>
<div class="list-group-item">
<logic:present name="CourseUnitView" property="programStreamId">
<a href="<%=request.getContextPath()%>/repositoryStream/${CourseUnitView.programStreamId}"><bean:message key="courseunit.programfilepath"/></a> <!--(${CourseUnitView.programSize} Kb)-->
 
<logic:notPresent name="CourseUnitView" property="programStreamId">
<bean:message key="courseunit.programfilepath.not.available"/>
</logic:notPresent>
<%--<logic:equal value="true" name="CourseUnitView" property="validProgram">
(<bean:message key="courseunit.programfile.valid"/>)
</logic:equal>--%>
<logic:equal value="false" name="CourseUnitView" property="validProgram">
(<label style="color:red">Não validada pela Comissão de Curso</label>)
</logic:equal>
 
<logic:present name="CourseUnitView" property="programStreamId">
<logic:equal value="false" name="CourseUnitView" property="validProgram">
<bean:message key="courseunit.programfile.invalid"/>
</logic:equal>
</logic:present>
<baco:isNotAdmin>
<logic:notEqual value="${CourseUnitView.coordinatorId}" name="UserSession" property="user.id">
<baco:isTeacherOfCourseUnit courseUnitId="${CourseUnitView.id}">
<logic:equal value="false" name="CourseUnitView" property="validProgram">
<span class="badge"> <html:link action="/startLoadCourseUnitProgram?courseUnitId=${CourseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link></span>
</logic:equal>
</baco:isTeacherOfCourseUnit>
</logic:notEqual>
<logic:equal value="${CourseUnitView.coordinatorId}" name="UserSession" property="user.id">
<logic:equal value="false" name="CourseUnitView" property="validProgram">
<span class="badge"><html:link action="/startLoadCourseUnitProgram?courseUnitId=${CourseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link></span>
</logic:equal>
</logic:equal>
</baco:isNotAdmin>
<baco:isAdmin>
<html:link styleClass="btn btn-warning" action="/startLoadCourseUnitProgram?courseUnitId=${CourseUnitView.id}"><span class="glyphicon glyphicon-pencil"></span></html:link>
</baco:isAdmin>
<span class="badge"><a href="<%=request.getContextPath()%>/repositoryStream/${CourseUnitView.programStreamId}"><img src="<%=request.getContextPath()%>/imgs/mime/pdf.gif"/></a></span>
</logic:present>
<logic:notPresent name="CourseUnitView" property="programStreamId">
<bean:message key="courseunit.programfilepath.not.available"/>
</logic:notPresent>
</div>
<div class="list-group-item">
<logic:present name="CourseUnitView" property="programStreamId">
<baco:hasRole role="teacher,admin,all,services,servicesPrograms,courseValidatePrograms">
<a href="<%=request.getContextPath()%>/admin/data.jsp?id=${CourseUnitView.programStreamId}">Ver todas as versoes do programa</a>
</baco:hasRole>
</logic:present>
</div>
 
<logic:present name="CourseUnitView" property="programStreamId">
<baco:hasRole role="teacher,admin,all">
<a href="<%=request.getContextPath()%>/admin/data.jsp?id=${CourseUnitView.programStreamId}">Ver todas as versoes do programa</a>
</baco:hasRole>
</logic:present>
</baco:isAuthenticated>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<baco:isAuthenticated>
 
</p>
</baco:isAuthenticated>
<h2><bean:message key="module.Announcements"/></h2>
<logic:notEmpty name="CourseUnitView" property="announcements">
<%--<div class="listCircleWhite">
<ul>
<logic:iterate id="announcement" name="CourseUnitView" property="announcements" type="pt.estgp.estgweb.domain.views.AnnouncementView">
<li>
<h3><html:link action="/user/startLoadAnnouncementFromCourseUnit?id=${announcement.id}">${announcement.title}</html:link></h3>
<p>${announcement.formatedText}</p>
<p class="pFooterSeccao"><bean:message key="from"/>: ${announcement.owner.name} (${announcement.owner.username}) <bean:message key="at"/> ${announcement.formatedSaveDate} </p>
</li>
</logic:iterate>
</ul>
</div>--%>
<logic:iterate id="announcement" name="CourseUnitView" property="announcements" type="pt.estgp.estgweb.domain.views.AnnouncementView">
<div class="panel panel-default">
<div class="panel-heading">
<html:link action="/user/startLoadAnnouncementFromCourseUnit?id=${announcement.id}">${announcement.title}</html:link>
</div>
<div class="panel-body">
<p>${announcement.formatedText}</p>
</div>
<div class="panel-footer"><bean:message key="from"/>: ${announcement.owner.name} (${announcement.owner.username}) <bean:message key="at"/> ${announcement.formatedSaveDate} </div>
</div>
</logic:iterate>
 
 
</html:form>
</logic:notEmpty>
<logic:empty name="CourseUnitView" property="announcements">
<p><bean:message key="announcement.zero.placed"/></p>
</logic:empty>
 
 
<baco:isAuthenticated>
 
<h2><bean:message key="module.Announcements"/></h2>
<logic:notEmpty name="CourseUnitView" property="announcements">
<%--<div class="listCircleWhite">
<ul>
<logic:iterate id="announcement" name="CourseUnitView" property="announcements" type="pt.estgp.estgweb.domain.views.AnnouncementView">
<li>
<h3><html:link action="/user/startLoadAnnouncementFromCourseUnit?id=${announcement.id}">${announcement.title}</html:link></h3>
<p>${announcement.formatedText}</p>
<p class="pFooterSeccao"><bean:message key="from"/>: ${announcement.owner.name} (${announcement.owner.username}) <bean:message key="at"/> ${announcement.formatedSaveDate} </p>
</li>
</logic:iterate>
</ul>
</div>--%>
<logic:iterate id="announcement" name="CourseUnitView" property="announcements" type="pt.estgp.estgweb.domain.views.AnnouncementView">
<div class="panel panel-default">
<div class="panel-heading">
<html:link action="/user/startLoadAnnouncementFromCourseUnit?id=${announcement.id}">${announcement.title}</html:link>
</baco:isAuthenticated>
</div>
<div class="panel-body">
<p>${announcement.formatedText}</p>
</div>
<div class="panel-footer"><bean:message key="from"/>: ${announcement.owner.name} (${announcement.owner.username}) <bean:message key="at"/> ${announcement.formatedSaveDate} </div>
</div>
</logic:iterate>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
 
 
</logic:notEmpty>
<logic:empty name="CourseUnitView" property="announcements">
<p><bean:message key="announcement.zero.placed"/></p>
</logic:empty>
</td>
 
</baco:isAuthenticated>
<div class="panel panel-default">
<div class="panel-heading">
<bean:message key="courseunit.teachers"/>
</div>
<div class="panel-body">
<logic:notEmpty name="CourseUnitView" property="responsableTeacher">
<div class="list-group">
<div class="list-group-item"><bean:message key="courseunit.responsable"/></div>
<div class="list-group-item"><html:link action="${user}/startLoadTeacherCourseUnit${fromAction}?code=${CourseUnitView.responsableTeacher.code}&courseUnitView.id=${CourseUnitView.id}">${CourseUnitView.responsableTeacher.name}</html:link> <span class="badge">${CourseUnitView.responsableTeacher.code}</span></div>
<div class="list-group-item disabled"> ${CourseUnitView.responsableTeacher.safeEmail}</div>
</div>
</logic:notEmpty>
<div class="list-group">
<logic:iterate id="teacher" name="CourseUnitView" property="teachers" type="pt.estgp.estgweb.domain.views.UserView">
<div class="list-group-item"><html:link action="${user}/startLoadTeacherCourseUnit${fromAction}?code=${teacher.code}&courseUnitView.id=${CourseUnitView.id}">${teacher.name}</html:link> <span class="badge">${teacher.code}</span></div>
<div class="list-group-item disabled"> ${teacher.safeEmail}</div>
</logic:iterate>
</div>
 
</td>
<td valign="top" class="seccao">
 
<div class="seccao">
<logic:notEmpty name="CourseUnitView" property="responsableTeacher">
</div>
 
<div class="panel panel-default">
<div class="panel-heading">
<bean:message key="courseunit.responsable"/>
</div>
<div class="panel-body">
<table class="dataTable">
<tr>
<th><bean:message key="number"/></th>
<th><bean:message key="name"/></th>
<th><bean:message key="email"/></th>
</tr>
<tr>
<td>
${CourseUnitView.responsableTeacher.code}
</td>
<td>
<html:link action="${user}/startLoadTeacherCourseUnit${fromAction}?code=${CourseUnitView.responsableTeacher.code}&courseUnitView.id=${CourseUnitView.id}">${CourseUnitView.responsableTeacher.name}</html:link>
</td>
<td>
${CourseUnitView.responsableTeacher.safeEmail}
</td>
</tr>
</table>
</div>
</div>
 
 
 
</logic:notEmpty>
 
<div class="panel panel-default">
<div class="panel-heading">
<bean:message key="courseunit.teachers"/>
</div>
<div class="panel-body">
<table class="dataTable tablesorter">
<tr>
<th><bean:message key="number"/></th>
<th><bean:message key="name"/></th>
<th><bean:message key="email"/></th>
</tr>
<logic:iterate id="teacher" name="CourseUnitView" property="teachers" type="pt.estgp.estgweb.domain.views.UserView">
<tr>
<td>
${teacher.code}
</td>
<td>
<html:link action="${user}/startLoadTeacherCourseUnit${fromAction}?code=${teacher.code}&courseUnitView.id=${CourseUnitView.id}">${teacher.name}</html:link>
</td>
<td>
${teacher.safeEmail}
</td>
</tr>
</logic:iterate>
</table>
</div>
</div>
 
</div>
<div class="seccao">
<h2><bean:message key="courseunit.summaries"/></h2>
<logic:notEmpty name="CourseUnitView" property="summariesFromJson">
<baco:hasRole role="teacher">
<p><a href="<%=request.getContextPath()%>/ftpProxyStream/ionline${CourseUnitView.sumariosPathFileIntranet}">Descarregar PDF</a></p>
<logic:greaterThan value="0" name="CourseUnitView" property="lateSummaries">
<p style="background-color: yellow">Alerta.Tem <bean:write name="CourseUnitView" property="lateSummaries"/>
<logic:equal name="CourseUnitView" property="lateSummaries" value="1">Sumário</logic:equal>
<logic:greaterThan name="CourseUnitView" property="lateSummaries" value="1">Sumários</logic:greaterThan>
lançados pelos serviços que não estão preenchidos e estão abertos há mais de 48 horas. Se este for um falso alerta pedimos desculpa pelo incómodo.
<a target="_blank" href="http://netpa.ipportalegre.pt">Aceda ao NETPA para regularizar</a>
ou entre em contacto com o Sr José Luis para confirmar a situação:</a>
 
</p>
<ul>
<logic:iterate id="sumLate" name="CourseUnitView" property="lateSummariesDates">
<li>Por lançar: <bean:write name="sumLate"/></li>
</logic:iterate>
</ul>
</logic:greaterThan>
</baco:hasRole>
</logic:notEmpty>
<baco:isAuthenticated>
<div class="panel panel-default">
<div class="panel-heading">
<bean:message key="courseunit.summaries"/>
</div>
<div class="panel-body">
 
<logic:notEmpty name="CourseUnitView" property="summariesFromJson">
<baco:hasRole role="teacher">
<p><a href="<%=request.getContextPath()%>/ftpProxyStream/ionline${CourseUnitView.sumariosPathFileIntranet}">Descarregar PDF <img src="<%=request.getContextPath()%>/imgs/mime/pdf.gif"/></a></p>
<logic:greaterThan value="0" name="CourseUnitView" property="lateSummaries">
<p style="background-color: yellow">Alerta.Tem <bean:write name="CourseUnitView" property="lateSummaries"/>
<logic:equal name="CourseUnitView" property="lateSummaries" value="1">Sumário</logic:equal>
<logic:greaterThan name="CourseUnitView" property="lateSummaries" value="1">Sumários</logic:greaterThan>
lançados pelos serviços que não estão preenchidos e estão abertos há mais de 48 horas. Se este for um falso alerta pedimos desculpa pelo incómodo.
<a target="_blank" href="http://netpa.ipportalegre.pt">Aceda ao NETPA para regularizar</a>
ou entre em contacto com o Sr José Luis para confirmar a situação:</a>
 
<logic:notEmpty name="CourseUnitView" property="summariesFromJson">
<logic:iterate id="summary" name="CourseUnitView" property="summariesFromJson" type="pt.estgp.estgweb.domain.views.CourseUnitSummaryView">
<div class="blockData">
<div class="blockDataTitle">Aula ${summary.number} - ${summary.title}</div>
<div class="blockDataContent">${summary.description}</div>
<div class="blockDataFooter">${summary.date} - ${summary.horas} Horas - ${summary.students} <bean:message key="courseunit.summary.present.students"/> </div>
</p>
<ul>
<logic:iterate id="sumLate" name="CourseUnitView" property="lateSummariesDates">
<li>Por lançar: <bean:write name="sumLate"/></li>
</logic:iterate>
</ul>
</logic:greaterThan>
</baco:hasRole>
</logic:notEmpty>
 
 
<logic:notEmpty name="CourseUnitView" property="summariesFromJson">
<logic:iterate id="summary" name="CourseUnitView" property="summariesFromJson" type="pt.estgp.estgweb.domain.views.CourseUnitSummaryView">
<div class="blockData">
<div class="blockDataTitle">Aula ${summary.number} - ${summary.title}</div>
<div class="blockDataContent">${summary.description}</div>
<div class="blockDataFooter">${summary.date} - ${summary.horas} Horas - ${summary.students} <bean:message key="courseunit.summary.present.students"/> </div>
</div>
</logic:iterate>
</logic:notEmpty>
<logic:empty name="CourseUnitView" property="summariesFromJson">
<p><bean:message key="courseunit.summaries.zero.placed"/></p>
</logic:empty>
</div>
</div>
</logic:iterate>
</logic:notEmpty>
<logic:empty name="CourseUnitView" property="summariesFromJson">
<p><bean:message key="courseunit.summaries.zero.placed"/></p>
</logic:empty>
</baco:isAuthenticated>
</div>
</div>
</td>
 
</tr>
 
</table>
 
</html:form>
 
 
 
 
 
 
</div>
</div>
/impl/src/web/user/courseunits/menu.jsp
13,6 → 13,7
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %>
<%@ page import="pt.estgp.estgweb.domain.CourseUnit" %>
<%@ page import="pt.estgp.estgweb.domain.views.CourseUnitView" %>
<%@ page import="pt.estgp.estgweb.domain.UserSessionImpl" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/tlds/baco.tld" prefix="baco" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %>
21,6 → 22,11
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %>
<jsp:useBean id="CourseUnitView" type="pt.estgp.estgweb.domain.views.CourseUnitView" scope="request"/>
<%
UserSession userSession = UserSessionProxy.loadUserSessionFromRequest(request);
if(userSession == null)
request.setAttribute("UserSession",new UserSessionImpl());
%>
<jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSession" scope="request"/>
<%
 
148,7 → 154,7
 
<baco:isAuthenticated>
<%
UserSession userSession = UserSessionProxy.loadUserSessionFromRequest(request);
 
CourseUnitContentsGrants contentsGrants = CourseUnitContentsGrants.parse(CourseUnitView.getContentsGrants());
if ( contentsGrants == CourseUnitContentsGrants.PUBLIC ||
/impl/src/web/user/home/courseComission.jsp
New file
0,0 → 1,200
<%@ page import="jomm.dao.utils.HibernateUtils" %>
<%@ page import="jomm.utils.MessageResources" %>
<%@ page import="pt.estgp.estgweb.domain.CourseUnit" %>
<%@ page import="pt.estgp.estgweb.domain.dao.DaoFactory" %>
<%@ page import="pt.estgp.estgweb.domain.dao.impl.CourseUnitDaoImpl" %>
<%@ page import="java.util.List" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:useBean id="UserSession" type="pt.estgp.estgweb.domain.UserSession" scope="request"/>
<%
 
try{
HibernateUtils.getCurrentSession().beginTransaction();
String activeYear = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveYear();
List<String> activeDegrees = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveDegrees();
 
List<CourseUnitDaoImpl.CourseMissingValidationProgram> result0 = DaoFactory.getCourseUnitDaoImpl().loadMissingPrograms(UserSession);
List<CourseUnitDaoImpl.CourseMissingValidationProgram> result1 = DaoFactory.getCourseUnitDaoImpl().loadMissingProgramValidate(UserSession);
List<CourseUnitDaoImpl.CourseMissingValidationEvaluation> result2 = DaoFactory.getCourseUnitDaoImpl().loadMissingEvaluationValidate(UserSession);
List<CourseUnitDaoImpl.CourseMissingValidationEvaluation> result3 = DaoFactory.getCourseUnitDaoImpl().loadMissingEvaluation(UserSession);
if(result0.size() > 0 || result1.size() > 0 || result2.size() > 0 || result3.size()>0)
{
%>
<div class="block">
<div class="panel panel-primary">
<div class="panel-heading">Tarefas das Comissões de Curso (<%=activeYear%>)</div>
<div class="panel-body">
<p>Expanda os cursos e clique nas unidades para validar os relatórios de avaliação.</p>
<p>No final de cada relatório existe um botão de validação para os membros das comissões dos cursos respectivos.</p>
 
 
 
 
 
 
<%
if(result1.size()>0)
{
%>
 
<div class="panel-body-h1">Fichas curriculares por validar</div>
<ul>
<%
for(CourseUnitDaoImpl.CourseMissingValidationProgram mis:result1)
{
%>
<li><a href="<%=request.getContextPath()%>/user/startLoadCoursesProgramsFromHome.do?courseId=<%=mis.course.getId()%>#<%=mis.course.getId()%>"><%=mis.course.getName()%> (<%=mis.courseUnits.size()%>)</a></li>
<%
}
%>
</ul>
 
<%
}
%>
 
<%
if(result0.size()>0)
{
%>
 
<div class="panel-body-h1">Fichas curriculares por preencher</div>
<ul>
<%
for(CourseUnitDaoImpl.CourseMissingValidationProgram mis:result0)
{
%>
<li><a href="<%=request.getContextPath()%>/user/startLoadCoursesProgramsFromHome.do?courseId=<%=mis.course.getId()%>#<%=mis.course.getId()%>"><%=mis.course.getName()%> (<%=mis.courseUnits.size()%>)</a></li>
<%
}
%>
</ul>
 
<%
}
%>
 
<%
if(result2.size()>0)
{
 
%>
 
<div class="panel-body-h1">Relatórios de avaliação por validar
<%
String sep = "";
if(activeDegrees != null)
{
%>
(graus em processo de validação:
<%
for(String activeDegree: activeDegrees)
{
%>
<%=sep + MessageResources.getInstance(request).getMessage("course."+activeDegree)%>
<%
sep = ", ";
}
%>
)
<%
}
%>
</div>
 
<%
for(CourseUnitDaoImpl.CourseMissingValidationEvaluation mis:result2)
{
%>
 
<h2><a href="javascript:showOrHide('evaluationValidate<%=mis.course.getId()%>')"><%=mis.course.getName()%> / <%=mis.course.getCode()%></a> (<%=mis.courseUnits.size()%>)</h2>
<div id="evaluationValidate<%=mis.course.getId()%>" style="display: none">
<ul>
<%
for(CourseUnit cu: mis.courseUnits)
{
%>
<li><a href="<%=request.getContextPath()%>/user/startLoadCourseUnitEvaluation.do?courseUnitId=<%=cu.getId()%>"><%=cu.getName()%> / <%=cu.getCode()%></a></li>
<%
}
%>
</ul>
</div>
 
 
<%
}
%>
 
<%
 
}
%>
<%
if(result3.size()>0)
{
 
%>
 
<div class="panel-body-h1">Relatórios de avaliação ainda não preenchidos
<%
String sep = "";
if(activeDegrees != null)
{
%>
(graus em processo de validação:
<%
for(String activeDegree: activeDegrees)
{
%>
<%=sep + MessageResources.getInstance(request).getMessage("course."+activeDegree)%>
<%
sep = ",";
}
%>
)
<%
}
%>
</div>
 
<%
for(CourseUnitDaoImpl.CourseMissingValidationEvaluation mis:result3)
{
%>
 
<h2><a href="javascript:showOrHide('evaluationFill<%=mis.course.getId()%>')"><%=mis.course.getName()%> / <%=mis.course.getCode()%></a> (<%=mis.courseUnits.size()%>)</h2>
<div id="evaluationFill<%=mis.course.getId()%>" style="display: none">
<ul>
<%
for(CourseUnit cu: mis.courseUnits)
{
%>
<li><a href="<%=request.getContextPath()%>/user/startLoadCourseUnitEvaluation.do?courseUnitId=<%=cu.getId()%>"><%=cu.getName()%> / <%=cu.getCode()%></a></li>
<%
}
%>
</ul>
</div>
<%
}
%>
 
<%
 
}
%>
 
</div>
</div>
</div>
<%
}
 
HibernateUtils.getCurrentSession().getTransaction().commit();
}catch(Throwable e)
{
System.out.println(e);
e.printStackTrace();
}
%>
/impl/src/web/user/home/student.jsp
127,7 → 127,7
<ul>
<logic:iterate id="unit" name="units" type="pt.estgp.estgweb.domain.CourseUnit">
<li>
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (${unit.courseName} (${unit.courseCode}))</html:link>
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (${unit.courseName} (${unit.courseCode}) (${unit.cdTurma})</html:link>
<html:link action="/user/startLoadCourseUnitRootFromHome?courseUnitView.id=${unit.id}"><img border="0" alt="Pastas" src="<%=request.getContextPath()%>/imgs/folder.gif"></html:link>
</li>
</logic:iterate>
/impl/src/web/user/home/teacher.jsp
102,7 → 102,7
<ul>
<logic:iterate id="unit" name="units" type="pt.estgp.estgweb.domain.CourseUnit">
<li>
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (${unit.courseName} (${unit.courseCode}))</html:link>
<html:link action="/user/startLoadCourseUnitFromHome?id=${unit.id}">${unit.name} (${unit.courseName} (${unit.courseCode}) (${unit.cdTurma})</html:link>
<html:link action="/user/startLoadCourseUnitRootFromHome?courseUnitView.id=${unit.id}"><img border="0" alt="Pastas" src="<%=request.getContextPath()%>/imgs/folder.gif"></html:link>
</li>
</logic:iterate>
233,202 → 233,11
}
%>
 
<jsp:include page="courseComission.jsp"/>
 
<%
 
try{
HibernateUtils.getCurrentSession().beginTransaction();
String activeYear = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveYear();
List<String> activeDegrees = DaoFactory.getConfigurationDaoImpl().getCourseUnitEvaluationActiveDegrees();
 
List<CourseUnitDaoImpl.CourseMissingValidationProgram> result0 = DaoFactory.getCourseUnitDaoImpl().loadMissingPrograms(UserSession);
List<CourseUnitDaoImpl.CourseMissingValidationProgram> result1 = DaoFactory.getCourseUnitDaoImpl().loadMissingProgramValidate(UserSession);
List<CourseUnitDaoImpl.CourseMissingValidationEvaluation> result2 = DaoFactory.getCourseUnitDaoImpl().loadMissingEvaluationValidate(UserSession);
List<CourseUnitDaoImpl.CourseMissingValidationEvaluation> result3 = DaoFactory.getCourseUnitDaoImpl().loadMissingEvaluation(UserSession);
if(result0.size() > 0 || result1.size() > 0 || result2.size() > 0 || result3.size()>0)
{
%>
<div class="block">
<div class="panel panel-primary">
<div class="panel-heading">Tarefas das Comissões de Curso (<%=activeYear%>)</div>
<div class="panel-body">
<p>Expanda os cursos e clique nas unidades para validar os relatórios de avaliação.</p>
<p>No final de cada relatório existe um botão de validação para os membros das comissões dos cursos respectivos.</p>
 
 
 
 
 
 
<%
if(result1.size()>0)
{
%>
 
<div class="panel-body-h1">Fichas curriculares por validar</div>
<ul>
<%
for(CourseUnitDaoImpl.CourseMissingValidationProgram mis:result1)
{
%>
<li><a href="<%=request.getContextPath()%>/user/startLoadCoursesProgramsFromHome.do?courseId=<%=mis.course.getId()%>#<%=mis.course.getId()%>"><%=mis.course.getName()%> (<%=mis.courseUnits.size()%>)</a></li>
<%
}
%>
</ul>
 
<%
}
%>
 
<%
if(result0.size()>0)
{
%>
 
<div class="panel-body-h1">Fichas curriculares por preencher</div>
<ul>
<%
for(CourseUnitDaoImpl.CourseMissingValidationProgram mis:result0)
{
%>
<li><a href="<%=request.getContextPath()%>/user/startLoadCoursesProgramsFromHome.do?courseId=<%=mis.course.getId()%>#<%=mis.course.getId()%>"><%=mis.course.getName()%> (<%=mis.courseUnits.size()%>)</a></li>
<%
}
%>
</ul>
 
<%
}
%>
 
<%
if(result2.size()>0)
{
 
%>
 
<div class="panel-body-h1">Relatórios de avaliação por validar
<%
String sep = "";
if(activeDegrees != null)
{
%>
(graus em processo de validação:
<%
for(String activeDegree: activeDegrees)
{
%>
<%=sep + MessageResources.getInstance(request).getMessage("course."+activeDegree)%>
<%
sep = ", ";
}
%>
)
<%
}
%>
</div>
 
<%
for(CourseUnitDaoImpl.CourseMissingValidationEvaluation mis:result2)
{
%>
 
<h2><a href="javascript:showOrHide('evaluationValidate<%=mis.course.getId()%>')"><%=mis.course.getName()%> / <%=mis.course.getCode()%></a> (<%=mis.courseUnits.size()%>)</h2>
<div id="evaluationValidate<%=mis.course.getId()%>" style="display: none">
<ul>
<%
for(CourseUnit cu: mis.courseUnits)
{
%>
<li><a href="<%=request.getContextPath()%>/user/startLoadCourseUnitEvaluation.do?courseUnitId=<%=cu.getId()%>"><%=cu.getName()%> / <%=cu.getCode()%></a></li>
<%
}
%>
</ul>
</div>
 
 
<%
}
%>
 
<%
 
}
%>
<%
if(result3.size()>0)
{
 
%>
 
<div class="panel-body-h1">Relatórios de avaliação ainda não preenchidos
<%
String sep = "";
if(activeDegrees != null)
{
%>
(graus em processo de validação:
<%
for(String activeDegree: activeDegrees)
{
%>
<%=sep + MessageResources.getInstance(request).getMessage("course."+activeDegree)%>
<%
sep = ",";
}
%>
)
<%
}
%>
</div>
 
<%
for(CourseUnitDaoImpl.CourseMissingValidationEvaluation mis:result3)
{
%>
 
<h2><a href="javascript:showOrHide('evaluationFill<%=mis.course.getId()%>')"><%=mis.course.getName()%> / <%=mis.course.getCode()%></a> (<%=mis.courseUnits.size()%>)</h2>
<div id="evaluationFill<%=mis.course.getId()%>" style="display: none">
<ul>
<%
for(CourseUnit cu: mis.courseUnits)
{
%>
<li><a href="<%=request.getContextPath()%>/user/startLoadCourseUnitEvaluation.do?courseUnitId=<%=cu.getId()%>"><%=cu.getName()%> / <%=cu.getCode()%></a></li>
<%
}
%>
</ul>
</div>
<%
}
%>
 
<%
 
}
%>
 
</div>
</div>
</div>
<%
}
 
HibernateUtils.getCurrentSession().getTransaction().commit();
}catch(Throwable e)
{
System.out.println(e);
e.printStackTrace();
}
%>
 
 
 
</td>
</tr>
</tbody>
/impl/src/web/user/home/user.jsp
77,7 → 77,7
</baco:hasRole>
<div class="block">
<div class="panel panel-primary">
<div class="panel-heading">Atalhas</div>
<div class="panel-heading">Atalhos</div>
<div class="panel-body">
<ul>
<li>
130,6 → 130,7
</div>
</div>
</div>
<jsp:include page="courseComission.jsp"/>
</td>
</tbody>
</table>
/impl/gen/java/pt/ipportalegre/siges/web/services/GetTurmasAuxResponse.java
New file
0,0 → 1,62
 
package pt.ipportalegre.siges.web.services;
 
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="getTurmasAuxResult" type="{http://www.ipportalegre.pt/siges/web/services}ArrayOfTurma" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"getTurmasAuxResult"
})
@XmlRootElement(name = "getTurmasAuxResponse")
public class GetTurmasAuxResponse {
 
protected ArrayOfTurma getTurmasAuxResult;
 
/**
* Gets the value of the getTurmasAuxResult property.
*
* @return
* possible object is
* {@link ArrayOfTurma }
*
*/
public ArrayOfTurma getGetTurmasAuxResult() {
return getTurmasAuxResult;
}
 
/**
* Sets the value of the getTurmasAuxResult property.
*
* @param value
* allowed object is
* {@link ArrayOfTurma }
*
*/
public void setGetTurmasAuxResult(ArrayOfTurma value) {
this.getTurmasAuxResult = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/Disciplina.java
27,6 → 27,7
* &lt;element name="nome" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="nomeCurso" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="grauCurso" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="cdTipoDisciplina" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
45,7 → 46,8
"cdTurma",
"nome",
"nomeCurso",
"grauCurso"
"grauCurso",
"cdTipoDisciplina"
})
public class Disciplina {
 
61,6 → 63,8
protected String nome;
protected String nomeCurso;
protected String grauCurso;
@XmlElement(required = true)
protected BigDecimal cdTipoDisciplina;
 
/**
* Gets the value of the codigo property.
278,4 → 282,28
this.grauCurso = value;
}
 
/**
* Gets the value of the cdTipoDisciplina property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCdTipoDisciplina() {
return cdTipoDisciplina;
}
 
/**
* Sets the value of the cdTipoDisciplina property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCdTipoDisciplina(BigDecimal value) {
this.cdTipoDisciplina = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/SiGesWEBSoap.java
309,4 → 309,97
@WebParam(name = "secret", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
String secret);
 
/**
*
* @param codigoInstituicao
* @param cdDuracao
* @param cdLectivo
* @return
* returns pt.ipportalegre.siges.web.services.ArrayOfTurmaCurso
*/
@WebMethod(action = "http://www.ipportalegre.pt/siges/web/services/loadParesTurmaCurso")
@WebResult(name = "loadParesTurmaCursoResult", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
@RequestWrapper(localName = "loadParesTurmaCurso", targetNamespace = "http://www.ipportalegre.pt/siges/web/services", className = "pt.ipportalegre.siges.web.services.LoadParesTurmaCurso")
@ResponseWrapper(localName = "loadParesTurmaCursoResponse", targetNamespace = "http://www.ipportalegre.pt/siges/web/services", className = "pt.ipportalegre.siges.web.services.LoadParesTurmaCursoResponse")
public ArrayOfTurmaCurso loadParesTurmaCurso(
@WebParam(name = "codigoInstituicao", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
BigDecimal codigoInstituicao,
@WebParam(name = "cdLectivo", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
String cdLectivo,
@WebParam(name = "cdDuracao", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
String cdDuracao);
 
/**
*
* @param codigoDiscip
* @return
* returns pt.ipportalegre.siges.web.services.ArrayOfDisciplina
*/
@WebMethod(action = "http://www.ipportalegre.pt/siges/web/services/getDisciplinasDaInstituicaoSemestreDiscipAux")
@WebResult(name = "getDisciplinasDaInstituicaoSemestreDiscipAuxResult", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
@RequestWrapper(localName = "getDisciplinasDaInstituicaoSemestreDiscipAux", targetNamespace = "http://www.ipportalegre.pt/siges/web/services", className = "pt.ipportalegre.siges.web.services.GetDisciplinasDaInstituicaoSemestreDiscipAux")
@ResponseWrapper(localName = "getDisciplinasDaInstituicaoSemestreDiscipAuxResponse", targetNamespace = "http://www.ipportalegre.pt/siges/web/services", className = "pt.ipportalegre.siges.web.services.GetDisciplinasDaInstituicaoSemestreDiscipAuxResponse")
public ArrayOfDisciplina getDisciplinasDaInstituicaoSemestreDiscipAux(
@WebParam(name = "codigoDiscip", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
String codigoDiscip);
 
/**
*
* @param cdAluno
* @return
* returns pt.ipportalegre.siges.web.services.ArrayOfInscricao
*/
@WebMethod(action = "http://www.ipportalegre.pt/siges/web/services/getInscricoesAux")
@WebResult(name = "getInscricoesAuxResult", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
@RequestWrapper(localName = "getInscricoesAux", targetNamespace = "http://www.ipportalegre.pt/siges/web/services", className = "pt.ipportalegre.siges.web.services.GetInscricoesAux")
@ResponseWrapper(localName = "getInscricoesAuxResponse", targetNamespace = "http://www.ipportalegre.pt/siges/web/services", className = "pt.ipportalegre.siges.web.services.GetInscricoesAuxResponse")
public ArrayOfInscricao getInscricoesAux(
@WebParam(name = "cdAluno", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
String cdAluno);
 
/**
*
* @param cdLectivo
* @param cdDiscip
* @return
* returns pt.ipportalegre.siges.web.services.ArrayOfInscricao
*/
@WebMethod(action = "http://www.ipportalegre.pt/siges/web/services/getInscricoesDisciplinaAux")
@WebResult(name = "getInscricoesDisciplinaAuxResult", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
@RequestWrapper(localName = "getInscricoesDisciplinaAux", targetNamespace = "http://www.ipportalegre.pt/siges/web/services", className = "pt.ipportalegre.siges.web.services.GetInscricoesDisciplinaAux")
@ResponseWrapper(localName = "getInscricoesDisciplinaAuxResponse", targetNamespace = "http://www.ipportalegre.pt/siges/web/services", className = "pt.ipportalegre.siges.web.services.GetInscricoesDisciplinaAuxResponse")
public ArrayOfInscricao getInscricoesDisciplinaAux(
@WebParam(name = "cdDiscip", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
String cdDiscip,
@WebParam(name = "cdLectivo", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
String cdLectivo);
 
/**
*
* @param cdTurma
* @return
* returns pt.ipportalegre.siges.web.services.ArrayOfTurma
*/
@WebMethod(action = "http://www.ipportalegre.pt/siges/web/services/getTurmasAux")
@WebResult(name = "getTurmasAuxResult", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
@RequestWrapper(localName = "getTurmasAux", targetNamespace = "http://www.ipportalegre.pt/siges/web/services", className = "pt.ipportalegre.siges.web.services.GetTurmasAux")
@ResponseWrapper(localName = "getTurmasAuxResponse", targetNamespace = "http://www.ipportalegre.pt/siges/web/services", className = "pt.ipportalegre.siges.web.services.GetTurmasAuxResponse")
public ArrayOfTurma getTurmasAux(
@WebParam(name = "cdTurma", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
String cdTurma);
 
/**
*
* @param cdCurso
* @return
* returns pt.ipportalegre.siges.web.services.ArrayOfTurma
*/
@WebMethod(action = "http://www.ipportalegre.pt/siges/web/services/getTurmasCursoAux")
@WebResult(name = "getTurmasCursoAuxResult", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
@RequestWrapper(localName = "getTurmasCursoAux", targetNamespace = "http://www.ipportalegre.pt/siges/web/services", className = "pt.ipportalegre.siges.web.services.GetTurmasCursoAux")
@ResponseWrapper(localName = "getTurmasCursoAuxResponse", targetNamespace = "http://www.ipportalegre.pt/siges/web/services", className = "pt.ipportalegre.siges.web.services.GetTurmasCursoAuxResponse")
public ArrayOfTurma getTurmasCursoAux(
@WebParam(name = "cdCurso", targetNamespace = "http://www.ipportalegre.pt/siges/web/services")
String cdCurso);
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/ObjectFactory.java
30,35 → 30,35
}
 
/**
* Create an instance of {@link ArrayOfNota }
* Create an instance of {@link GetDisciplinasDaInstituicaoSemestreDiscipAux }
*
*/
public ArrayOfNota createArrayOfNota() {
return new ArrayOfNota();
public GetDisciplinasDaInstituicaoSemestreDiscipAux createGetDisciplinasDaInstituicaoSemestreDiscipAux() {
return new GetDisciplinasDaInstituicaoSemestreDiscipAux();
}
 
/**
* Create an instance of {@link Aluno }
* Create an instance of {@link GetAlunoInscritoResponse }
*
*/
public Aluno createAluno() {
return new Aluno();
public GetAlunoInscritoResponse createGetAlunoInscritoResponse() {
return new GetAlunoInscritoResponse();
}
 
/**
* Create an instance of {@link SendSmsSeparatedWithComma }
* Create an instance of {@link GetCodigosDisciplinasDaInstituicaoResponse }
*
*/
public SendSmsSeparatedWithComma createSendSmsSeparatedWithComma() {
return new SendSmsSeparatedWithComma();
public GetCodigosDisciplinasDaInstituicaoResponse createGetCodigosDisciplinasDaInstituicaoResponse() {
return new GetCodigosDisciplinasDaInstituicaoResponse();
}
 
/**
* Create an instance of {@link Aula }
* Create an instance of {@link GetAulasResponse }
*
*/
public Aula createAula() {
return new Aula();
public GetAulasResponse createGetAulasResponse() {
return new GetAulasResponse();
}
 
/**
70,254 → 70,270
}
 
/**
* Create an instance of {@link GetDocente }
* Create an instance of {@link GetAlunoInscrito }
*
*/
public GetDocente createGetDocente() {
return new GetDocente();
public GetAlunoInscrito createGetAlunoInscrito() {
return new GetAlunoInscrito();
}
 
/**
* Create an instance of {@link AddAlunoLdapResponse }
* Create an instance of {@link Inscricao }
*
*/
public AddAlunoLdapResponse createAddAlunoLdapResponse() {
return new AddAlunoLdapResponse();
public Inscricao createInscricao() {
return new Inscricao();
}
 
/**
* Create an instance of {@link SendSmsSeparatedWithCommaResponse }
* Create an instance of {@link SendSmsSResponse }
*
*/
public SendSmsSeparatedWithCommaResponse createSendSmsSeparatedWithCommaResponse() {
return new SendSmsSeparatedWithCommaResponse();
public SendSmsSResponse createSendSmsSResponse() {
return new SendSmsSResponse();
}
 
/**
* Create an instance of {@link GetCodigosDisciplinasDaInstituicaoSemestre }
* Create an instance of {@link GetTurmasCursoAux }
*
*/
public GetCodigosDisciplinasDaInstituicaoSemestre createGetCodigosDisciplinasDaInstituicaoSemestre() {
return new GetCodigosDisciplinasDaInstituicaoSemestre();
public GetTurmasCursoAux createGetTurmasCursoAux() {
return new GetTurmasCursoAux();
}
 
/**
* Create an instance of {@link Docente }
* Create an instance of {@link GetCodigosAlunosInscritosDaInstituicao }
*
*/
public Docente createDocente() {
return new Docente();
public GetCodigosAlunosInscritosDaInstituicao createGetCodigosAlunosInscritosDaInstituicao() {
return new GetCodigosAlunosInscritosDaInstituicao();
}
 
/**
* Create an instance of {@link GetAulas }
* Create an instance of {@link ArrayOfAula }
*
*/
public GetAulas createGetAulas() {
return new GetAulas();
public ArrayOfAula createArrayOfAula() {
return new ArrayOfAula();
}
 
/**
* Create an instance of {@link SendSms }
* Create an instance of {@link AddAlunoLdap }
*
*/
public SendSms createSendSms() {
return new SendSms();
public AddAlunoLdap createAddAlunoLdap() {
return new AddAlunoLdap();
}
 
/**
* Create an instance of {@link GetCodigosDisciplinasDaInstituicao }
* Create an instance of {@link GetSumarios }
*
*/
public GetCodigosDisciplinasDaInstituicao createGetCodigosDisciplinasDaInstituicao() {
return new GetCodigosDisciplinasDaInstituicao();
public GetSumarios createGetSumarios() {
return new GetSumarios();
}
 
/**
* Create an instance of {@link GetDisciplinasDaInstituicaoSemestre }
* Create an instance of {@link GetInscricoesDisciplinaAuxResponse }
*
*/
public GetDisciplinasDaInstituicaoSemestre createGetDisciplinasDaInstituicaoSemestre() {
return new GetDisciplinasDaInstituicaoSemestre();
public GetInscricoesDisciplinaAuxResponse createGetInscricoesDisciplinaAuxResponse() {
return new GetInscricoesDisciplinaAuxResponse();
}
 
/**
* Create an instance of {@link GetCodigosAlunosInscritosDaInstituicaoResponse }
* Create an instance of {@link ArrayOfAlunoHistorico }
*
*/
public GetCodigosAlunosInscritosDaInstituicaoResponse createGetCodigosAlunosInscritosDaInstituicaoResponse() {
return new GetCodigosAlunosInscritosDaInstituicaoResponse();
public ArrayOfAlunoHistorico createArrayOfAlunoHistorico() {
return new ArrayOfAlunoHistorico();
}
 
/**
* Create an instance of {@link GetAlunoInscrito }
* Create an instance of {@link GetCodigosDocentesInscritosDaInstituicaoResponse }
*
*/
public GetAlunoInscrito createGetAlunoInscrito() {
return new GetAlunoInscrito();
public GetCodigosDocentesInscritosDaInstituicaoResponse createGetCodigosDocentesInscritosDaInstituicaoResponse() {
return new GetCodigosDocentesInscritosDaInstituicaoResponse();
}
 
/**
* Create an instance of {@link ArrayOfAlunoHistorico }
* Create an instance of {@link GetDisciplinasDaInstituicaoSemestreDiscipAuxResponse }
*
*/
public ArrayOfAlunoHistorico createArrayOfAlunoHistorico() {
return new ArrayOfAlunoHistorico();
public GetDisciplinasDaInstituicaoSemestreDiscipAuxResponse createGetDisciplinasDaInstituicaoSemestreDiscipAuxResponse() {
return new GetDisciplinasDaInstituicaoSemestreDiscipAuxResponse();
}
 
/**
* Create an instance of {@link GetDisciplinasDaInstituicaoResponse }
* Create an instance of {@link GetDocente }
*
*/
public GetDisciplinasDaInstituicaoResponse createGetDisciplinasDaInstituicaoResponse() {
return new GetDisciplinasDaInstituicaoResponse();
public GetDocente createGetDocente() {
return new GetDocente();
}
 
/**
* Create an instance of {@link SendSmsSResponse }
* Create an instance of {@link GetTurmasCursoAuxResponse }
*
*/
public SendSmsSResponse createSendSmsSResponse() {
return new SendSmsSResponse();
public GetTurmasCursoAuxResponse createGetTurmasCursoAuxResponse() {
return new GetTurmasCursoAuxResponse();
}
 
/**
* Create an instance of {@link AddAlunoLdap }
* Create an instance of {@link ArrayOfNota }
*
*/
public AddAlunoLdap createAddAlunoLdap() {
return new AddAlunoLdap();
public ArrayOfNota createArrayOfNota() {
return new ArrayOfNota();
}
 
/**
* Create an instance of {@link GetSumarios }
* Create an instance of {@link GetCodigosDisciplinasDaInstituicao }
*
*/
public GetSumarios createGetSumarios() {
return new GetSumarios();
public GetCodigosDisciplinasDaInstituicao createGetCodigosDisciplinasDaInstituicao() {
return new GetCodigosDisciplinasDaInstituicao();
}
 
/**
* Create an instance of {@link GetAulasResponse }
* Create an instance of {@link SendSmsResponse }
*
*/
public GetAulasResponse createGetAulasResponse() {
return new GetAulasResponse();
public SendSmsResponse createSendSmsResponse() {
return new SendSmsResponse();
}
 
/**
* Create an instance of {@link GetCodigosDocentesInscritosDaInstituicaoResponse }
* Create an instance of {@link Disciplina }
*
*/
public GetCodigosDocentesInscritosDaInstituicaoResponse createGetCodigosDocentesInscritosDaInstituicaoResponse() {
return new GetCodigosDocentesInscritosDaInstituicaoResponse();
public Disciplina createDisciplina() {
return new Disciplina();
}
 
/**
* Create an instance of {@link GetCodigosDisciplinasDaInstituicaoResponse }
* Create an instance of {@link LoadParesTurmaCursoResponse }
*
*/
public GetCodigosDisciplinasDaInstituicaoResponse createGetCodigosDisciplinasDaInstituicaoResponse() {
return new GetCodigosDisciplinasDaInstituicaoResponse();
public LoadParesTurmaCursoResponse createLoadParesTurmaCursoResponse() {
return new LoadParesTurmaCursoResponse();
}
 
/**
* Create an instance of {@link GetNotasResponse }
* Create an instance of {@link GetAulas }
*
*/
public GetNotasResponse createGetNotasResponse() {
return new GetNotasResponse();
public GetAulas createGetAulas() {
return new GetAulas();
}
 
/**
* Create an instance of {@link ArrayOfDecimal }
* Create an instance of {@link GetCodigosDisciplinasDaInstituicaoSemestre }
*
*/
public ArrayOfDecimal createArrayOfDecimal() {
return new ArrayOfDecimal();
public GetCodigosDisciplinasDaInstituicaoSemestre createGetCodigosDisciplinasDaInstituicaoSemestre() {
return new GetCodigosDisciplinasDaInstituicaoSemestre();
}
 
/**
* Create an instance of {@link GetAlunoInscritoResponse }
* Create an instance of {@link ArrayOfTurma }
*
*/
public GetAlunoInscritoResponse createGetAlunoInscritoResponse() {
return new GetAlunoInscritoResponse();
public ArrayOfTurma createArrayOfTurma() {
return new ArrayOfTurma();
}
 
/**
* Create an instance of {@link GetCodigosDisciplinasDaInstituicaoSemestreResponse }
* Create an instance of {@link GetInscricoesAuxResponse }
*
*/
public GetCodigosDisciplinasDaInstituicaoSemestreResponse createGetCodigosDisciplinasDaInstituicaoSemestreResponse() {
return new GetCodigosDisciplinasDaInstituicaoSemestreResponse();
public GetInscricoesAuxResponse createGetInscricoesAuxResponse() {
return new GetInscricoesAuxResponse();
}
 
/**
* Create an instance of {@link GetDocenteResponse }
* Create an instance of {@link GetDisciplinasDaInstituicaoResponse }
*
*/
public GetDocenteResponse createGetDocenteResponse() {
return new GetDocenteResponse();
public GetDisciplinasDaInstituicaoResponse createGetDisciplinasDaInstituicaoResponse() {
return new GetDisciplinasDaInstituicaoResponse();
}
 
/**
* Create an instance of {@link GetCodigosAlunosInscritosDaInstituicao }
* Create an instance of {@link GetInscricoesAux }
*
*/
public GetCodigosAlunosInscritosDaInstituicao createGetCodigosAlunosInscritosDaInstituicao() {
return new GetCodigosAlunosInscritosDaInstituicao();
public GetInscricoesAux createGetInscricoesAux() {
return new GetInscricoesAux();
}
 
/**
* Create an instance of {@link SendSmsS }
* Create an instance of {@link GetTurmasAux }
*
*/
public SendSmsS createSendSmsS() {
return new SendSmsS();
public GetTurmasAux createGetTurmasAux() {
return new GetTurmasAux();
}
 
/**
* Create an instance of {@link ArrayOfAula }
* Create an instance of {@link GetDisciplinasDaInstituicaoSemestreResponse }
*
*/
public ArrayOfAula createArrayOfAula() {
return new ArrayOfAula();
public GetDisciplinasDaInstituicaoSemestreResponse createGetDisciplinasDaInstituicaoSemestreResponse() {
return new GetDisciplinasDaInstituicaoSemestreResponse();
}
 
/**
* Create an instance of {@link Disciplina }
* Create an instance of {@link ArrayOfTurmaCurso }
*
*/
public Disciplina createDisciplina() {
return new Disciplina();
public ArrayOfTurmaCurso createArrayOfTurmaCurso() {
return new ArrayOfTurmaCurso();
}
 
/**
* Create an instance of {@link AlunoHistorico }
* Create an instance of {@link GetCodigosDisciplinasDaInstituicaoSemestreResponse }
*
*/
public AlunoHistorico createAlunoHistorico() {
return new AlunoHistorico();
public GetCodigosDisciplinasDaInstituicaoSemestreResponse createGetCodigosDisciplinasDaInstituicaoSemestreResponse() {
return new GetCodigosDisciplinasDaInstituicaoSemestreResponse();
}
 
/**
* Create an instance of {@link Nota }
* Create an instance of {@link Aula }
*
*/
public Nota createNota() {
return new Nota();
public Aula createAula() {
return new Aula();
}
 
/**
* Create an instance of {@link GetDisciplinasDaInstituicaoSemestreResponse }
* Create an instance of {@link Docente }
*
*/
public GetDisciplinasDaInstituicaoSemestreResponse createGetDisciplinasDaInstituicaoSemestreResponse() {
return new GetDisciplinasDaInstituicaoSemestreResponse();
public Docente createDocente() {
return new Docente();
}
 
/**
* Create an instance of {@link SendSmsSeparatedWithCommaResponse }
*
*/
public SendSmsSeparatedWithCommaResponse createSendSmsSeparatedWithCommaResponse() {
return new SendSmsSeparatedWithCommaResponse();
}
 
/**
* Create an instance of {@link ArrayOfDisciplina }
*
*/
public ArrayOfDisciplina createArrayOfDisciplina() {
return new ArrayOfDisciplina();
}
 
/**
* Create an instance of {@link GetDisciplinasDaInstituicao }
*
*/
326,30 → 342,62
}
 
/**
* Create an instance of {@link SendSmsResponse }
* Create an instance of {@link TurmaCurso }
*
*/
public SendSmsResponse createSendSmsResponse() {
return new SendSmsResponse();
public TurmaCurso createTurmaCurso() {
return new TurmaCurso();
}
 
/**
* Create an instance of {@link GetCodigosDocentesInscritosDaInstituicao }
* Create an instance of {@link GetDisciplinasDaInstituicaoSemestre }
*
*/
public GetCodigosDocentesInscritosDaInstituicao createGetCodigosDocentesInscritosDaInstituicao() {
return new GetCodigosDocentesInscritosDaInstituicao();
public GetDisciplinasDaInstituicaoSemestre createGetDisciplinasDaInstituicaoSemestre() {
return new GetDisciplinasDaInstituicaoSemestre();
}
 
/**
* Create an instance of {@link ArrayOfDisciplina }
* Create an instance of {@link GetDocenteResponse }
*
*/
public ArrayOfDisciplina createArrayOfDisciplina() {
return new ArrayOfDisciplina();
public GetDocenteResponse createGetDocenteResponse() {
return new GetDocenteResponse();
}
 
/**
* Create an instance of {@link GetNotasResponse }
*
*/
public GetNotasResponse createGetNotasResponse() {
return new GetNotasResponse();
}
 
/**
* Create an instance of {@link AlunoHistorico }
*
*/
public AlunoHistorico createAlunoHistorico() {
return new AlunoHistorico();
}
 
/**
* Create an instance of {@link ArrayOfInscricao }
*
*/
public ArrayOfInscricao createArrayOfInscricao() {
return new ArrayOfInscricao();
}
 
/**
* Create an instance of {@link Nota }
*
*/
public Nota createNota() {
return new Nota();
}
 
/**
* Create an instance of {@link ArrayOfString }
*
*/
358,6 → 406,22
}
 
/**
* Create an instance of {@link GetCodigosDocentesInscritosDaInstituicao }
*
*/
public GetCodigosDocentesInscritosDaInstituicao createGetCodigosDocentesInscritosDaInstituicao() {
return new GetCodigosDocentesInscritosDaInstituicao();
}
 
/**
* Create an instance of {@link Turma }
*
*/
public Turma createTurma() {
return new Turma();
}
 
/**
* Create an instance of {@link GetSumariosResponse }
*
*/
365,4 → 429,84
return new GetSumariosResponse();
}
 
/**
* Create an instance of {@link LoadParesTurmaCurso }
*
*/
public LoadParesTurmaCurso createLoadParesTurmaCurso() {
return new LoadParesTurmaCurso();
}
 
/**
* Create an instance of {@link Aluno }
*
*/
public Aluno createAluno() {
return new Aluno();
}
 
/**
* Create an instance of {@link GetCodigosAlunosInscritosDaInstituicaoResponse }
*
*/
public GetCodigosAlunosInscritosDaInstituicaoResponse createGetCodigosAlunosInscritosDaInstituicaoResponse() {
return new GetCodigosAlunosInscritosDaInstituicaoResponse();
}
 
/**
* Create an instance of {@link AddAlunoLdapResponse }
*
*/
public AddAlunoLdapResponse createAddAlunoLdapResponse() {
return new AddAlunoLdapResponse();
}
 
/**
* Create an instance of {@link ArrayOfDecimal }
*
*/
public ArrayOfDecimal createArrayOfDecimal() {
return new ArrayOfDecimal();
}
 
/**
* Create an instance of {@link GetTurmasAuxResponse }
*
*/
public GetTurmasAuxResponse createGetTurmasAuxResponse() {
return new GetTurmasAuxResponse();
}
 
/**
* Create an instance of {@link GetInscricoesDisciplinaAux }
*
*/
public GetInscricoesDisciplinaAux createGetInscricoesDisciplinaAux() {
return new GetInscricoesDisciplinaAux();
}
 
/**
* Create an instance of {@link SendSmsS }
*
*/
public SendSmsS createSendSmsS() {
return new SendSmsS();
}
 
/**
* Create an instance of {@link SendSms }
*
*/
public SendSms createSendSms() {
return new SendSms();
}
 
/**
* Create an instance of {@link SendSmsSeparatedWithComma }
*
*/
public SendSmsSeparatedWithComma createSendSmsSeparatedWithComma() {
return new SendSmsSeparatedWithComma();
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/LoadParesTurmaCurso.java
New file
0,0 → 1,119
 
package pt.ipportalegre.siges.web.services;
 
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.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="codigoInstituicao" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="cdLectivo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="cdDuracao" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"codigoInstituicao",
"cdLectivo",
"cdDuracao"
})
@XmlRootElement(name = "loadParesTurmaCurso")
public class LoadParesTurmaCurso {
 
@XmlElement(required = true)
protected BigDecimal codigoInstituicao;
protected String cdLectivo;
protected String cdDuracao;
 
/**
* Gets the value of the codigoInstituicao property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCodigoInstituicao() {
return codigoInstituicao;
}
 
/**
* Sets the value of the codigoInstituicao property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCodigoInstituicao(BigDecimal value) {
this.codigoInstituicao = value;
}
 
/**
* Gets the value of the cdLectivo property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCdLectivo() {
return cdLectivo;
}
 
/**
* Sets the value of the cdLectivo property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCdLectivo(String value) {
this.cdLectivo = value;
}
 
/**
* Gets the value of the cdDuracao property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCdDuracao() {
return cdDuracao;
}
 
/**
* Sets the value of the cdDuracao property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCdDuracao(String value) {
this.cdDuracao = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/TurmaCurso.java
New file
0,0 → 1,144
 
package pt.ipportalegre.siges.web.services;
 
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 TurmaCurso complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="TurmaCurso">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="cdLectivo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="cdDuracao" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="codigoCurso" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="cdTurma" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TurmaCurso", propOrder = {
"cdLectivo",
"cdDuracao",
"codigoCurso",
"cdTurma"
})
public class TurmaCurso {
 
protected String cdLectivo;
protected String cdDuracao;
@XmlElement(required = true)
protected BigDecimal codigoCurso;
protected String cdTurma;
 
/**
* Gets the value of the cdLectivo property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCdLectivo() {
return cdLectivo;
}
 
/**
* Sets the value of the cdLectivo property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCdLectivo(String value) {
this.cdLectivo = value;
}
 
/**
* Gets the value of the cdDuracao property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCdDuracao() {
return cdDuracao;
}
 
/**
* Sets the value of the cdDuracao property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCdDuracao(String value) {
this.cdDuracao = value;
}
 
/**
* Gets the value of the codigoCurso property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCodigoCurso() {
return codigoCurso;
}
 
/**
* Sets the value of the codigoCurso property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCodigoCurso(BigDecimal value) {
this.codigoCurso = value;
}
 
/**
* Gets the value of the cdTurma property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCdTurma() {
return cdTurma;
}
 
/**
* Sets the value of the cdTurma property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCdTurma(String value) {
this.cdTurma = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/Inscricao.java
New file
0,0 → 1,399
 
package pt.ipportalegre.siges.web.services;
 
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 Inscricao complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Inscricao">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="CD_LECTIVO" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CD_CURSO" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="CD_ALUNO" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="CD_DISCIP" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="CD_DURACAO" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CD_STATUS" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="CD_CUR_DIS" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="CD_TIP_INS" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="CD_TIPDIS" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="CD_TIPO_ORIGEM" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CD_TURMA_T" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CD_TURMA_P" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="CD_TURMA_L" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Inscricao", propOrder = {
"cdlectivo",
"cdcurso",
"cdaluno",
"cddiscip",
"cdduracao",
"cdstatus",
"cdcurdis",
"cdtipins",
"cdtipdis",
"cdtipoorigem",
"cdturmat",
"cdturmap",
"cdturmal"
})
public class Inscricao {
 
@XmlElement(name = "CD_LECTIVO")
protected String cdlectivo;
@XmlElement(name = "CD_CURSO", required = true)
protected BigDecimal cdcurso;
@XmlElement(name = "CD_ALUNO", required = true)
protected BigDecimal cdaluno;
@XmlElement(name = "CD_DISCIP", required = true)
protected BigDecimal cddiscip;
@XmlElement(name = "CD_DURACAO")
protected String cdduracao;
@XmlElement(name = "CD_STATUS", required = true)
protected BigDecimal cdstatus;
@XmlElement(name = "CD_CUR_DIS", required = true)
protected BigDecimal cdcurdis;
@XmlElement(name = "CD_TIP_INS", required = true)
protected BigDecimal cdtipins;
@XmlElement(name = "CD_TIPDIS", required = true)
protected BigDecimal cdtipdis;
@XmlElement(name = "CD_TIPO_ORIGEM")
protected String cdtipoorigem;
@XmlElement(name = "CD_TURMA_T")
protected String cdturmat;
@XmlElement(name = "CD_TURMA_P")
protected String cdturmap;
@XmlElement(name = "CD_TURMA_L")
protected String cdturmal;
 
/**
* Gets the value of the cdlectivo property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCDLECTIVO() {
return cdlectivo;
}
 
/**
* Sets the value of the cdlectivo property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCDLECTIVO(String value) {
this.cdlectivo = value;
}
 
/**
* Gets the value of the cdcurso property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCDCURSO() {
return cdcurso;
}
 
/**
* Sets the value of the cdcurso property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCDCURSO(BigDecimal value) {
this.cdcurso = value;
}
 
/**
* Gets the value of the cdaluno property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCDALUNO() {
return cdaluno;
}
 
/**
* Sets the value of the cdaluno property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCDALUNO(BigDecimal value) {
this.cdaluno = value;
}
 
/**
* Gets the value of the cddiscip property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCDDISCIP() {
return cddiscip;
}
 
/**
* Sets the value of the cddiscip property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCDDISCIP(BigDecimal value) {
this.cddiscip = value;
}
 
/**
* Gets the value of the cdduracao property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCDDURACAO() {
return cdduracao;
}
 
/**
* Sets the value of the cdduracao property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCDDURACAO(String value) {
this.cdduracao = value;
}
 
/**
* Gets the value of the cdstatus property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCDSTATUS() {
return cdstatus;
}
 
/**
* Sets the value of the cdstatus property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCDSTATUS(BigDecimal value) {
this.cdstatus = value;
}
 
/**
* Gets the value of the cdcurdis property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCDCURDIS() {
return cdcurdis;
}
 
/**
* Sets the value of the cdcurdis property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCDCURDIS(BigDecimal value) {
this.cdcurdis = value;
}
 
/**
* Gets the value of the cdtipins property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCDTIPINS() {
return cdtipins;
}
 
/**
* Sets the value of the cdtipins property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCDTIPINS(BigDecimal value) {
this.cdtipins = value;
}
 
/**
* Gets the value of the cdtipdis property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCDTIPDIS() {
return cdtipdis;
}
 
/**
* Sets the value of the cdtipdis property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCDTIPDIS(BigDecimal value) {
this.cdtipdis = value;
}
 
/**
* Gets the value of the cdtipoorigem property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCDTIPOORIGEM() {
return cdtipoorigem;
}
 
/**
* Sets the value of the cdtipoorigem property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCDTIPOORIGEM(String value) {
this.cdtipoorigem = value;
}
 
/**
* Gets the value of the cdturmat property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCDTURMAT() {
return cdturmat;
}
 
/**
* Sets the value of the cdturmat property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCDTURMAT(String value) {
this.cdturmat = value;
}
 
/**
* Gets the value of the cdturmap property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCDTURMAP() {
return cdturmap;
}
 
/**
* Sets the value of the cdturmap property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCDTURMAP(String value) {
this.cdturmap = value;
}
 
/**
* Gets the value of the cdturmal property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCDTURMAL() {
return cdturmal;
}
 
/**
* Sets the value of the cdturmal property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCDTURMAL(String value) {
this.cdturmal = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/LoadParesTurmaCursoResponse.java
New file
0,0 → 1,62
 
package pt.ipportalegre.siges.web.services;
 
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="loadParesTurmaCursoResult" type="{http://www.ipportalegre.pt/siges/web/services}ArrayOfTurmaCurso" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"loadParesTurmaCursoResult"
})
@XmlRootElement(name = "loadParesTurmaCursoResponse")
public class LoadParesTurmaCursoResponse {
 
protected ArrayOfTurmaCurso loadParesTurmaCursoResult;
 
/**
* Gets the value of the loadParesTurmaCursoResult property.
*
* @return
* possible object is
* {@link ArrayOfTurmaCurso }
*
*/
public ArrayOfTurmaCurso getLoadParesTurmaCursoResult() {
return loadParesTurmaCursoResult;
}
 
/**
* Sets the value of the loadParesTurmaCursoResult property.
*
* @param value
* allowed object is
* {@link ArrayOfTurmaCurso }
*
*/
public void setLoadParesTurmaCursoResult(ArrayOfTurmaCurso value) {
this.loadParesTurmaCursoResult = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/GetInscricoesDisciplinaAux.java
New file
0,0 → 1,89
 
package pt.ipportalegre.siges.web.services;
 
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="cdDiscip" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="cdLectivo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"cdDiscip",
"cdLectivo"
})
@XmlRootElement(name = "getInscricoesDisciplinaAux")
public class GetInscricoesDisciplinaAux {
 
protected String cdDiscip;
protected String cdLectivo;
 
/**
* Gets the value of the cdDiscip property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCdDiscip() {
return cdDiscip;
}
 
/**
* Sets the value of the cdDiscip property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCdDiscip(String value) {
this.cdDiscip = value;
}
 
/**
* Gets the value of the cdLectivo property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCdLectivo() {
return cdLectivo;
}
 
/**
* Sets the value of the cdLectivo property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCdLectivo(String value) {
this.cdLectivo = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/GetInscricoesAux.java
New file
0,0 → 1,62
 
package pt.ipportalegre.siges.web.services;
 
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="cdAluno" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"cdAluno"
})
@XmlRootElement(name = "getInscricoesAux")
public class GetInscricoesAux {
 
protected String cdAluno;
 
/**
* Gets the value of the cdAluno property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCdAluno() {
return cdAluno;
}
 
/**
* Sets the value of the cdAluno property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCdAluno(String value) {
this.cdAluno = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/Turma.java
New file
0,0 → 1,227
 
package pt.ipportalegre.siges.web.services;
 
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 Turma complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="Turma">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="codigoTurma" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="cdLectivo" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="codigoCurso" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="cdDuracao" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="cdTurma" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;element name="cdDisciplina" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
* &lt;element name="turmaUnica" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Turma", propOrder = {
"codigoTurma",
"cdLectivo",
"codigoCurso",
"cdDuracao",
"cdTurma",
"cdDisciplina",
"turmaUnica"
})
public class Turma {
 
@XmlElement(required = true)
protected BigDecimal codigoTurma;
protected String cdLectivo;
@XmlElement(required = true)
protected BigDecimal codigoCurso;
protected String cdDuracao;
protected String cdTurma;
@XmlElement(required = true)
protected BigDecimal cdDisciplina;
protected String turmaUnica;
 
/**
* Gets the value of the codigoTurma property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCodigoTurma() {
return codigoTurma;
}
 
/**
* Sets the value of the codigoTurma property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCodigoTurma(BigDecimal value) {
this.codigoTurma = value;
}
 
/**
* Gets the value of the cdLectivo property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCdLectivo() {
return cdLectivo;
}
 
/**
* Sets the value of the cdLectivo property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCdLectivo(String value) {
this.cdLectivo = value;
}
 
/**
* Gets the value of the codigoCurso property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCodigoCurso() {
return codigoCurso;
}
 
/**
* Sets the value of the codigoCurso property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCodigoCurso(BigDecimal value) {
this.codigoCurso = value;
}
 
/**
* Gets the value of the cdDuracao property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCdDuracao() {
return cdDuracao;
}
 
/**
* Sets the value of the cdDuracao property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCdDuracao(String value) {
this.cdDuracao = value;
}
 
/**
* Gets the value of the cdTurma property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCdTurma() {
return cdTurma;
}
 
/**
* Sets the value of the cdTurma property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCdTurma(String value) {
this.cdTurma = value;
}
 
/**
* Gets the value of the cdDisciplina property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getCdDisciplina() {
return cdDisciplina;
}
 
/**
* Sets the value of the cdDisciplina property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public void setCdDisciplina(BigDecimal value) {
this.cdDisciplina = value;
}
 
/**
* Gets the value of the turmaUnica property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getTurmaUnica() {
return turmaUnica;
}
 
/**
* Sets the value of the turmaUnica property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTurmaUnica(String value) {
this.turmaUnica = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/GetInscricoesAuxResponse.java
New file
0,0 → 1,62
 
package pt.ipportalegre.siges.web.services;
 
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="getInscricoesAuxResult" type="{http://www.ipportalegre.pt/siges/web/services}ArrayOfInscricao" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"getInscricoesAuxResult"
})
@XmlRootElement(name = "getInscricoesAuxResponse")
public class GetInscricoesAuxResponse {
 
protected ArrayOfInscricao getInscricoesAuxResult;
 
/**
* Gets the value of the getInscricoesAuxResult property.
*
* @return
* possible object is
* {@link ArrayOfInscricao }
*
*/
public ArrayOfInscricao getGetInscricoesAuxResult() {
return getInscricoesAuxResult;
}
 
/**
* Sets the value of the getInscricoesAuxResult property.
*
* @param value
* allowed object is
* {@link ArrayOfInscricao }
*
*/
public void setGetInscricoesAuxResult(ArrayOfInscricao value) {
this.getInscricoesAuxResult = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/GetInscricoesDisciplinaAuxResponse.java
New file
0,0 → 1,62
 
package pt.ipportalegre.siges.web.services;
 
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="getInscricoesDisciplinaAuxResult" type="{http://www.ipportalegre.pt/siges/web/services}ArrayOfInscricao" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"getInscricoesDisciplinaAuxResult"
})
@XmlRootElement(name = "getInscricoesDisciplinaAuxResponse")
public class GetInscricoesDisciplinaAuxResponse {
 
protected ArrayOfInscricao getInscricoesDisciplinaAuxResult;
 
/**
* Gets the value of the getInscricoesDisciplinaAuxResult property.
*
* @return
* possible object is
* {@link ArrayOfInscricao }
*
*/
public ArrayOfInscricao getGetInscricoesDisciplinaAuxResult() {
return getInscricoesDisciplinaAuxResult;
}
 
/**
* Sets the value of the getInscricoesDisciplinaAuxResult property.
*
* @param value
* allowed object is
* {@link ArrayOfInscricao }
*
*/
public void setGetInscricoesDisciplinaAuxResult(ArrayOfInscricao value) {
this.getInscricoesDisciplinaAuxResult = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/GetDisciplinasDaInstituicaoSemestreDiscipAux.java
New file
0,0 → 1,62
 
package pt.ipportalegre.siges.web.services;
 
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="codigoDiscip" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"codigoDiscip"
})
@XmlRootElement(name = "getDisciplinasDaInstituicaoSemestreDiscipAux")
public class GetDisciplinasDaInstituicaoSemestreDiscipAux {
 
protected String codigoDiscip;
 
/**
* Gets the value of the codigoDiscip property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCodigoDiscip() {
return codigoDiscip;
}
 
/**
* Sets the value of the codigoDiscip property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCodigoDiscip(String value) {
this.codigoDiscip = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/GetTurmasCursoAux.java
New file
0,0 → 1,62
 
package pt.ipportalegre.siges.web.services;
 
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="cdCurso" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"cdCurso"
})
@XmlRootElement(name = "getTurmasCursoAux")
public class GetTurmasCursoAux {
 
protected String cdCurso;
 
/**
* Gets the value of the cdCurso property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCdCurso() {
return cdCurso;
}
 
/**
* Sets the value of the cdCurso property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCdCurso(String value) {
this.cdCurso = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/GetDisciplinasDaInstituicaoSemestreDiscipAuxResponse.java
New file
0,0 → 1,62
 
package pt.ipportalegre.siges.web.services;
 
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="getDisciplinasDaInstituicaoSemestreDiscipAuxResult" type="{http://www.ipportalegre.pt/siges/web/services}ArrayOfDisciplina" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"getDisciplinasDaInstituicaoSemestreDiscipAuxResult"
})
@XmlRootElement(name = "getDisciplinasDaInstituicaoSemestreDiscipAuxResponse")
public class GetDisciplinasDaInstituicaoSemestreDiscipAuxResponse {
 
protected ArrayOfDisciplina getDisciplinasDaInstituicaoSemestreDiscipAuxResult;
 
/**
* Gets the value of the getDisciplinasDaInstituicaoSemestreDiscipAuxResult property.
*
* @return
* possible object is
* {@link ArrayOfDisciplina }
*
*/
public ArrayOfDisciplina getGetDisciplinasDaInstituicaoSemestreDiscipAuxResult() {
return getDisciplinasDaInstituicaoSemestreDiscipAuxResult;
}
 
/**
* Sets the value of the getDisciplinasDaInstituicaoSemestreDiscipAuxResult property.
*
* @param value
* allowed object is
* {@link ArrayOfDisciplina }
*
*/
public void setGetDisciplinasDaInstituicaoSemestreDiscipAuxResult(ArrayOfDisciplina value) {
this.getDisciplinasDaInstituicaoSemestreDiscipAuxResult = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/GetTurmasCursoAuxResponse.java
New file
0,0 → 1,62
 
package pt.ipportalegre.siges.web.services;
 
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="getTurmasCursoAuxResult" type="{http://www.ipportalegre.pt/siges/web/services}ArrayOfTurma" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"getTurmasCursoAuxResult"
})
@XmlRootElement(name = "getTurmasCursoAuxResponse")
public class GetTurmasCursoAuxResponse {
 
protected ArrayOfTurma getTurmasCursoAuxResult;
 
/**
* Gets the value of the getTurmasCursoAuxResult property.
*
* @return
* possible object is
* {@link ArrayOfTurma }
*
*/
public ArrayOfTurma getGetTurmasCursoAuxResult() {
return getTurmasCursoAuxResult;
}
 
/**
* Sets the value of the getTurmasCursoAuxResult property.
*
* @param value
* allowed object is
* {@link ArrayOfTurma }
*
*/
public void setGetTurmasCursoAuxResult(ArrayOfTurma value) {
this.getTurmasCursoAuxResult = value;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/ArrayOfTurmaCurso.java
New file
0,0 → 1,69
 
package pt.ipportalegre.siges.web.services;
 
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 ArrayOfTurmaCurso complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="ArrayOfTurmaCurso">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="TurmaCurso" type="{http://www.ipportalegre.pt/siges/web/services}TurmaCurso" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfTurmaCurso", propOrder = {
"turmaCurso"
})
public class ArrayOfTurmaCurso {
 
@XmlElement(name = "TurmaCurso", nillable = true)
protected List<TurmaCurso> turmaCurso;
 
/**
* Gets the value of the turmaCurso 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 turmaCurso property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTurmaCurso().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TurmaCurso }
*
*
*/
public List<TurmaCurso> getTurmaCurso() {
if (turmaCurso == null) {
turmaCurso = new ArrayList<TurmaCurso>();
}
return this.turmaCurso;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/ArrayOfInscricao.java
New file
0,0 → 1,69
 
package pt.ipportalegre.siges.web.services;
 
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 ArrayOfInscricao complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="ArrayOfInscricao">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Inscricao" type="{http://www.ipportalegre.pt/siges/web/services}Inscricao" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfInscricao", propOrder = {
"inscricao"
})
public class ArrayOfInscricao {
 
@XmlElement(name = "Inscricao", nillable = true)
protected List<Inscricao> inscricao;
 
/**
* Gets the value of the inscricao 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 inscricao property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getInscricao().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Inscricao }
*
*
*/
public List<Inscricao> getInscricao() {
if (inscricao == null) {
inscricao = new ArrayList<Inscricao>();
}
return this.inscricao;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/ArrayOfTurma.java
New file
0,0 → 1,69
 
package pt.ipportalegre.siges.web.services;
 
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 ArrayOfTurma complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="ArrayOfTurma">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="Turma" type="{http://www.ipportalegre.pt/siges/web/services}Turma" maxOccurs="unbounded" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfTurma", propOrder = {
"turma"
})
public class ArrayOfTurma {
 
@XmlElement(name = "Turma", nillable = true)
protected List<Turma> turma;
 
/**
* Gets the value of the turma 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 turma property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getTurma().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Turma }
*
*
*/
public List<Turma> getTurma() {
if (turma == null) {
turma = new ArrayList<Turma>();
}
return this.turma;
}
 
}
/impl/gen/java/pt/ipportalegre/siges/web/services/GetTurmasAux.java
New file
0,0 → 1,62
 
package pt.ipportalegre.siges.web.services;
 
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="cdTurma" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"cdTurma"
})
@XmlRootElement(name = "getTurmasAux")
public class GetTurmasAux {
 
protected String cdTurma;
 
/**
* Gets the value of the cdTurma property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCdTurma() {
return cdTurma;
}
 
/**
* Sets the value of the cdTurma property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCdTurma(String value) {
this.cdTurma = value;
}
 
}