forked from Coded/SIPRP
				
			Commit do upload de documentos.
	
		
	
				
					
				
			git-svn-id: https://svn.coded.pt/svn/SIPRP@2010 bb69d46d-e84e-40c8-a05a-06db0d633741lxbfYeaa
							parent
							
								
									fddc8906f9
								
							
						
					
					
						commit
						5473c5980c
					
				| @ -0,0 +1,2 @@ | |||||||
|  | eclipse.preferences.version=1 | ||||||
|  | org.eclipse.wst.ws.service.policy.projectEnabled=false | ||||||
											
												Binary file not shown.
											
										
									
								
											
												Binary file not shown.
											
										
									
								
											
												
													File diff suppressed because it is too large
													Load Diff
												
											
										
									
								| @ -0,0 +1,158 @@ | |||||||
|  | package shst.medicina.fichasclinicas.beans; | ||||||
|  | 
 | ||||||
|  | import java.io.InputStream; | ||||||
|  | 
 | ||||||
|  | import com.google.common.base.Objects; | ||||||
|  | 
 | ||||||
|  | public class DocumentoUploadBean | ||||||
|  | { | ||||||
|  | 
 | ||||||
|  | 	private String desc; | ||||||
|  | 
 | ||||||
|  | 	private String nome; | ||||||
|  | 
 | ||||||
|  | 	private Long size; | ||||||
|  | 
 | ||||||
|  | 	private String mimeType; | ||||||
|  | 
 | ||||||
|  | 	private InputStream inputStream; | ||||||
|  | 
 | ||||||
|  | 	private Integer trabalhadorId; | ||||||
|  | 
 | ||||||
|  | 	public DocumentoUploadBean( String desc, String nome, Long size, String mimeType, InputStream inputStream, Integer trabalhadorId ) | ||||||
|  | 	{ | ||||||
|  | 		this.desc = desc; | ||||||
|  | 		this.nome = nome; | ||||||
|  | 		this.size = size; | ||||||
|  | 		this.mimeType = mimeType; | ||||||
|  | 		this.inputStream = inputStream; | ||||||
|  | 		this.trabalhadorId = trabalhadorId; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getDesc() | ||||||
|  | 	{ | ||||||
|  | 		return desc; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setDesc( String desc ) | ||||||
|  | 	{ | ||||||
|  | 		this.desc = desc; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getNome() | ||||||
|  | 	{ | ||||||
|  | 		return nome; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setNome( String nome ) | ||||||
|  | 	{ | ||||||
|  | 		this.nome = nome; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public Long getSize() | ||||||
|  | 	{ | ||||||
|  | 		return size; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setSize( Long size ) | ||||||
|  | 	{ | ||||||
|  | 		this.size = size; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public String getMimeType() | ||||||
|  | 	{ | ||||||
|  | 		return mimeType; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setMimeType( String mimeType ) | ||||||
|  | 	{ | ||||||
|  | 		this.mimeType = mimeType; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public InputStream getInputStream() | ||||||
|  | 	{ | ||||||
|  | 		return inputStream; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setInputStream( InputStream inputStream ) | ||||||
|  | 	{ | ||||||
|  | 		this.inputStream = inputStream; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public Integer getTrabalhadorId() | ||||||
|  | 	{ | ||||||
|  | 		return trabalhadorId; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	public void setTrabalhadorId( Integer trabalhadorId ) | ||||||
|  | 	{ | ||||||
|  | 		this.trabalhadorId = trabalhadorId; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	@Override | ||||||
|  | 	public boolean equals( Object o ) | ||||||
|  | 	{ | ||||||
|  | 		if( this == o ) | ||||||
|  | 		{ | ||||||
|  | 			return true; | ||||||
|  | 		} | ||||||
|  | 		if( o == null || getClass() != o.getClass() ) | ||||||
|  | 		{ | ||||||
|  | 			return false; | ||||||
|  | 		} | ||||||
|  | 
 | ||||||
|  | 		DocumentoUploadBean that = ( DocumentoUploadBean ) o; | ||||||
|  | 
 | ||||||
|  | 		if( desc != null ? !desc.equals( that.desc ) : that.desc != null ) | ||||||
|  | 		{ | ||||||
|  | 			return false; | ||||||
|  | 		} | ||||||
|  | 		if( inputStream != null ? !inputStream.equals( that.inputStream ) : that.inputStream != null ) | ||||||
|  | 		{ | ||||||
|  | 			return false; | ||||||
|  | 		} | ||||||
|  | 		if( mimeType != null ? !mimeType.equals( that.mimeType ) : that.mimeType != null ) | ||||||
|  | 		{ | ||||||
|  | 			return false; | ||||||
|  | 		} | ||||||
|  | 		if( nome != null ? !nome.equals( that.nome ) : that.nome != null ) | ||||||
|  | 		{ | ||||||
|  | 			return false; | ||||||
|  | 		} | ||||||
|  | 		if( size != null ? !size.equals( that.size ) : that.size != null ) | ||||||
|  | 		{ | ||||||
|  | 			return false; | ||||||
|  | 		} | ||||||
|  | 		if( trabalhadorId != null ? !trabalhadorId.equals( that.trabalhadorId ) : that.trabalhadorId != null ) | ||||||
|  | 		{ | ||||||
|  | 			return false; | ||||||
|  | 		} | ||||||
|  | 
 | ||||||
|  | 		return true; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	@Override | ||||||
|  | 	public int hashCode() | ||||||
|  | 	{ | ||||||
|  | 		int result = desc != null ? desc.hashCode() : 0; | ||||||
|  | 		result = 31 * result + ( nome != null ? nome.hashCode() : 0 ); | ||||||
|  | 		result = 31 * result + ( size != null ? size.hashCode() : 0 ); | ||||||
|  | 		result = 31 * result + ( mimeType != null ? mimeType.hashCode() : 0 ); | ||||||
|  | 		result = 31 * result + ( inputStream != null ? inputStream.hashCode() : 0 ); | ||||||
|  | 		result = 31 * result + ( trabalhadorId != null ? trabalhadorId.hashCode() : 0 ); | ||||||
|  | 		return result; | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	@Override | ||||||
|  | 	public String toString() | ||||||
|  | 	{ | ||||||
|  | 		return Objects.toStringHelper( this ) | ||||||
|  | 				.add( "desc", desc ) | ||||||
|  | 				.add( "nome", nome ) | ||||||
|  | 				.add( "size", size ) | ||||||
|  | 				.add( "mimeType", mimeType ) | ||||||
|  | 				.add( "inputStream", inputStream ) | ||||||
|  | 				.add( "trabalhadorId", trabalhadorId ) | ||||||
|  | 				.toString(); | ||||||
|  | 	} | ||||||
|  | } | ||||||
					Loading…
					
					
				
		Reference in new issue