|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RFile
OpenL Rules File. It stores content of physical files.
| Method Summary | |
|---|---|
InputStream |
getContent()
Gets content of the file. |
InputStream |
getContent4Version(CommonVersion version)
Returns content of specified version of the file. |
String |
getMimeType()
Gets mime type of the file. |
long |
getSize()
Returns size of the file's content in bytes. |
void |
revertToVersion(String versionName)
Reverts the file to specified version. |
void |
setContent(InputStream inputStream)
Sets/Updates content of the file. |
| Methods inherited from interface org.openl.rules.repository.REntity |
|---|
addProperty, delete, getActiveVersion, getEffectiveDate, getExpirationDate, getLineOfBusiness, getName, getPath, getProperties, getProperty, getProps, getVersionHistory, hasProperty, removeProperty, setEffectiveDate, setExpirationDate, setLineOfBusiness, setProps |
| Method Detail |
|---|
InputStream getContent()
throws RRepositoryException
RRepositoryException - if failed
InputStream getContent4Version(CommonVersion version)
throws RRepositoryException
version - specified version
RRepositoryException - if failedString getMimeType()
long getSize()
-1 if cannot determine it.
void revertToVersion(String versionName)
throws RRepositoryException
versionName - name of version
RRepositoryException - if failed
void setContent(InputStream inputStream)
throws RRepositoryException
inputStream - stream with new content of the file
RModifyException - if failed
RRepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||