@Deprecated public class MongoDbMetadataHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static com.mongodb.BasicDBObject |
ID_PROJECTION
Deprecated.
Quick projection for ID Only
|
| Modifier and Type | Method and Description |
|---|---|
static Result |
createOneResult(BuilderToken.FILTERARGS type)
Deprecated.
|
static Result |
createOneResult(BuilderToken.FILTERARGS type,
Collection<String> set)
Deprecated.
|
static com.mongodb.client.result.DeleteResult |
delete(MetadataCollections collection,
org.bson.conversions.Bson condition,
int nb)
Deprecated.
|
static MetadataDocument |
findOne(MetadataCollections col,
String id)
Deprecated.
Find the corresponding id in col collection if it exists.
|
static org.bson.conversions.Bson |
queryForAncestorsOrSame(Collection<String> targetIds,
Collection<String> ancestorIds)
Deprecated.
Used to filter Units/OG according to some Units ancestors
|
static com.mongodb.client.FindIterable<?> |
select(MetadataCollections collection,
org.bson.conversions.Bson condition,
org.bson.conversions.Bson projection)
Deprecated.
Does not call getAfterLoad.
|
static com.mongodb.client.FindIterable<?> |
select(MetadataCollections collection,
org.bson.conversions.Bson condition,
org.bson.conversions.Bson projection,
org.bson.conversions.Bson orderBy,
int offset,
int limit)
Deprecated.
Does not call getAfterLoad.
|
static com.mongodb.client.FindIterable<?> |
selectFiltered(com.mongodb.client.FindIterable<?> find,
org.bson.conversions.Bson orderBy,
int offset,
int limit)
Deprecated.
Aff orderBy and offset and limit if not null or not -1
|
public static final com.mongodb.BasicDBObject ID_PROJECTION
public static final MetadataDocument findOne(MetadataCollections col, String id)
col - (not results except if already hashed) the working collectionid - the id value for searching in collection fieldpublic static final com.mongodb.client.FindIterable<?> select(MetadataCollections collection, org.bson.conversions.Bson condition, org.bson.conversions.Bson projection)
collection - domain of requestcondition - where conditionprojection - select conditionpublic static final com.mongodb.client.FindIterable<?> select(MetadataCollections collection, org.bson.conversions.Bson condition, org.bson.conversions.Bson projection, org.bson.conversions.Bson orderBy, int offset, int limit)
collection - domain of requestcondition - where conditionprojection - select conditionorderBy - orderBy conditionoffset - offset (0 by default)limit - limit (0 for no limit)public static final com.mongodb.client.FindIterable<?> selectFiltered(com.mongodb.client.FindIterable<?> find,
org.bson.conversions.Bson orderBy,
int offset,
int limit)
find - orderBy - offset - limit - public static final com.mongodb.client.result.DeleteResult delete(MetadataCollections collection, org.bson.conversions.Bson condition, int nb) throws MetaDataExecutionException
collection - domain of requestcondition - where conditionnb - nb of item to deleteMetaDataExecutionException - if a mongo operation exception occurredpublic static final org.bson.conversions.Bson queryForAncestorsOrSame(Collection<String> targetIds, Collection<String> ancestorIds)
targetIds - set of target idsancestorIds - set of ancestor idspublic static Result createOneResult(BuilderToken.FILTERARGS type)
type - of filterpublic static Result createOneResult(BuilderToken.FILTERARGS type, Collection<String> set)
type - of filterset - of collection for creating ResultCopyright © 2018 Vitam. All rights reserved.