@StableMinor(version="12.5", sinceVersion="4.0") public class FileConfig extends Object implements IDownloadableFile
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_DEFAULT
Default file type.
|
static int |
TYPE_FILES
This type indicates that this file belongs to a "files" data type.
|
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
String |
getContentLocaleId()
Returns the content locale identifier.
|
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 |
setContentLocaleId(String contentLocaleId)
Sets the content locale identifier.
|
void |
setName(String name) |
void |
setType(int type) |
public static final int TYPE_DEFAULT
public static final int TYPE_FILES
@Deprecated public FileConfig(String fileId)
FileConfig
should not be constructed directly. Use
IFileManager.add(lumis.portal.authentication.SessionConfig, String, java.io.File, String, String, lumis.util.ITransaction)
instead.@Deprecated public FileConfig(String fileId, FileParameter fileParameter, String serviceInstanceId) throws IOException
FileConfig
should not be constructed directly.
Use IFileManager.add(lumis.portal.authentication.SessionConfig, String, java.io.File, String, String, lumis.util.ITransaction)
instead.IOException
@Deprecated public FileConfig(String fileId, String name, String fullPath, String contentType, long fileSize, int type, String serviceInstanceId)
FileConfig
should not be constructed directly.
Use IFileManager.add(lumis.portal.authentication.SessionConfig, String, java.io.File, String, String, lumis.util.ITransaction)
instead.public String getContentType()
IDownloadableFile
getContentType
in interface IDownloadableFile
public String getId()
public long getFileSize()
IDownloadableFile
getFileSize
in interface IDownloadableFile
public String getFullPath()
public String getName()
IDownloadableFile
getName
in interface IDownloadableFile
public String getServiceInstanceId()
public void setName(String name)
public int getType()
public void setType(int type)
public IFileMetadata getMetadata()
public void setContentLocaleId(String contentLocaleId)
contentLocaleId
- the content locale identifier.public String getContentLocaleId()
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.