|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wm.app.tn.db.BizDocTypeStore
public class BizDocTypeStore
Type-based operations on the shared datastore. This class must be initialized with a call to fillCache. Subsequent calls to list or get will only refer to the in-memory cache. Insert, update and remove operations are write-through -- they will affect the cache and the database.
Constructor Summary | |
---|---|
BizDocTypeStore()
|
Method Summary | |
---|---|
static int |
delete(java.lang.String typeId,
boolean delDocuments)
|
static boolean |
disable(java.lang.String id)
For internal use only |
static boolean |
documentsExist(java.lang.String typeId)
|
static boolean |
enable(java.lang.String id)
For internal use only |
static void |
fillCache(boolean includeDeleted)
For internal use only |
static BizDocType |
get(java.lang.String id)
Get a type definition from the cache. |
static BizDocType |
get(java.lang.String id,
boolean returnDeleted)
Get a (possibly deleted) type definition from the cache. |
static BizDocType |
get(java.lang.String id,
boolean returnDeleted,
boolean returnHidden)
For internal use only |
static BizDocType |
getByName(java.lang.String name,
boolean returnDeleted,
boolean returnHidden)
Get a type definition by name |
static boolean |
insert(BizDocType t,
java.lang.String s)
For internal use only |
static java.lang.String[] |
list(boolean includeDeleted)
Returns a list of the IDs of all the items in the cache. |
static java.lang.String[] |
list(boolean includeDeleted,
boolean includeHidden)
Returns a list of the IDs of all the items in the cache. |
static SortedIDataList |
listByFilter(java.lang.String typeID,
java.lang.String typeName,
java.lang.String description,
java.lang.String disabled,
java.lang.String docDisplayType,
java.lang.String startDate,
java.lang.String endDate,
java.lang.String searchCondition)
List types in the cache. |
static com.wm.data.IData |
queryTypes(BDTypeQuery query,
int pageSize,
int maxRowCount,
int queryTimeout,
int threshold,
java.lang.String queryId)
TODO describe this method |
static java.lang.String[] |
queryTypes(java.lang.String searchStr)
Returns a list of the IDs of all the items based on the queryString. |
static java.lang.String[] |
queryTypes(java.lang.String searchStr,
boolean includeDeleted)
Returns a list of the IDs of all the items based on the queryString. |
static java.lang.String[] |
queryTypesWithDLS(java.lang.String searchStr,
boolean includeDeleted)
Returns a list of the IDs of all the items based on the queryString. |
static boolean |
update(BizDocType t)
For internal use only |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BizDocTypeStore()
Method Detail |
---|
public static void fillCache(boolean includeDeleted) throws DatastoreException
DatastoreException
public static java.lang.String[] queryTypes(java.lang.String searchStr) throws DatastoreException
searchString
- defines the search criteria
DatastoreException
public static java.lang.String[] queryTypes(java.lang.String searchStr, boolean includeDeleted) throws DatastoreException
searchString
- defines the search criteriaincludeDeleted
- specifies whether deleted documents need to be
returned
DatastoreException
public static java.lang.String[] queryTypesWithDLS(java.lang.String searchStr, boolean includeDeleted) throws DatastoreException
searchString
- defines the search criteriaincludeDeleted
- specifies whether deleted documents need to be
returned
DatastoreException
public static java.lang.String[] list(boolean includeDeleted)
includeDeleted
- should type definitions that are marked
as deleted be included in the listing? (this is meaningless if such
types were not fetched)
public static java.lang.String[] list(boolean includeDeleted, boolean includeHidden)
includeDeleted
- should type definitions that are marked
as deleted be included in the listing? (this is meaningless if such
types were not fetched)
public static BizDocType get(java.lang.String id)
id
- the ID of the type definition to fetch
public static BizDocType get(java.lang.String id, boolean returnDeleted)
id
- the ID of the type definition to fetchreturnDeleted
- if the type in question is marked as
deleted, should we return it anyway?
public static BizDocType get(java.lang.String id, boolean returnDeleted, boolean returnHidden)
public static BizDocType getByName(java.lang.String name, boolean returnDeleted, boolean returnHidden)
name
- the name of the type to fetchreturnDeleted
- if the type in question exists but is
deleted, should it be returned anyway? (meaningless if deleted
types were not initially fetched)
public static boolean insert(BizDocType t, java.lang.String s) throws DatastoreException, RestrictedFeatureException
DatastoreException
RestrictedFeatureException
public static boolean update(BizDocType t) throws DatastoreException
DatastoreException
public static int delete(java.lang.String typeId, boolean delDocuments) throws DatastoreException
DatastoreException
public static SortedIDataList listByFilter(java.lang.String typeID, java.lang.String typeName, java.lang.String description, java.lang.String disabled, java.lang.String docDisplayType, java.lang.String startDate, java.lang.String endDate, java.lang.String searchCondition)
includeDeleted
- should attribute definitions that are marked
as deleted be included in the listing? (this is meaningless if such
attributes were not fetched)
public static boolean documentsExist(java.lang.String typeId) throws DatastoreException
DatastoreException
public static boolean disable(java.lang.String id) throws DatastoreException
DatastoreException
public static boolean enable(java.lang.String id) throws DatastoreException
DatastoreException
public static com.wm.data.IData queryTypes(BDTypeQuery query, int pageSize, int maxRowCount, int queryTimeout, int threshold, java.lang.String queryId) throws DatastoreException, java.io.IOException, com.wm.app.repo.RepositoryException, com.wm.app.b2b.server.ServiceException
query
- pageSize
- maxRowCount
- queryTimeout
- threshold
- queryId
-
DatastoreException
java.io.IOException
com.wm.app.repo.RepositoryException
com.wm.app.b2b.server.ServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |