Package org.exoplatform.portal.config
Interface DataStorage
- All Known Subinterfaces:
LayoutService
Deprecated, for removal: This API element is subject to removal in a future version.
Created by The eXo Platform SAS Apr 19, 2007 This interface is used to load
the PortalConfig, Page config and Navigation config from the database
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version.static final StringDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.This method should create or update the given page object
Then broasdcast PAGE_CREATED eventvoidcreate(PortalConfig config) Deprecated, for removal: This API element is subject to removal in a future version.Create a PortalConfig in database
Then broadcast PORTAL_CONFIG_CREATED event<T> org.exoplatform.commons.utils.LazyPageList<T> find(Query<T> q, Comparator<T> sortComparator) Deprecated, for removal: This API element is subject to removal in a future version.Return LazyPageList of object (sorted) which type and other info determined in Query object<T> org.exoplatform.commons.utils.ListAccess<T> find2(Query<T> q, Comparator<T> sortComparator) Deprecated, for removal: This API element is subject to removal in a future version.Return ListAccess, we can retrieved array of object (sorted) in database through this.Deprecated, for removal: This API element is subject to removal in a future version.since 6.4.0, usegetSiteNames(SiteType, int, int)insteadDeprecated, for removal: This API element is subject to removal in a future version.since 6.4.0, usegetSiteNames(SiteType, int, int)instead<S> Application<S> getApplicationModel(String applicationStorageId) Deprecated, for removal: This API element is subject to removal in a future version.RetrievedApplicationmodel switch its storage identifier<S> StringgetId(ApplicationState<S> state) Deprecated, for removal: This API element is subject to removal in a future version.Return contentId according to each state (transient, persistent, clone)default StatusDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.This method should load the Page object from the database according to the pageIdDeprecated, for removal: This API element is subject to removal in a future version.Retrieves Page designated by its keygetPortalConfig(String portalName) Deprecated, for removal: This API element is subject to removal in a future version.This method should load the PortalConfig object from db according to the portalNamegetPortalConfig(String ownerType, String portalName) Deprecated, for removal: This API element is subject to removal in a future version.This method should load the PortalConfig object from db according to the portalName and ownerTypegetPortalConfig(SiteKey siteKey) Deprecated, for removal: This API element is subject to removal in a future version.RetrievesPortalConfigof designatedSiteKeygetSharedLayout(String siteName) Deprecated, for removal: This API element is subject to removal in a future version.Return shared layout containing common layout of all sites (user, group and sites).getSiteNames(SiteType siteType, int offset, int limit) Deprecated, for removal: This API element is subject to removal in a future version.Retrieves all site type names with pagination.<S> Sload(ApplicationState<S> state, ApplicationType<S> type) Deprecated, for removal: This API element is subject to removal in a future version.Return content state.voidDeprecated, for removal: This API element is subject to removal in a future version.voidremove(PortalConfig config) Deprecated, for removal: This API element is subject to removal in a future version.Remove the PortalConfig from the database
Then broadcast PORTAL_CONFIG_REMOVED eventvoidDeprecated, for removal: This API element is subject to removal in a future version.<S> ApplicationState<S> save(ApplicationState<S> state, S preferences) Deprecated, for removal: This API element is subject to removal in a future version.Save content stateDeprecated, for removal: This API element is subject to removal in a future version.Saves a page.voidsave(PortalConfig config) Deprecated, for removal: This API element is subject to removal in a future version.This method should update the PortalConfig object
Then broadcast PORTAL_CONFIG_UPDATED eventdefault voidsaveImportStatus(Status status) Deprecated, for removal: This API element is subject to removal in a future version.
-
Field Details
-
DEFAULT_LIMIT
static final int DEFAULT_LIMITDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
PAGE_CREATED
Deprecated, for removal: This API element is subject to removal in a future version. -
PAGE_REMOVED
Deprecated, for removal: This API element is subject to removal in a future version. -
PAGE_UPDATED
Deprecated, for removal: This API element is subject to removal in a future version. -
PORTAL_CONFIG_CREATED
Deprecated, for removal: This API element is subject to removal in a future version. -
PORTAL_CONFIG_REMOVED
Deprecated, for removal: This API element is subject to removal in a future version. -
PORTAL_CONFIG_UPDATED
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Create a PortalConfig in database
Then broadcast PORTAL_CONFIG_CREATED event- Parameters:
config-PortalConfig
-
save
Deprecated, for removal: This API element is subject to removal in a future version.This method should update the PortalConfig object
Then broadcast PORTAL_CONFIG_UPDATED event- Parameters:
config-PortalConfig
-
getPortalConfig
Deprecated, for removal: This API element is subject to removal in a future version.This method should load the PortalConfig object from db according to the portalName- Parameters:
portalName-- Returns:
PortalConfig
-
getPortalConfig
Deprecated, for removal: This API element is subject to removal in a future version.This method should load the PortalConfig object from db according to the portalName and ownerType- Parameters:
ownerType-portalName-- Returns:
PortalConfig
-
getPortalConfig
Deprecated, for removal: This API element is subject to removal in a future version.RetrievesPortalConfigof designatedSiteKey- Parameters:
siteKey-SiteKey- Returns:
- null if not found, else
PortalConfig
-
remove
Deprecated, for removal: This API element is subject to removal in a future version.Remove the PortalConfig from the database
Then broadcast PORTAL_CONFIG_REMOVED event- Parameters:
config-PortalConfig
-
getPage
Deprecated, for removal: This API element is subject to removal in a future version.This method should load the Page object from the database according to the pageId- Parameters:
pageId- - String represent id of page, it must be valid pageId (3 parts saparate by :: )- Returns:
Page
-
getPage
Deprecated, for removal: This API element is subject to removal in a future version.Retrieves Page designated by its key -
remove
Deprecated, for removal: This API element is subject to removal in a future version. -
remove
Deprecated, for removal: This API element is subject to removal in a future version. -
create
Deprecated, for removal: This API element is subject to removal in a future version.This method should create or update the given page object
Then broasdcast PAGE_CREATED event- Parameters:
page-
-
save
Deprecated, for removal: This API element is subject to removal in a future version.Saves a page. If a page with the same id already exists then a merge operation will occur, otherwise it throwsIllegalStateException
The operation returns a list of the change object that describes the changes that occured during the save operation.
Then broadcast PAGE_UPDATED event- Parameters:
page- the page to save- Returns:
- the list of model changes that occurred during the save
-
getApplicationModel
Deprecated, for removal: This API element is subject to removal in a future version.RetrievedApplicationmodel switch its storage identifier- Type Parameters:
S- can be of typePortletonly, seeApplicationType- Parameters:
applicationStorageId-- Returns:
Application
-
getId
Deprecated, for removal: This API element is subject to removal in a future version.Return contentId according to each state (transient, persistent, clone)- Type Parameters:
S- can be of typePortletonly, seeApplicationType- Parameters:
state-- Returns:
ApplicationStateof typePortlet
-
load
Deprecated, for removal: This API element is subject to removal in a future version.Return content state. If can't find, return null- Type Parameters:
S- can be of typePortletonly, seeApplicationType- Parameters:
state- - ApplicationState objecttype- - ApplicationType object- Returns:
Portlet
-
save
Deprecated, for removal: This API element is subject to removal in a future version.Save content state- Type Parameters:
S- can be of typePortletonly, seeApplicationType- Parameters:
state- - ApplicationState object. It must be CloneApplicationState or PersistentApplicationState objectpreferences- - object to be saved- Returns:
ApplicationStatetyped withPortlet
-
find
Deprecated, for removal: This API element is subject to removal in a future version.Return LazyPageList of object (sorted) which type and other info determined in Query object- Type Parameters:
T- could be of typePageorPortalConfig- Parameters:
q- - Query objectsortComparator-Comparatorused for sorting results- Returns:
LazyPageList
-
find2
Deprecated, for removal: This API element is subject to removal in a future version.Return ListAccess, we can retrieved array of object (sorted) in database through this.- Type Parameters:
T- could be of typePageorPortalConfig- Parameters:
q- - Query objectsortComparator- - Comparator object, used to sort the result list- Returns:
LazyPageList
-
getAllPortalNames
Deprecated, for removal: This API element is subject to removal in a future version.since 6.4.0, usegetSiteNames(SiteType, int, int)instead- Returns:
- All portal site names
-
getAllGroupNames
Deprecated, for removal: This API element is subject to removal in a future version.since 6.4.0, usegetSiteNames(SiteType, int, int)instead- Returns:
- All group site names
-
getSiteNames
Deprecated, for removal: This API element is subject to removal in a future version.Retrieves all site type names with pagination. -
getImportStatus
Deprecated, for removal: This API element is subject to removal in a future version. -
saveImportStatus
Deprecated, for removal: This API element is subject to removal in a future version.
-
LayoutServicesince this is service layout and this interface name is ambiguous with storage layer