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.String
SHARED_REPORT
-
Constructor Summary
Constructors Constructor Description MyReport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MyReport
create(Tab tab)
static MyReport
createEmpty(Tab tab)
static MyReport
find(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.String
getLastName()
MetaModel
getMetaModel()
java.lang.String
getName()
boolean
isShared()
void
load()
void
remove()
void
save()
void
save(boolean sharedReport)
void
setColumns(java.util.List<MyReportColumn> columns)
void
setMetaModel(MetaModel metaModel)
void
setName(java.lang.String name)
void
setShared(boolean shared)
java.lang.String
toString()
-
-
-
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.BackingStoreException
The 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.BackingStoreException
The 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:
toString
in classjava.lang.Object
-
-