Package org.openxava.session
Class MyReport
- java.lang.Object
-
- org.openxava.session.MyReport
-
- All Implemented Interfaces:
java.io.Serializable
public class MyReport extends java.lang.Object implements java.io.Serializable- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSHARED_REPORT
-
Constructor Summary
Constructors Constructor Description MyReport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MyReportcreate(Tab tab)static MyReportcreateEmpty(Tab tab)static MyReportfind(Tab tab, java.lang.String name)java.lang.String[]getAllNames()java.lang.String[]getAllNamesCurrentUser()The names of all the reports of the same Tab of the current one.java.lang.String[]getAllNamesSharedUser()The names of all the shared reports.java.util.List<MyReportColumn>getColumns()java.lang.StringgetLastName()MetaModelgetMetaModel()java.lang.StringgetName()booleanisShared()voidload()voidremove()voidsave()voidsave(boolean sharedReport)voidsetColumns(java.util.List<MyReportColumn> columns)voidsetMetaModel(MetaModel metaModel)voidsetName(java.lang.String name)voidsetShared(boolean shared)java.lang.StringtoString()
-
-
-
Field Detail
-
SHARED_REPORT
public static final java.lang.String SHARED_REPORT
- See Also:
- Constant Field Values
-
-
Method Detail
-
find
public static MyReport find(Tab tab, java.lang.String name) throws java.util.prefs.BackingStoreException
- Throws:
java.util.prefs.BackingStoreException
-
getAllNamesCurrentUser
public java.lang.String[] getAllNamesCurrentUser() throws java.util.prefs.BackingStoreExceptionThe names of all the reports of the same Tab of the current one.- Throws:
java.util.prefs.BackingStoreException
-
getAllNamesSharedUser
public java.lang.String[] getAllNamesSharedUser() throws java.util.prefs.BackingStoreExceptionThe names of all the shared reports.- Throws:
java.util.prefs.BackingStoreException
-
getAllNames
public java.lang.String[] getAllNames() throws java.util.prefs.BackingStoreException- Returns:
- names of all the report: current user + shared
- Throws:
java.util.prefs.BackingStoreException
-
getLastName
public java.lang.String getLastName() throws java.util.prefs.BackingStoreException- Throws:
java.util.prefs.BackingStoreException
-
load
public void load() throws java.util.prefs.BackingStoreException- Throws:
java.util.prefs.BackingStoreException
-
save
public void save() throws java.util.prefs.BackingStoreException- Throws:
java.util.prefs.BackingStoreException
-
save
public void save(boolean sharedReport) throws java.util.prefs.BackingStoreException- Throws:
java.util.prefs.BackingStoreException
-
remove
public void remove() throws java.util.prefs.BackingStoreException- Throws:
java.util.prefs.BackingStoreException
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
getColumns
public java.util.List<MyReportColumn> getColumns()
-
setColumns
public void setColumns(java.util.List<MyReportColumn> columns)
-
getMetaModel
public MetaModel getMetaModel()
-
setMetaModel
public void setMetaModel(MetaModel metaModel)
-
isShared
public boolean isShared()
-
setShared
public void setShared(boolean shared)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-