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 | Class and Description |
---|---|
static class |
MDEXState.ReadOnlyCause
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CURRENTFUNCTIONS_PROPERTY |
static java.lang.String |
DESCRIPTION_PROPERTY |
protected java.lang.String |
id
Deprecated.
|
static java.lang.String |
ID_PROPERTY |
protected java.util.List<IncompleteCollectionState> |
incompleteCollections |
protected QueryState |
initialState |
protected java.lang.String |
name
Deprecated.
|
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(org.json.JSONObject configuration,
javax.portlet.PortletRequest request)
Deprecated.
use
#MDEXState(String, String, String, SSLConfig, PortletRequest) instead |
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.lang.String |
getDescription()
Deprecated.
|
java.lang.String |
getId()
Deprecated.
|
java.util.List<IncompleteCollectionState> |
getIncompleteCollections() |
org.json.JSONObject |
getInitialConfiguration()
Deprecated.
|
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() |
java.lang.String |
getName()
Deprecated.
|
QueryState |
getQueryState(javax.portlet.PortletRequest request) |
long |
getQueryStateVersion() |
MDEXState.ReadOnlyCause |
getReadOnlyCause()
Deprecated.
no more read-only mode
|
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 |
isUpdatable()
Deprecated.
no more read-only mode
|
boolean |
isValid()
Deprecated.
|
void |
lockTransaction() |
void |
resetQueryStateWithBaseFilter(javax.portlet.PortletRequest request) |
void |
setBoundDataSets(java.lang.String[] boundDataSets) |
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) |
org.json.JSONObject |
toJSON()
Deprecated.
remove code that serialized MDEXState to JSON
|
java.lang.String |
toSerializedString()
Deprecated.
remove code that serialized MDEXState to JSON
|
java.lang.String |
toString()
Deprecated.
remove code that serialized MDEXState to JSON
|
void |
unlockTransaction() |
boolean |
updateStatus()
Updates the status of this MDEXState.
|
boolean |
validateGroupId(long groupId) |
@Deprecated protected java.lang.String id
@Deprecated protected java.lang.String name
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
@Deprecated public MDEXState(org.json.JSONObject configuration, javax.portlet.PortletRequest request) throws java.lang.IllegalArgumentException
#MDEXState(String, String, String, SSLConfig, PortletRequest)
insteadconfiguration
- request
- java.lang.IllegalArgumentException
public MDEXState(java.lang.String[] boundDatasets, javax.portlet.PortletRequest request)
public MDEXState(long groupId, javax.portlet.PortletRequest request)
@Deprecated public java.lang.String getId()
@Deprecated public java.lang.String getName()
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()
@Deprecated public boolean isUpdatable()
@Deprecated public MDEXState.ReadOnlyCause getReadOnlyCause()
@Deprecated public boolean isValid()
@Deprecated public java.lang.String getDescription()
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)
@Deprecated public org.json.JSONObject getInitialConfiguration()
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.@Deprecated public java.lang.String toString()
toString
in class java.lang.Object
@Deprecated public org.json.JSONObject toJSON() throws org.json.JSONException
org.json.JSONException
public void setViewMetaDataList(java.util.List<ViewMetadata> viewMetaData)
public java.util.List<ViewMetadata> getViewMetaDataList()
@Deprecated public java.lang.String toSerializedString()
public MDEXState clone()
clone
in class java.lang.Object
public boolean updateStatus()
public void lockTransaction()
public void unlockTransaction()
public long getQueryStateVersion()
public java.util.Date getLastPinged()
public void setLastPinged(java.util.Date lastPinged)
public java.lang.String[] getBoundDataSets()
public void setBoundDataSets(java.lang.String[] boundDataSets)
public boolean validateGroupId(long groupId)
Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.