lumis.portal.file
Class FileConfig

Package class diagram package FileConfig
java.lang.Object
  extended by lumis.portal.file.FileConfig
All Implemented Interfaces:
IDownloadableFile

@StableMinor(version="6.2",
             sinceVersion="4.0")
public class FileConfig
extends Object
implements IDownloadableFile

Object that represents a file object

Since:
4.0.0

Field Summary
static int TYPE_DEFAULT
          Default file type.
static int TYPE_FILES
          This type indicates that this file belongs to a "files" data type.
 
Constructor Summary
FileConfig(String fileId)
          Deprecated. Since 6.0.0, FileConfig should not be constructed directly. Use IFileManager.add(lumis.portal.authentication.SessionConfig, String, java.io.File, String, String, lumis.util.ITransaction) instead.
FileConfig(String fileId, FileParameter fileParameter, String serviceInstanceId)
          Deprecated. Since 6.0.0, FileConfig should not be constructed directly. Use IFileManager.add(lumis.portal.authentication.SessionConfig, String, java.io.File, String, String, lumis.util.ITransaction) instead.
FileConfig(String fileId, String name, String fullPath, String contentType, long fileSize, int type, String serviceInstanceId)
          Deprecated. Since 6.0.0, FileConfig should not be constructed directly. Use IFileManager.add(lumis.portal.authentication.SessionConfig, String, java.io.File, String, String, lumis.util.ITransaction) instead.
 
Method Summary
 String getContentType()
          Returns the file content type
 long getFileSize()
          Returns the file size
 String getFullPath()
           
 String getId()
           
 IFileMetadata getMetadata()
          Retrieves the metadata of the file.
 String getName()
          Returns the file name
 String getServiceInstanceId()
           
 int getType()
           
 void setName(String name)
           
 void setType(int type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_DEFAULT

public static final int TYPE_DEFAULT
Default file type.

See Also:
Constant Field Values

TYPE_FILES

public static final int TYPE_FILES
This type indicates that this file belongs to a "files" data type.

See Also:
Constant Field Values
Constructor Detail

FileConfig

@Deprecated
public FileConfig(String fileId)
Deprecated. Since 6.0.0, FileConfig should not be constructed directly. Use IFileManager.add(lumis.portal.authentication.SessionConfig, String, java.io.File, String, String, lumis.util.ITransaction) instead.


FileConfig

@Deprecated
public FileConfig(String fileId,
                             FileParameter fileParameter,
                             String serviceInstanceId)
           throws IOException
Deprecated. Since 6.0.0, FileConfig should not be constructed directly. Use IFileManager.add(lumis.portal.authentication.SessionConfig, String, java.io.File, String, String, lumis.util.ITransaction) instead.

Throws:
IOException

FileConfig

@Deprecated
public FileConfig(String fileId,
                             String name,
                             String fullPath,
                             String contentType,
                             long fileSize,
                             int type,
                             String serviceInstanceId)
Deprecated. Since 6.0.0, FileConfig should not be constructed directly. Use IFileManager.add(lumis.portal.authentication.SessionConfig, String, java.io.File, String, String, lumis.util.ITransaction) instead.

Method Detail

getContentType

public String getContentType()
Description copied from interface: IDownloadableFile
Returns the file content type

Specified by:
getContentType in interface IDownloadableFile
Returns:
the file content type

getId

public String getId()

getFileSize

public long getFileSize()
Description copied from interface: IDownloadableFile
Returns the file size

Specified by:
getFileSize in interface IDownloadableFile
Returns:
the file size

getFullPath

public String getFullPath()

getName

public String getName()
Description copied from interface: IDownloadableFile
Returns the file name

Specified by:
getName in interface IDownloadableFile
Returns:
the file name

getServiceInstanceId

public String getServiceInstanceId()

setName

public void setName(String name)

getType

public int getType()

setType

public void setType(int type)

getMetadata

public IFileMetadata getMetadata()
Retrieves the metadata of the file.

Returns:
the metadata of the file.
Since:
6.0.0


Lumisportal  6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.