|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lyra.Operations
public class Operations
Operations is a class which will deal with file operations required of the application. In the cases of hostCreate and hostRemove method also mix in database operations and confirmation.
Field Summary | |
---|---|
private static int |
BUFFER
|
private static java.lang.String |
CLASS
|
private Ledger |
Logger
|
Constructor Summary | |
---|---|
Operations(Ledger logger)
Primary constructor for class, requires the logger element to be complete. |
Method Summary | |
---|---|
static java.lang.String |
extractFileExtension(java.io.File path)
Extracts the dotted file extension from a provided File instance. |
static java.lang.String |
extractFileExtension(java.lang.String name)
Extracts the dotted file extension from a provided string. |
boolean |
fileCopy(java.io.File source,
java.io.File target)
Wrapper for a series of instructions which should create a quick and efficient file copy structure. |
boolean |
fileWrite(java.io.InputStream stream,
java.io.File target)
Wrapper for a series of instructions which should create a quick and efficient file copy structure. |
boolean |
hostCreate(Comptroller manager,
java.util.Map<java.lang.String,java.lang.String> lang,
java.util.Map<java.lang.String,java.lang.String> details)
Host creation requires the transfer of a base database template and changes to the database itself. |
boolean |
hostRemove(Comptroller manager,
java.util.Map<java.lang.String,java.lang.String> lang,
java.util.Map<java.lang.String,java.lang.String> details)
Host removal requires the removal of the separate database file as well as the associated database entry. |
boolean |
jarCopy(java.lang.String source,
java.io.File target)
Wrapper for a series of instructions which should create a quick and efficient file copy structure. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String CLASS
private static final int BUFFER
private Ledger Logger
Constructor Detail |
---|
public Operations(Ledger logger)
logger
- Instance of the Ledger class.Method Detail |
---|
public boolean fileCopy(java.io.File source, java.io.File target)
source
- File source.target
- File target.
public boolean jarCopy(java.lang.String source, java.io.File target)
source
- String Java Archive resource.target
- File target.
public boolean fileWrite(java.io.InputStream stream, java.io.File target)
stream
- Stream containing contents.target
- File target.
public boolean hostCreate(Comptroller manager, java.util.Map<java.lang.String,java.lang.String> lang, java.util.Map<java.lang.String,java.lang.String> details)
manager
- Database comptroller instance.lang
- Map with language elements.details
- Map indicating host details.
public boolean hostRemove(Comptroller manager, java.util.Map<java.lang.String,java.lang.String> lang, java.util.Map<java.lang.String,java.lang.String> details)
manager
- Database comptroller instance.lang
- Map with language elements.details
- Map indicating host details.
public static java.lang.String extractFileExtension(java.lang.String name)
name
- Filename.
public static java.lang.String extractFileExtension(java.io.File path)
path
- File instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |