|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.intermine.api.bag.BagManager
public class BagManager
A BagManager provides access to all global and/or user bags and methods to fetch them by type, etc.
| Constructor Summary | |
|---|---|
BagManager(Profile superProfile,
Model model)
The BagManager references the super user profile to fetch global bags. |
|
| Method Summary | |
|---|---|
protected java.util.Map<java.lang.String,InterMineBag> |
getBagsWithTag(Profile profile,
java.lang.String tag)
Fetch bags from given protocol with a particular tag assigned to them. |
InterMineBag |
getGlobalBag(java.lang.String bagName)
Fetch a global bag by name. |
java.util.Map<java.lang.String,InterMineBag> |
getGlobalBags()
Fetch globally available bags - superuser public bags that are available to everyone. |
java.util.Collection<InterMineBag> |
getGlobalBagsContainingId(java.lang.Integer id)
Fetch global bags that contain the given id. |
java.util.Map<java.lang.String,InterMineBag> |
getUserAndGlobalBags(Profile profile)
Fetch all global bags and user bags combined in the same map. |
InterMineBag |
getUserBag(Profile profile,
java.lang.String bagName)
Fetch a user bag by name. |
java.util.Map<java.lang.String,InterMineBag> |
getUserBags(Profile profile)
Fetch bags for the given profile. |
java.util.Collection<InterMineBag> |
getUserBagsContainingId(Profile profile,
java.lang.Integer id)
Fetch user bags that contain the given id. |
InterMineBag |
getUserOrGlobalBag(Profile profile,
java.lang.String bagName)
Fetch a global or user bag by name. |
java.util.Collection<InterMineBag> |
getUserOrGlobalBagsContainingId(Profile profile,
java.lang.Integer id)
Fetch user or global bags that contain the given id. |
java.util.Map<java.lang.String,InterMineBag> |
getUserOrGlobalBagsOfType(Profile profile,
java.lang.String type)
Fetch global and user bags of the specified type or a subclass of the specified type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BagManager(Profile superProfile,
Model model)
superProfile - the super user profilemodel - the object model| Method Detail |
|---|
public java.util.Map<java.lang.String,InterMineBag> getGlobalBags()
protected java.util.Map<java.lang.String,InterMineBag> getBagsWithTag(Profile profile,
java.lang.String tag)
profile - the user to fetch bags fromtag - the tag to filter
public java.util.Map<java.lang.String,InterMineBag> getUserBags(Profile profile)
profile - the user to fetch bags for
public java.util.Map<java.lang.String,InterMineBag> getUserAndGlobalBags(Profile profile)
profile - the user to fetch bags for
public InterMineBag getGlobalBag(java.lang.String bagName)
bagName - the name of bag to fetch
public InterMineBag getUserBag(Profile profile,
java.lang.String bagName)
profile - the user to fetch bags forbagName - the name of bag to fetch
public InterMineBag getUserOrGlobalBag(Profile profile,
java.lang.String bagName)
profile - the user to fetch bags forbagName - the name of bag to fetch
public java.util.Map<java.lang.String,InterMineBag> getUserOrGlobalBagsOfType(Profile profile,
java.lang.String type)
profile - the user to fetch bags fortype - an unqualified class name
public java.util.Collection<InterMineBag> getGlobalBagsContainingId(java.lang.Integer id)
id - the id to search bags for
public java.util.Collection<InterMineBag> getUserBagsContainingId(Profile profile,
java.lang.Integer id)
id - the id to search bags forprofile - the user to fetch bags from
public java.util.Collection<InterMineBag> getUserOrGlobalBagsContainingId(Profile profile,
java.lang.Integer id)
id - the id to search bags forprofile - the user to fetch bags from
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||