|
Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Repository
This class is responsible for all persistence operations.
| Method Summary | ||
|---|---|---|
void |
commit()
Commits any changes to the persistent store. |
|
void |
create(NamedObject obj)
Saves a new named object, checking that it is unique. |
|
Query |
createQuery(String queryString)
Creates a Hibernate query using the given string. |
|
void |
delete(Object object)
Removes an object from the storage. |
|
void |
deleteAll()
This method delete all objects, subjects, categories and permissions from talos |
|
Capability |
findCapability(Subject subject,
Category category)
Looks up a capability in the storage. |
|
Capability |
findCapability(Subject subject,
SecureObject object)
Looks up a capability in the storage. |
|
|
get(Class<T> persistentClass,
Serializable persistentId)
Looks up an object from the storage. |
|
|
listAll(Class<T> clazz)
This method returns all objects from given class name |
|
Collection<Category> |
listCategories(Subject subject)
Looks up a Capability in the storage. |
|
|
load(Class<T> persistentClass,
Serializable persistentId)
Looks up an object from the storage. |
|
Collection<Capability> |
loadAllCapabilities(Category category)
This method returns all the capabilities that are related to a category. |
|
Collection<Capability> |
loadAllCapabilities(Collection<Permission> perms)
This method returns all the capabilities that are directly related to permissions. |
|
Collection<Capability> |
loadAllCapabilities(Permission perm)
This method returns all the capabilities that are directly related to a permission. |
|
Collection<Capability> |
loadAllCapabilities(SecureObject object)
This method returns all the capabilities that are related to a object. |
|
Collection<Capability> |
loadAllCapabilities(Subject subject)
This method returns all the capabilities that are related to a subject. |
|
void |
rollback()
Discards any changes to the persistent store. |
|
Serializable |
save(Object object)
Saves an object to the storage. |
|
| Method Detail |
|---|
<T> T load(Class<T> persistentClass,
Serializable persistentId)
throws EntityNotFoundException,
TalosHibernateException
T - the type of the object to loadpersistentClass - the object's classpersistentId - the object's id
EntityNotFoundException - if an object of the given type with a given persistentId
doesn't exist
TalosHibernateException - if a storage error occursget(Class, Serializable)
<T> T get(Class<T> persistentClass,
Serializable persistentId)
throws TalosHibernateException
T - the type of the object to loadpersistentClass - the object's classpersistentId - the object's id
TalosHibernateException - if a storage error occursload(Class, Serializable)
Serializable save(Object object)
throws TalosHibernateException
object - the object
TalosHibernateException - if a storage error occurscreate(NamedObject),
delete(Object)
void create(NamedObject obj)
throws UniqueNameException,
TalosHibernateException
obj - the new object
UniqueNameException - if thee's another object of the same type with this name
TalosHibernateException - if a storage error occurssave(Object),
delete(Object)
void delete(Object object)
throws TalosHibernateException
object - the persistent object to be deleted
TalosHibernateException - if a storage error occurscreate(NamedObject),
save(Object)
Capability findCapability(Subject subject,
SecureObject object)
throws TalosHibernateException
subject - the capability's subjectobject - the capability's object
TalosHibernateException - if a storage error occursfindCapability(Subject, Category),
loadAllCapabilities(Subject),
loadAllCapabilities(SecureObject)
Capability findCapability(Subject subject,
Category category)
throws TalosHibernateException
subject - the capability's subjectcategory - the capability's category
TalosHibernateException - if a storage error occursfindCapability(Subject, SecureObject),
loadAllCapabilities(Subject),
loadAllCapabilities(Category)
Collection<Category> listCategories(Subject subject)
throws TalosHibernateException
subject - the capability's subject
TalosHibernateException - if a storage error occursloadAllCapabilities(Subject),
loadAllCapabilities(Category)
Collection<Capability> loadAllCapabilities(Subject subject)
throws TalosHibernateException
subject - the subject
TalosHibernateException - if a storage error occurs
Collection<Capability> loadAllCapabilities(Category category)
throws TalosHibernateException
category -
TalosHibernateException - if a storage error occurs
Collection<Capability> loadAllCapabilities(SecureObject object)
throws TalosHibernateException
object - the object
TalosHibernateException - if a storage error occurs
void rollback()
throws TalosHibernateException
TalosHibernateException - if the rollback operation fails.Talos.rollback()
void commit()
throws TalosHibernateException
TalosHibernateException - if the changes cannot be committedTalos.commit()
Collection<Capability> loadAllCapabilities(Permission perm)
throws TalosHibernateException
perm - the permission
TalosHibernateException - if a storage error occurs
Collection<Capability> loadAllCapabilities(Collection<Permission> perms)
throws TalosHibernateException
perms - the permissions
TalosHibernateException - if a storage error occurs
Query createQuery(String queryString)
throws TalosHibernateException
queryString -
TalosHibernateException - if the query cannot be created.
<T> Collection<T> listAll(Class<T> clazz)
throws TalosHibernateException
T - the type of the object to load allclazz - the class
TalosHibernateException - if a storage error occurs
void deleteAll()
throws TalosHibernateException
TalosHibernateException - if a storage error occurs
|
Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||