public class MDEXState
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
DataSource
instead.
Note that with the exception of #getQueryState()
and setQueryState(QueryState)
this class is not thread safe. All other
getters and setters provided by this class are not synchronized.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CURRENTFUNCTIONS_PROPERTY |
static java.lang.String |
DESCRIPTION_PROPERTY |
static java.lang.String |
ID_PROPERTY |
protected java.util.List<IncompleteCollectionState> |
incompleteCollections |
protected QueryState |
initialState |
static java.lang.String |
NAME_PROPERTY |
static java.lang.String |
RESTRICTED_TO_ROLES_PROPERTY |
static java.lang.String |
RESTRICTED_TO_USERS_PROPERTY |
protected java.util.List<java.lang.String> |
restrictedToRoles |
protected java.util.List<java.lang.String> |
restrictedToUsers |
protected QueryState |
state |
protected java.lang.String |
statusMessage |
static java.lang.String |
VIEWMETADATA_PROPERTY |
Constructor and Description |
---|
MDEXState(long groupId,
javax.portlet.PortletRequest request) |
MDEXState(java.lang.String[] boundDatasets,
javax.portlet.PortletRequest request) |
Modifier and Type | Method and Description |
---|---|
MDEXState |
clone() |
java.lang.String[] |
getBoundDataSets() |
protected ViewCache<CollectionBaseView> |
getCollectionCache()
Intended to be called only by
CollectionManager , which synchronizes CRUD operations on the collection cache. |
java.util.List<IncompleteCollectionState> |
getIncompleteCollections() |
QueryState |
getInitialQueryState(javax.portlet.PortletRequest request)
Returns the initial
QueryState associated with this MDEXState , including any valid base functions present in the
MDEXState's configuration. |
java.util.Date |
getLastPinged() |
QueryState |
getQueryState(javax.portlet.PortletRequest request) |
long |
getQueryStateVersion() |
java.util.List<java.lang.String> |
getRestrictedToRoles() |
java.util.List<java.lang.String> |
getRestrictedToUsers() |
java.lang.String |
getStatusMessage() |
protected ViewCache<SemanticView> |
getViewCache()
Fetches the view cache.
|
java.util.List<ViewMetadata> |
getViewMetaDataList() |
boolean |
isAvailable()
Checks whether the index represented by this
MDEXState is currently available. |
boolean |
isAvailableByUserID(long userId) |
boolean |
isOnline()
Returns the cached availability of this index.
|
boolean |
needsRefreshBasedOnProjectInventoryVersion(long projectInventoryVersion) |
void |
resetQueryStateWithBaseFilter(javax.portlet.PortletRequest request) |
void |
setIncompleteCollections(java.util.List<IncompleteCollectionState> incompleteCollections) |
void |
setLastPinged(java.util.Date lastPinged) |
void |
setQueryState(QueryState dss)
Deprecated.
|
void |
setStatusMessage(java.lang.String statusMessage) |
protected void |
setupLinkedDatasetFilters(QueryState queryState,
javax.portlet.PortletRequest request)
If necessary, adds a
PrimaryDatasetJoinFilterset to achieve data set linked filtering configured for the current page. |
void |
setViewMetaDataList(java.util.List<ViewMetadata> viewMetaData) |
boolean |
updateStatus()
Updates the status of this MDEXState.
|
boolean |
validateGroupId(long groupId) |
protected QueryState state
protected QueryState initialState
protected java.lang.String statusMessage
protected java.util.List<IncompleteCollectionState> incompleteCollections
protected java.util.List<java.lang.String> restrictedToUsers
protected java.util.List<java.lang.String> restrictedToRoles
public static final java.lang.String NAME_PROPERTY
public static final java.lang.String DESCRIPTION_PROPERTY
public static final java.lang.String VIEWMETADATA_PROPERTY
public static final java.lang.String ID_PROPERTY
public static final java.lang.String CURRENTFUNCTIONS_PROPERTY
public static final java.lang.String RESTRICTED_TO_USERS_PROPERTY
public static final java.lang.String RESTRICTED_TO_ROLES_PROPERTY
public MDEXState(java.lang.String[] boundDatasets, javax.portlet.PortletRequest request)
public MDEXState(long groupId, javax.portlet.PortletRequest request)
public boolean isAvailable()
MDEXState
is currently available.
Note that this method uses caching for positive/OK status, and if the status was previously unavailable, calls to isAvailable()
will force a status check. To check that status without a status refresh, use isOnline()
.isOnline()
,
updateStatus()
public boolean isOnline()
isAvailable()
method.isAvailable()
public java.lang.String getStatusMessage()
public void setStatusMessage(java.lang.String statusMessage)
public java.util.List<java.lang.String> getRestrictedToUsers()
public java.util.List<java.lang.String> getRestrictedToRoles()
public void setIncompleteCollections(java.util.List<IncompleteCollectionState> incompleteCollections)
public java.util.List<IncompleteCollectionState> getIncompleteCollections()
public boolean isAvailableByUserID(long userId)
protected void setupLinkedDatasetFilters(QueryState queryState, javax.portlet.PortletRequest request)
PrimaryDatasetJoinFilterset
to achieve data set linked filtering configured for the current page. If such a
filter is already present in the QueryState, nothing more is done.public QueryState getQueryState(javax.portlet.PortletRequest request)
request
- @Deprecated public void setQueryState(QueryState dss)
DataSource
dss
- public void resetQueryStateWithBaseFilter(javax.portlet.PortletRequest request)
public QueryState getInitialQueryState(javax.portlet.PortletRequest request)
QueryState
associated with this MDEXState
, including any valid base functions present in the
MDEXState's configuration.protected ViewCache<SemanticView> getViewCache()
SemanticViewManager
, which synchronizes CRUD operations on the view cache.protected ViewCache<CollectionBaseView> getCollectionCache()
CollectionManager
, which synchronizes CRUD operations on the collection cache.public void setViewMetaDataList(java.util.List<ViewMetadata> viewMetaData)
public java.util.List<ViewMetadata> getViewMetaDataList()
public MDEXState clone()
clone
in class java.lang.Object
public boolean updateStatus()
public long getQueryStateVersion()
public java.util.Date getLastPinged()
public void setLastPinged(java.util.Date lastPinged)
public java.lang.String[] getBoundDataSets()
public boolean validateGroupId(long groupId)
public boolean needsRefreshBasedOnProjectInventoryVersion(long projectInventoryVersion)
Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.