|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apertereports.model.ReportTemplate
@Entity public class ReportTemplate
Holds all the Jasper report template data and specific report configuration.
| Field Summary | |
|---|---|
static long |
ACCESS_ALL_ROLES_ID
Id indicating access for all roles to the report |
| Constructor Summary | |
|---|---|
ReportTemplate()
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
boolean |
getActive()
|
Boolean |
getAllowBackgroundOrder()
|
Boolean |
getAllowOnlineDisplay()
|
String |
getContent()
|
Date |
getCreated()
|
String |
getDescription()
|
String |
getFilename()
|
Integer |
getId()
|
String |
getReportname()
|
Set<Long> |
getRolesWithAccess()
Returns the set of role ids with access to the report. |
int |
hashCode()
|
boolean |
hasRoleAccess(Long roleId)
Determines if the role with given id has the access to the report |
boolean |
isAccessibleForAllRoles()
Determines if the report is accessible for all roles |
void |
setAccessibleForAllRoles()
Sets the report accessible for all roles in the application |
void |
setActive(boolean active)
|
void |
setAllowBackgroundOrder(Boolean allowBackgroundOrder)
|
void |
setAllowOnlineDisplay(Boolean allowOnlineDisplay)
|
void |
setContent(String content)
|
void |
setCreated(Date created)
|
void |
setDescription(String description)
|
void |
setFilename(String filename)
|
void |
setId(Integer id)
|
void |
setReportname(String reportname)
|
void |
setRolesWithAccess(Set<Long> rolesWithAccess)
Sets the access to the report for roles with given ids. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long ACCESS_ALL_ROLES_ID
| Constructor Detail |
|---|
public ReportTemplate()
| Method Detail |
|---|
public boolean getActive()
public String getContent()
public Date getCreated()
public String getDescription()
public String getFilename()
public Integer getId()
public String getReportname()
public Boolean getAllowBackgroundOrder()
public Boolean getAllowOnlineDisplay()
public void setActive(boolean active)
public void setAllowBackgroundOrder(Boolean allowBackgroundOrder)
public void setAllowOnlineDisplay(Boolean allowOnlineDisplay)
public void setContent(String content)
public void setCreated(Date created)
public void setDescription(String description)
public void setFilename(String filename)
public void setId(Integer id)
public void setReportname(String reportname)
public boolean isAccessibleForAllRoles()
public Set<Long> getRolesWithAccess()
isAccessibleForAllRoles() should be used.
isAccessibleForAllRoles()public void setAccessibleForAllRoles()
public void setRolesWithAccess(Set<Long> rolesWithAccess)
setAccessibleForAllRoles()
ids - List of roles ids. If the list is empty or null value is
passed, none role will have the accesssetAccessibleForAllRoles()public boolean hasRoleAccess(Long roleId)
roleId - Role id
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||