@Exported public interface SiteDao extends DataAccessObject
| Modifier and Type | Method and Description |
|---|---|
List<RoleBean> |
getAllRoles()
Returns a list of all roles in the system.
|
String |
getDefaultWebroot(long siteId)
Returns whether preview is enabled for assets in the specified site.
|
List<String> |
getEnabledTypes(long siteId)
Returns the list of asset types enabled in the specified site.
|
List<String> |
getLocales(long siteId)
Returns available locales for the specified site.
|
List<UserBean> |
getSiteUsers(long siteId)
Returns the list of those users who have access to the specified site through one or more roles.
|
List<StartMenuBean> |
getStartMenus(List<StartMenuBean.Type> itemTypes,
List<String> assetTypes,
long siteId)
Returns the list of start menu items for specific asset types for the specified user in the specified site.
|
List<StartMenuBean> |
getStartMenus(List<StartMenuBean.Type> types,
long siteId)
Returns the list of start menu items for the logged in user in the specified site.
|
List<RoleBean> |
getUserRoles(long siteId)
Returns a list of all roles for the logged in user in the specified site.
|
boolean |
isPreviewEnabled(long siteId)
Checks whether preview is enabled for assets in the specified site.
|
getResponse, getService, setServiceboolean isPreviewEnabled(long siteId)
throws DataAccessException
siteId - id of the site in which the asset types are enabled.DataAccessException - wraps any underlying exception caused during data access.String getDefaultWebroot(long siteId) throws DataAccessException
siteId - id of the site in which the asset types are enabled.DataAccessException - wraps any underlying exception caused during data access.List<String> getEnabledTypes(long siteId) throws DataAccessException
siteId - id of the site in which the asset types are enabled.DataAccessException - wraps any underlying exception caused during data access.List<UserBean> getSiteUsers(long siteId) throws DataAccessException
siteId - id of the site in which the users have access.DataAccessException - wraps any underlying exception caused during data access.List<RoleBean> getAllRoles() throws DataAccessException
DataAccessException - wraps any underlying exception caused during data access.List<RoleBean> getUserRoles(long siteId) throws DataAccessException
siteId - id of the site in which the users have access.DataAccessException - wraps any underlying exception caused during data access.List<StartMenuBean> getStartMenus(List<StartMenuBean.Type> types, long siteId) throws DataAccessException
types - the list of start menu types.siteId - the site for which the start menu is to be retrieved.DataAccessException - wraps any underlying exception caused during data access.List<StartMenuBean> getStartMenus(List<StartMenuBean.Type> itemTypes, List<String> assetTypes, long siteId) throws DataAccessException
itemTypes - the list of start menu types.assetTypes - the list of asset types.siteId - the site for which the start menu is to be retrieved.DataAccessException - wraps any exception underlying the service call.StartMenuBean.TypeList<String> getLocales(long siteId) throws DataAccessException
siteId - the site for which the locales are to be retrieved.DataAccessException - wraps any underlying exception caused during data access.