public interface RelationLoader
RelationLoader can then load all objects that are related to a given object. The types of relations are very dependent on the object type.
Modifier and Type | Method and Description |
---|---|
List<Section> |
getAccessibleSubSections(Section pSection)
Checks the section privilege and returns all accessible sections with its subsections for the currently logged in user.
|
Pool |
getActivePool(int sectionId,
int publicationId)
Retrieves the active pool of a section.
|
Pool |
getActivePool(Section section)
Retrieves the active pool of a section.
|
IORelation |
getActivePoolRelation(int sectionId,
int publicationId)
Retrieves the active pool of a section.
|
IORelation |
getActivePoolRelation(Section section)
Retrieves the active pool of a section.
|
Collection |
getArticleIds(int entityId,
int pubId)
Retrieves the ids of all articles related to the given entity.
|
int[] |
getArticleIdsInHomeSection(int sectionId,
int publicationId)
Deprecated.
use
getArticleIdsInHomeSection(int, int, boolean) instead |
int[] |
getArticleIdsInHomeSection(int sectionId,
int publicationId,
boolean excludeHidden)
Retrieves an array of article Ids for articles present in a section
|
int[] |
getArticleIdsInHomeSection(Section section)
Deprecated.
use
getArticleIdsInHomeSection(Section, boolean) instead |
int[] |
getArticleIdsInHomeSection(Section section,
boolean excludeHidden)
Retrieves an array of article Ids for articles present in a section.
|
Layout |
getArticleLayout(Article article)
Deprecated.
no replacement
|
IORelation |
getArticlePoolRelation(Article article,
Pool pool)
Retrieves the relation between the given article and pool.
|
List |
getArticlePoolRelations(Article article,
Pool pool)
Retrieves the relations between the given article and pool.
|
IORelation[] |
getArticleRoleKeepers(Article article)
Retrieves relations containing the given article and a person.
|
IORelation[] |
getArticleRoleKeepers(Article article,
Type paType)
Retrieves relations of the given type containing the given article and a person.
|
Article[] |
getArticles(int entityId,
int pubId)
Retrieves all articles related to the given entity.
|
Article[] |
getArticlesByRoleKeeper(Person p)
Retrieves all
Articles where given user has some role |
IORelation[] |
getArticlesInPool(int poolId,
int publicationId)
Retrieves all articles in a specified pool.
|
IORelation[] |
getArticlesInPool(int poolId,
int publicationId,
boolean onlyLive)
Retrieves all articles in a specified pool.
|
IORelation[] |
getArticlesInPool(int poolId,
int publicationId,
boolean onlyLive,
Date now)
Retrieves all articles in a specified pool.
|
IORelation[] |
getArticlesInPool(int poolId,
Publication pub)
Retrieves all articles in a specified pool.
|
IORelation[] |
getArticlesInPool(Pool pool)
Retrieves all articles in the specified pool.
|
IORelation[] |
getArticlesInPool(Pool pool,
boolean onlyLive)
Retrieves all articles in the specified pool.
|
IORelation[] |
getArticlesInPool(Pool pool,
boolean onlyLive,
Date now)
Retrieves all articles in the specified pool.
|
Article[] |
getArticlesInSection(int sectionId,
int publicationId)
Deprecated.
use
getArticlesInSection(int, int, boolean) instead |
Article[] |
getArticlesInSection(int sectionId,
int publicationId,
boolean excludeHidden)
Retrieves all articles present in a section.
|
Article[] |
getArticlesInSection(Section section)
Deprecated.
use
getArticlesInSection(Section, boolean) instead |
Article[] |
getArticlesInSection(Section section,
boolean excludeHidden)
Retrieves all articles present in a section.
|
EditableContentList |
getContentListForPool(ListPool pListPool)
Retrieves the
EditableContentList for the given ListPool |
Section |
getDefaultSection(int pubId)
Retrieves the default section of a given publication.
|
Section |
getDefaultSection(Publication pub)
Retrieves the default section of a given publication.
|
IORelation |
getPoolEntry(int pPoolEntryId) |
Layout |
getPoolLayout(int poolId)
Deprecated.
not in use anymore. This method will always throw an
UnsupportedOperationException |
Layout |
getPoolLayout(Pool pool)
Deprecated.
not in use anymore. This method will always throw an
UnsupportedOperationException |
IORelation[] |
getPoolRelations(int sectionId,
int publicationId)
Retrieves all pools in a section.
|
IORelation[] |
getPoolRelations(Section section)
Retrieves all pools in a section.
|
Pool[] |
getPools(int sectionId,
int publicationId)
Retrieves all pools in a section.
|
Pool[] |
getPools(Section section)
Retrieves all pools in a section.
|
Pool[] |
getPoolsWithArticle(Article article)
Retrieves all pools containing the given article.
|
Collection<ProtectionDomain> |
getProtectionDomains(Member pMember) |
Layout[] |
getPublicationLayouts(int pubId)
Deprecated.
|
Layout[] |
getPublicationLayouts(Publication pub)
Deprecated.
|
Collection<Integer> |
getPublicationRelations(int pPublicationId,
boolean pReverse)
Deprecated.
The related publication aka friendly publication concept is not used any more.
Add the appropriate
ProtectionDomain and list of roles to the user instead. |
int[] |
getPublicationsWithArticle(int articleId)
Retrieves the ids of all publications where the given articlen is used.
|
ReferenceEntity[] |
getReferenceEntities(Article article)
Retrieves all
ReferenceEntity objects that are related to the give article. |
IORelation[] |
getReferredEntities(Article article)
Retrieves all relations between the given article and ReferenceEntities.
|
IORelation[] |
getReferredEntities(Article article,
ReferenceEntity entity,
Type referenceType) |
IORelation[] |
getReferredEntities(Article article,
ReferenceEntity entity,
Type[] referenceTypes) |
IORelation[] |
getReferredEntities(Article article,
Type referenceType)
Retrieves all relations of the given type between the given article and ReferenceEntities.
|
IORelation[] |
getReferredEntities(Article article,
Type[] referenceTypes)
Retrieves all relations of the given types between the given article and ReferenceEntities.
|
IORelation[] |
getReferredPersons(Article article)
Convenience method to retrieve all related persons from the given article.
|
IORelation[] |
getReferringArticleRelations(ReferenceEntity ref) |
IORelation[] |
getReferringArticleRelations(ReferenceEntity ref,
Type refType) |
Article[] |
getReferringArticles(ReferenceEntity ref)
Retrieves all articles that are related to the given
ReferenceEntity object. |
Article[] |
getReferringArticles(ReferenceEntity ref,
Type refType)
Retrieves all articles that are related to the given ReferenceEntity with the given type.
|
Article[] |
getReferringArticles(ReferenceEntity ref,
Type refType,
String match)
Deprecated.
|
IORelation[] |
getRelatedArticles(Article article)
Retrieves all relations containing the given article and another article.
|
IORelation[] |
getRelatedArticles(Article article,
boolean pForward)
Retrieves all relations containing the given article and another article in a direction.
|
IORelation[] |
getRelatedArticles(Article article,
Type relType)
Retrieves all relations of the given type containing the given article and another article.
|
Collection |
getRelatedUserGroups(Section section)
Retrieve all
UserGroups that have roles on this section. |
Collection |
getRelatedUsers(Section section)
Retrieve all users that have roles on this section.
|
Person[] |
getRoleKeepers(Article article,
Type paType)
Retrieves persons that have the given role on this article.
|
Section |
getRootSection(int pubId)
Retrieves the root section of a given publication.
|
Section |
getRootSection(Publication pub)
Retrieves the root section of a given publication.
|
int |
getRootSectionId(int pubId)
Retrieves the id of the root section of a given publication.
|
int |
getRootSectionId(Publication pub)
Retrieves the id of the root section of a given publication.
|
Section |
getSection(Pool pool)
Retrieves the section belonging to the given pool.
|
Layout[] |
getSectionLayouts(int sectionId)
Deprecated.
not implemented yet
|
Layout[] |
getSectionLayouts(Section section)
Deprecated.
not implemented yet
|
Section[] |
getSectionsWithArticle(Article article)
Retrieves all sections that contain the given article.
|
Section[] |
getSectionsWithArticle(Article article,
boolean includeVirtualSections) |
Section[] |
getSectionsWithArticle(Article article,
int codeId)
Retrieves all sections that contain the given article.
|
Section[] |
getSectionsWithArticle(int articleId,
boolean includeVirtualSections) |
Section[] |
getSectionsWithArticle(int articleId,
int codeId)
Retrieves all sections that contain the given article.
|
Section[] |
getSectionsWithArticleExludeType(Article article,
int codeId)
Works very much like
getSectionsWithArticle(neo.xredsys.api.Article) , but you can specifiy
one type of section to exlude. |
Section[] |
getSectionsWithArticleExludeType(Article article,
int codeId,
boolean includeVirtualSections)
Works very much like
getSectionsWithArticle(neo.xredsys.api.Article) , but you can specifiy
one type of section to exlude. |
int |
getSubSectionByDirectoryName(int pParentSection,
String pDirectoryName)
Retrieves a section ID based on a parent section ID and a directory name to resolve for a match.
|
IOHashKey[] |
getSubSectionKeys(int sectionId,
int publicationId)
Retrieves all sectionIds contained below given parent section.
|
Section[] |
getSubSections(int sectionId,
int publicationId)
Retrieves all sections contained in a parent section.
|
Section[] |
getSubSections(Section section)
Retrieves all sections contained in a parent section.
|
Topic[] |
getTopicsWithArticle(Article article)
Retrieves all topics containing the given article.
|
Collection<UserGroup> |
getUserGroups(int pPublicationId,
Member pPerson)
Gets the groups of which the user is a member of in the given publication.
|
Collection<UserGroup> |
getUserGroups(Member pPerson)
Gets the groups of which the user is a member of in all publications.
|
Collection<UserGroup> |
getUserGroupsFromUserGroup(UserGroup userGroup)
Retrieve all
UserGroups that are members of this UserGroup . |
Collection<User> |
getUsersFromUserGroup(UserGroup userGroup)
Retrieve all users that are members of this
UserGroup . |
IOHashKey[] |
getVirtualSectionsForSource(IOHashKey pSection)
Retrieves all virtual sections which use the particular section as a source.
|
boolean |
isInSection(int articleId,
int sectionId)
Checks wether or not the given article is in the given section.
|
boolean |
isInTopic(int articleId,
int topicId)
Deprecated.
topic is not supported anymore
|
boolean |
isMember(Member pMember,
UserGroup pUserGroup)
|
int[] getPublicationsWithArticle(int articleId) throws PersistentStoreException, NoSuchObjectException
articleId
- the id of the article to search for publicationsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if the article does not exist in the databaseSection[] getSectionsWithArticle(Article article) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for when retrieving sectionsSection
objects containing the given articlePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existSection[] getSectionsWithArticleExludeType(Article article, int codeId) throws PersistentStoreException, NoSuchObjectException
getSectionsWithArticle(neo.xredsys.api.Article)
, but you can specifiy
one type of section to exlude.article
- the article to search for when retrieving sectionscodeId
- type of the sections to exludeSection
objects containing the given articlePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existSection[] getSectionsWithArticleExludeType(Article article, int codeId, boolean includeVirtualSections) throws PersistentStoreException, NoSuchObjectException
getSectionsWithArticle(neo.xredsys.api.Article)
, but you can specifiy
one type of section to exlude. It is also possible to specify if the
virtual sections shall be included in the array or not.article
- the article to search for when retrieving sectionscodeId
- type of the sections to exludeincludeVirtualSections
- if this is set to true the virtualsections are
included in the arraySection
objects containing the given articlePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existSection[] getSectionsWithArticle(Article article, int codeId) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for when retrieving sectionscodeId
- the type of sections to retrieveSection
objects containing the given articlePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existSection[] getSectionsWithArticle(Article article, boolean includeVirtualSections) throws PersistentStoreException, NoSuchObjectException
Section[] getSectionsWithArticle(int articleId, int codeId) throws PersistentStoreException, NoSuchObjectException
articleId
- the id of the article to search for when retrieving sectionscodeId
- the type of sections to retrieveSection
objects containing the given articlePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existSection[] getSectionsWithArticle(int articleId, boolean includeVirtualSections) throws PersistentStoreException, NoSuchObjectException
Topic[] getTopicsWithArticle(Article article) throws PersistentStoreException, NoSuchObjectException
article
- articleId the id of the article to search for when
retrieving topicsTopic
objects containing the given articlePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not
existArticle[] getArticlesInSection(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
getArticlesInSection(int, int, boolean)
insteadsectionId
- the id of the section to search for articlespublicationId
- the id of the publication to search for articlesArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existArticle[] getArticlesInSection(int sectionId, int publicationId, boolean excludeHidden) throws PersistentStoreException, NoSuchObjectException
sectionId
- the id of the section to search for articlespublicationId
- the id of the publication to search for articlesexcludeHidden
- true if hidden articles should be excludedArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existboolean isInSection(int articleId, int sectionId) throws PersistentStoreException, NoSuchObjectException
articleId
- the id of the article to find in sectionsectionId
- the id of the section to search for the given articlePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existboolean isInTopic(int articleId, int topicId) throws NoSuchObjectException
articleId
- the id of the article to find in topictopicId
- the id of the topic to search for the given articlePersistentStoreException
- if some database error occursNoSuchObjectException
- if refering to an IOObject that does not existArticle[] getArticlesInSection(Section section) throws PersistentStoreException, NoSuchObjectException
getArticlesInSection(Section, boolean)
insteadsection
- the section to search for articlesArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existArticle[] getArticlesInSection(Section section, boolean excludeHidden) throws PersistentStoreException, NoSuchObjectException
section
- the section to search for articlesexcludeHidden
- true if hidden articles should be excludedArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existint[] getArticleIdsInHomeSection(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
getArticleIdsInHomeSection(int, int, boolean)
insteadsectionId
- the id of the section to search for articlespublicationId
- the id of the publication to search for articlesArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existint[] getArticleIdsInHomeSection(int sectionId, int publicationId, boolean excludeHidden) throws PersistentStoreException, NoSuchObjectException
sectionId
- the id of the section to search for articlespublicationId
- the id of the publication to search for articlesexcludeHidden
- true if hidden articles should be excludedArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existint[] getArticleIdsInHomeSection(Section section) throws PersistentStoreException, NoSuchObjectException
getArticleIdsInHomeSection(Section, boolean)
insteadsection
- the section to search for articlesArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existint[] getArticleIdsInHomeSection(Section section, boolean excludeHidden) throws PersistentStoreException, NoSuchObjectException
section
- the section to search for articlesexcludeHidden
- true if hidden articles should be excludedArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existPool[] getPoolsWithArticle(Article article) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for when retrieving poolsPool
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getArticlesInPool(int poolId, int publicationId) throws PersistentStoreException, NoSuchObjectException
poolId
- the id of the pool to search for articlespublicationId
- the id of the publication that owns the poolArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getArticlesInPool(int poolId, int publicationId, boolean onlyLive) throws PersistentStoreException, NoSuchObjectException
poolId
- the id of the pool to search for articlespublicationId
- the id of the publication that owns the poolonlyLive
- true if only live articles should be retrieved; false otherwise. An article is live if the time right now is between the article's activate date and its expire date.Article
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getArticlesInPool(int poolId, int publicationId, boolean onlyLive, Date now) throws PersistentStoreException, NoSuchObjectException
poolId
- the id of the pool to search for articlespublicationId
- the id of the publication that owns the poolonlyLive
- true if only live articles should be retrieved; false otherwise. An article is live if the time right now is between the article's activate date and its expire date.now
- if not null, current time will be set to given time when retrieving live articlesIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getArticlesInPool(Pool pool) throws PersistentStoreException, NoSuchObjectException
pool
- the pool to search for articlesArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getArticlesInPool(Pool pool, boolean onlyLive) throws PersistentStoreException, NoSuchObjectException
pool
- the pool to search for articlesonlyLive
- true if only live articles should be retrieved; false otherwise. An article is live if the time right now is between the article's activate date and its expire date.Article
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
IORelation[] getArticlesInPool(Pool pool, boolean onlyLive, Date now) throws PersistentStoreException, NoSuchObjectException
pool
- the pool to search for articlesonlyLive
- true if only live articles should be retrieved; false otherwise. An article is live if the time right now is between the article's activate date and its expire date.now
- if not null, current time will be set to given time when retrieving live articlesArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
IORelation[] getArticlesInPool(int poolId, Publication pub) throws PersistentStoreException, NoSuchObjectException
poolId
- the id of the pool to search for articlespub
- the publication the pool belongs toArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation getArticlePoolRelation(Article article, Pool pool) throws PersistentStoreException, NoSuchObjectException
article
- the article that is related to the given poolpool
- the pool that is related to the given articleIORelation
objectPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existList getArticlePoolRelations(Article article, Pool pool) throws PersistentStoreException, NoSuchObjectException
article
- the article that is related to the given poolpool
- the pool that is related to the given articleList
of IORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getReferredEntities(Article article, ReferenceEntity entity, Type[] referenceTypes) throws PersistentStoreException, NoSuchObjectException
IORelation[] getReferredEntities(Article article, ReferenceEntity entity, Type referenceType) throws PersistentStoreException, NoSuchObjectException
IORelation[] getReferredEntities(Article article) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for relationsIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existReferenceEntity[] getReferenceEntities(Article article) throws PersistentStoreException, NoSuchObjectException
ReferenceEntity
objects that are related to the give article.article
- the article to search for relationsReferenceEntity
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getReferredEntities(Article article, Type referenceType) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for relationsreferenceType
- the type of relations to search forIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getReferredEntities(Article article, Type[] referenceTypes) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for relationsreferenceTypes
- the types of relations to search forIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getReferredPersons(Article article) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for related personsIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existArticle[] getReferringArticles(ReferenceEntity ref) throws PersistentStoreException, NoSuchObjectException
ReferenceEntity
object.ref
- the ReferenceEntity
object to search for related articlesArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getReferringArticleRelations(ReferenceEntity ref)
IORelation[] getReferringArticleRelations(ReferenceEntity ref, Type refType)
Article[] getReferringArticles(ReferenceEntity ref, Type refType) throws PersistentStoreException, NoSuchObjectException
ref
- the ReferenceEntity
object to search for related articlesrefType
- the type of relations to search forArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not exist@Deprecated Article[] getReferringArticles(ReferenceEntity ref, Type refType, String match) throws PersistentStoreException, NoSuchObjectException
getReferringArticles(ReferenceEntity, Type)
ReferenceEntity
object.ref
- the ReferenceEntity
object to search for related articlesrefType
- thematch
- PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existArticle[] getArticles(int entityId, int pubId) throws PersistentStoreException, NoSuchObjectException
entityId
- the id of the entity to search for related articlespubId
- the id of the publication to retrieve these articles fromArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existCollection getArticleIds(int entityId, int pubId) throws PersistentStoreException, NoSuchObjectException
entityId
- the id of the entity to search for related articlespubId
- the id of the publication to retrieve these articles fromCollection
of article idsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existLayout getArticleLayout(Article article) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for layoutPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getArticleRoleKeepers(Article article) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for related personsIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getArticleRoleKeepers(Article article, Type paType) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for related personspaType
- the type of relations to retrieveIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existPerson[] getRoleKeepers(Article article, Type paType) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for related personspaType
- the role persons must have on this articlePerson
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getRelatedArticles(Article article) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for related articlesIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getRelatedArticles(Article article, boolean pForward) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for related articlespForward
- direction of the relationIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getRelatedArticles(Article article, Type relType) throws PersistentStoreException, NoSuchObjectException
article
- the article to search for related articlesrelType
- the type of relations to search forIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existSection[] getSubSections(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
sectionId
- the id of the parent sectionpublicationId
- the id of the publication to search inSection
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIOHashKey[] getSubSectionKeys(int sectionId, int publicationId) throws PersistentStoreException
sectionId
- the id of the parent sectionpublicationId
- the id of the publication to search inIOHashKey
objectsPersistentStoreException
- if an error occurs in the persistence layerSection[] getSubSections(Section section) throws PersistentStoreException, NoSuchObjectException
section
- the parent sectionSection
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIOHashKey[] getVirtualSectionsForSource(IOHashKey pSection) throws PersistentStoreException, NoSuchObjectException
pSection
- the parent sectionIOHashKey
objects representing
the virtual sectionsPersistentStoreException
- if an error occurs in the
persistence layerNoSuchObjectException
- if referring to
an IOObject
that does not existPool[] getPools(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
sectionId
- the id of the sectionpublicationId
- the id of the publication to search inPool
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getPoolRelations(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
sectionId
- the id of the sectionpublicationId
- the id of the publication to search inIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existPool[] getPools(Section section) throws PersistentStoreException, NoSuchObjectException
section
- the sectionPool
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation[] getPoolRelations(Section section) throws PersistentStoreException, NoSuchObjectException
section
- the sectionIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existPool getActivePool(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
sectionId
- the id of the sectionpublicationId
- the id of the publication to search inPool
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation getActivePoolRelation(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
sectionId
- the id of the sectionpublicationId
- the id of the publication to search inIORelation
objectPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existPool getActivePool(Section section) throws PersistentStoreException, NoSuchObjectException
section
- the section to retrieve active pool fromPool
objectPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existIORelation getActivePoolRelation(Section section) throws PersistentStoreException, NoSuchObjectException
section
- the section to retrieve active pool fromIORelation
objectPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existSection getSection(Pool pool) throws PersistentStoreException, NoSuchObjectException
pool
- the pool to retrieve this section fromSection
objectPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existLayout[] getSectionLayouts(int sectionId) throws PersistentStoreException, NoSuchObjectException
Layout[] getSectionLayouts(Section section) throws PersistentStoreException, NoSuchObjectException
Section getRootSection(int pubId) throws PersistentStoreException, NoSuchObjectException
pubId
- the id of the publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existSection getRootSection(Publication pub) throws PersistentStoreException, NoSuchObjectException
pub
- the publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existint getRootSectionId(int pubId) throws PersistentStoreException, NoSuchObjectException
pubId
- the id of the publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existint getRootSectionId(Publication pub) throws PersistentStoreException, NoSuchObjectException
pub
- the publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existList<Section> getAccessibleSubSections(Section pSection)
pSection
- Section
Section getDefaultSection(int pubId) throws PersistentStoreException, NoSuchObjectException
pubId
- the id of the publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existSection getDefaultSection(Publication pub) throws PersistentStoreException, NoSuchObjectException
pub
- the publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existLayout getPoolLayout(int poolId) throws PersistentStoreException, NoSuchObjectException
UnsupportedOperationException
poolId
- the id of the pool to retrieve this layout fromLayout
objectPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existLayout getPoolLayout(Pool pool) throws PersistentStoreException, NoSuchObjectException
UnsupportedOperationException
pool
- the pool to retrieve this layout fromPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existLayout[] getPublicationLayouts(int pubId) throws PersistentStoreException, NoSuchObjectException
pubId
- the id of the publication to retrieve the layouts fromLayout
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existLayout[] getPublicationLayouts(Publication pub) throws PersistentStoreException, NoSuchObjectException
pub
- the publication to retrieve the layouts fromLayout
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existCollection<UserGroup> getUserGroupsFromUserGroup(UserGroup userGroup) throws NoSuchObjectException
UserGroups
that are members of this UserGroup
.userGroup
- the UserGroup
to retrieve members fromNoSuchObjectException
- if some LDAP error occursCollection<User> getUsersFromUserGroup(UserGroup userGroup) throws NoSuchObjectException
UserGroup
.userGroup
- the UserGroup
to retrieve members fromNoSuchObjectException
- if some LDAP error occursCollection getRelatedUsers(Section section) throws NoSuchObjectException
section
- the section to search for users with rolesNoSuchObjectException
- if some LDAP error occursCollection getRelatedUserGroups(Section section) throws NoSuchObjectException
UserGroups
that have roles on this section.section
- the section to search for UserGroups
with rolesPersistentStoreException
- if some db error occursNoSuchObjectException
Article[] getArticlesByRoleKeeper(Person p) throws PersistentStoreException, NoSuchObjectException
Articles
where given user has some rolep
- person The person to find roles forNoSuchObjectException
- if some LDAP error occursPersistentStoreException
- if some db error occurs@Deprecated Collection<Integer> getPublicationRelations(int pPublicationId, boolean pReverse) throws UnsupportedOperationException
ProtectionDomain
and list of roles to the user instead.UnsupportedOperationException
- always.int getSubSectionByDirectoryName(int pParentSection, String pDirectoryName) throws PersistentStoreException
pParentSection
- the ID of the parent section of the section to be resolvedpDirectoryName
- the directory name of the section to be resolvedPersistentStoreException
- if some db error occursEditableContentList getContentListForPool(ListPool pListPool) throws PersistentStoreException, NoSuchObjectException
EditableContentList
for the given ListPool
pListPool
- the poolEditableContentList
for the given ListPool
PersistentStoreException
- if retrieving the list failsNoSuchObjectException
- if the pool has no related content listIORelation getPoolEntry(int pPoolEntryId)
Collection<UserGroup> getUserGroups(Member pPerson)
pPerson
- is a Person
Collection<UserGroup>
PersistentStoreException
- if retrieving the user groups failsCollection<UserGroup> getUserGroups(int pPublicationId, Member pPerson)
pPublicationId
- is the ID of the publicationpPerson
- is a Person
Collection<UserGroup>
.PersistentStoreException
- if retrieving the user groups failsCollection<ProtectionDomain> getProtectionDomains(Member pMember)
© 1998- 2021 Escenic AS