LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info.save
Class LyFormSaveFile

java.lang.Object
  extended by leon.info.save.LyFormSave
      extended by leon.info.save.LyFormSaveFile
All Implemented Interfaces:
LyExtraInfoInterface

public class LyFormSaveFile
extends LyFormSave
implements LyExtraInfoInterface

Save of a field controller


Nested Class Summary
 
Nested classes/interfaces inherited from class leon.info.save.LyFormSave
LyFormSave.Type
 
Field Summary
 LyAction _action
          Action that created the save.
 java.lang.String _file
          File containing the form save.
static java.lang.String PREFIX
           
 
Fields inherited from class leon.info.save.LyFormSave
_classInfo, _datas, _fieldSaves, _objectId, _type
 
Fields inherited from interface leon.info.infointerface.LyExtraInfoInterface
__VERSION
 
Constructor Summary
LyFormSaveFile(LyAction action, java.lang.String user, LyFormSave save)
           
LyFormSaveFile(LyAction action, java.lang.String user, java.lang.String path)
           
 
Method Summary
 boolean deleteFile()
          Method for deleting extra info file.
 void free()
          Method for freeing extra info (and sub-infos).
 java.lang.String getFile()
          Accessor to the file of this info.
static java.lang.String getFileName(LyAction action, LyClassInfo classInfo, LyObjectId objectId, java.lang.String userId)
           
 java.lang.String getId()
          Accessor to the id of this info.
static java.lang.String getId(LyAction action, LyClassInfo classInfo, LyObjectId objectId)
           
 java.lang.String getUser()
          Get owner of this extra info.
static LyFormSaveFile loadSave(LyAction action, LyClassInfo classInfo, LyObject object, java.lang.String userId)
           
 boolean saveFile(LyXmlWriterInterface writer)
          Method for saving extra info file.
 void setFile(java.lang.String file)
          Accessor to the file of this info.
 void writeXml(java.io.PrintWriter pw)
          Method to rewrite XML corresponding to this component.
 void writeXml(java.io.PrintWriter pw, boolean header, boolean body)
          Method to rewrite XML corresponding to this component.
 
Methods inherited from class leon.info.save.LyFormSave
addFieldSave, contains, fromString, getData, putData, removeData, saveAsString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PREFIX

public static final java.lang.String PREFIX
See Also:
Constant Field Values

_action

public LyAction _action
Action that created the save.


_file

public java.lang.String _file
File containing the form save.

Constructor Detail

LyFormSaveFile

public LyFormSaveFile(LyAction action,
                      java.lang.String user,
                      LyFormSave save)

LyFormSaveFile

public LyFormSaveFile(LyAction action,
                      java.lang.String user,
                      java.lang.String path)
Method Detail

getId

public static java.lang.String getId(LyAction action,
                                     LyClassInfo classInfo,
                                     LyObjectId objectId)

getFileName

public static java.lang.String getFileName(LyAction action,
                                           LyClassInfo classInfo,
                                           LyObjectId objectId,
                                           java.lang.String userId)

loadSave

public static LyFormSaveFile loadSave(LyAction action,
                                      LyClassInfo classInfo,
                                      LyObject object,
                                      java.lang.String userId)

free

public void free()
Description copied from interface: LyExtraInfoInterface
Method for freeing extra info (and sub-infos).

Specified by:
free in interface LyExtraInfoInterface

getId

public final java.lang.String getId()
Accessor to the id of this info.

Returns:
the id of this info.

getFile

public final java.lang.String getFile()
Description copied from interface: LyExtraInfoInterface
Accessor to the file of this info.

Specified by:
getFile in interface LyExtraInfoInterface
Returns:
the file of this info.

getUser

public final java.lang.String getUser()
Description copied from interface: LyExtraInfoInterface
Get owner of this extra info.

Specified by:
getUser in interface LyExtraInfoInterface
Returns:
The owner of this extra info.

saveFile

public boolean saveFile(LyXmlWriterInterface writer)
Description copied from interface: LyExtraInfoInterface
Method for saving extra info file.

Specified by:
saveFile in interface LyExtraInfoInterface
Returns:
True if successful.

setFile

public void setFile(java.lang.String file)
Description copied from interface: LyExtraInfoInterface
Accessor to the file of this info.

Specified by:
setFile in interface LyExtraInfoInterface

deleteFile

public boolean deleteFile()
Description copied from interface: LyExtraInfoInterface
Method for deleting extra info file.

Specified by:
deleteFile in interface LyExtraInfoInterface
Returns:
True if successful.

writeXml

public void writeXml(java.io.PrintWriter pw)
Description copied from interface: LyExtraInfoInterface
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in interface LyExtraInfoInterface
Parameters:
pw - the printWriter on which the XML is written.

writeXml

public void writeXml(java.io.PrintWriter pw,
                     boolean header,
                     boolean body)
Description copied from interface: LyExtraInfoInterface
Method to rewrite XML corresponding to this component.

Specified by:
writeXml in interface LyExtraInfoInterface
Parameters:
pw - The printWriter on which the XML is written.
header - Boolean indicating if header must be written.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com