public class IORelationLoader extends AbstractNurseryService implements RelationLoader
GenericService.StartCommand, GenericService.StopCommand
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
cat
Deprecated.
|
CLASS_VERSION
mLogger, state
Constructor and Description |
---|
IORelationLoader()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
neo.xredsys.dao.AccessControlListDAO |
getAccessControlListDAO()
Deprecated.
|
List<Section> |
getAccessibleSubSections(Section pSection)
Deprecated.
Checks the section privilege and returns all accessible sections with its subsections for the currently logged in user.
|
neo.xredsys.acl.ACLManager |
getACLManager()
Deprecated.
|
Pool |
getActivePool(int sectionId,
int publicationId)
Deprecated.
Retrieves the active pool of a section.
|
Pool |
getActivePool(Section section)
Deprecated.
Retrieves the active pool of a section.
|
IORelation |
getActivePoolRelation(int sectionId,
int publicationId)
Deprecated.
Retrieves the active pool of a section.
|
IORelation |
getActivePoolRelation(Section section)
Deprecated.
Retrieves the active pool of a section.
|
Collection |
getArticleIds(int entityId,
int pubId)
Deprecated.
Retrieves the ids of all articles related to the given entity.
|
int[] |
getArticleIdsInHomeSection(int sectionId,
int publicationId)
Deprecated.
Retrieves an array of article Ids for articles present in a section
NOTE: This method does not include hidden articles.
|
int[] |
getArticleIdsInHomeSection(int sectionId,
int publicationId,
boolean excludeHidden)
Deprecated.
Retrieves an array of article Ids for articles present in a section
|
int[] |
getArticleIdsInHomeSection(Section section)
Deprecated.
Retrieves an array of article Ids for articles present in a section.
|
int[] |
getArticleIdsInHomeSection(Section section,
boolean excludeHidden)
Deprecated.
Retrieves an array of article Ids for articles present in a section.
|
Layout |
getArticleLayout(Article article)
Deprecated.
Retrieves the layout of this article.
|
IORelation |
getArticlePoolRelation(Article article,
Pool pool)
Deprecated.
Retrieves the relation between the given article and pool.
|
List |
getArticlePoolRelations(Article article,
Pool pool)
Deprecated.
Retrieves the relations between the given article and pool.
|
IORelation[] |
getArticleRoleKeepers(Article article)
Deprecated.
Retrieves relations containing the given article and a person.
|
IORelation[] |
getArticleRoleKeepers(Article article,
Type paType)
Deprecated.
Retrieves relations of the given type containing the given article and a person.
|
Article[] |
getArticles(int entityId,
int pubId)
Deprecated.
Retrieves all articles related to the given entity.
|
Article[] |
getArticlesByRoleKeeper(Person p)
Deprecated.
Retrieves all
Articles where given user has some role |
IORelation[] |
getArticlesInPool(int poolId,
int publicationId)
Deprecated.
Retrieves all articles in a specified pool.
|
IORelation[] |
getArticlesInPool(int poolId,
int publicationId,
boolean pOnlyLive)
Deprecated.
Retrieves all articles in a specified pool.
|
IORelation[] |
getArticlesInPool(int poolId,
int publicationId,
boolean pOnlyLive,
Date now)
Deprecated.
Retrieves all articles in a specified pool.
|
IORelation[] |
getArticlesInPool(int poolId,
Publication pub)
Deprecated.
Retrieves all articles in a specified pool.
|
IORelation[] |
getArticlesInPool(Pool pool)
Deprecated.
Retrieves all articles in the specified pool.
|
IORelation[] |
getArticlesInPool(Pool pool,
boolean pOnlyLive)
Deprecated.
Retrieves all articles in the specified pool.
|
IORelation[] |
getArticlesInPool(Pool pool,
boolean pOnlyLive,
Date now)
Deprecated.
Retrieves all articles in the specified pool.
|
Article[] |
getArticlesInSection(int sectionId,
int publicationId)
Deprecated.
Retrieves all articles present in a section.
|
Article[] |
getArticlesInSection(int sectionId,
int publicationId,
boolean excludeHidden)
Deprecated.
Retrieves all articles present in a section.
|
Article[] |
getArticlesInSection(Section section)
Deprecated.
Retrieves all articles present in a section.
|
Article[] |
getArticlesInSection(Section section,
boolean excludeHidden)
Deprecated.
Retrieves all articles present in a section.
|
EditableContentList |
getContentListForPool(ListPool pListPool)
Deprecated.
Retrieves the
EditableContentList for the given ListPool |
Section |
getDefaultSection(int pubId)
Deprecated.
Retrieves the default section of a given publication.
|
Section |
getDefaultSection(Publication pub)
Deprecated.
Retrieves the default section of a given publication.
|
Indexer |
getIndexer()
Deprecated.
|
int |
getMaxInboxSize()
Deprecated.
|
int |
getMaxListSize()
Deprecated.
|
neo.xredsys.auth.PermissionChecker |
getPermissionChecker()
Deprecated.
|
IORelation |
getPoolEntry(int pPoolEntryId)
Deprecated.
|
Layout |
getPoolLayout(int poolId)
Deprecated.
Retrieves the layout belonging to the given pool.
|
Layout |
getPoolLayout(Pool pool)
Deprecated.
Retrieves the layout belonging to the given pool.
|
IORelation[] |
getPoolRelations(int sectionId,
int publicationId)
Deprecated.
Retrieves all pools in a section.
|
IORelation[] |
getPoolRelations(Section section)
Deprecated.
Retrieves all pools in a section.
|
Pool[] |
getPools(int sectionId,
int publicationId)
Deprecated.
Retrieves all pools in a section.
|
Pool[] |
getPools(Section section)
Deprecated.
Retrieves all pools in a section.
|
Pool[] |
getPoolsWithArticle(Article article)
Deprecated.
Retrieves all pools containing the given article.
|
Collection<ProtectionDomain> |
getProtectionDomains(Member pMember)
Deprecated.
|
Layout[] |
getPublicationLayouts(int pPubId)
Deprecated.
Retrieves all layouts belonging to the given publication.
|
Layout[] |
getPublicationLayouts(Publication pPublication)
Deprecated.
Gets all layouts for a given publication.
|
Collection<Integer> |
getPublicationRelations(int pPublicationId,
boolean pReverse)
Deprecated.
|
int[] |
getPublicationsWithArticle(int articleId)
Deprecated.
Retrieves the ids of all publications where the given articlen is used.
|
ReferenceEntity[] |
getReferenceEntities(Article article)
Deprecated.
Retrieves all
ReferenceEntity objects that are related to the give article. |
IORelation[] |
getReferredEntities(Article article)
Deprecated.
Retrieves all relations between the given article and ReferenceEntities.
|
IORelation[] |
getReferredEntities(Article article,
ReferenceEntity entity,
Type referenceType)
Deprecated.
|
IORelation[] |
getReferredEntities(Article article,
ReferenceEntity entity,
Type[] referenceTypes)
Deprecated.
|
IORelation[] |
getReferredEntities(Article article,
Type referenceType)
Deprecated.
Retrieves all relations of the given type between the given article and ReferenceEntities.
|
IORelation[] |
getReferredEntities(Article article,
Type[] referenceTypes)
Deprecated.
Retrieves all relations of the given types between the given article and ReferenceEntities.
|
IORelation[] |
getReferredPersons(Article article)
Deprecated.
Convenience method to retrieve all related persons from the given article.
|
IORelation[] |
getReferringArticleRelations(ReferenceEntity ref)
Deprecated.
|
IORelation[] |
getReferringArticleRelations(ReferenceEntity ref,
Type refType)
Deprecated.
|
Article[] |
getReferringArticles(ReferenceEntity ref)
Deprecated.
Retrieves all articles that are related to the given
ReferenceEntity object. |
Article[] |
getReferringArticles(ReferenceEntity ref,
Type refType)
Deprecated.
Retrieves all articles that are related to the given ReferenceEntity with the given type.
|
Article[] |
getReferringArticles(ReferenceEntity ref,
Type refType,
String match)
Deprecated.
Retrieves all articles containing the given string and that are related to the given
ReferenceEntity object. |
IORelation[] |
getRelatedArticles(Article article)
Deprecated.
Retrieves all relations containing the given article and another article.
|
IORelation[] |
getRelatedArticles(Article article,
boolean forward)
Deprecated.
Retrieves all relations containing the given article and another article in a direction.
|
IORelation[] |
getRelatedArticles(Article article,
Type relType)
Deprecated.
Retrieves all relations of the given type containing the given article and another article.
|
Collection |
getRelatedUserGroups(Section section)
Deprecated.
Retrieve all
UserGroups that have roles on this section. |
Collection |
getRelatedUsers(Section section)
Deprecated.
Retrieve all users that have roles on this section.
|
Person[] |
getRoleKeepers(Article article,
Type paType)
Deprecated.
Retrieves persons that have the given role on this article.
|
Section |
getRootSection(int pubId)
Deprecated.
Retrieves the root section of a given publication.
|
Section |
getRootSection(Publication pub)
Deprecated.
Retrieves the root section of a given publication.
|
int |
getRootSectionId(int pubId)
Deprecated.
Retrieves the id of the root section of a given publication.
|
int |
getRootSectionId(Publication pub)
Deprecated.
Retrieves the id of the root section of a given publication.
|
Section |
getSection(Pool pool)
Deprecated.
Retrieves the section belonging to the given pool.
|
Layout[] |
getSectionLayouts(int sectionId)
Deprecated.
|
Layout[] |
getSectionLayouts(Section section)
Deprecated.
|
Section[] |
getSectionsWithArticle(Article article)
Deprecated.
Retrieves all sections that contain the given article.
|
Section[] |
getSectionsWithArticle(Article article,
boolean includeVirtualSections)
Deprecated.
|
Section[] |
getSectionsWithArticle(Article article,
int codeId)
Deprecated.
Retrieves all sections that contain the given article.
|
Section[] |
getSectionsWithArticle(int articleId,
boolean includeVirtualSections)
Deprecated.
|
Section[] |
getSectionsWithArticle(int articleId,
int codeId)
Deprecated.
Retrieves all sections that contain the given article.
|
Section[] |
getSectionsWithArticleExludeType(Article article,
int codeId)
Deprecated.
Works very much like
RelationLoader.getSectionsWithArticle(neo.xredsys.api.Article) , but you can specifiy
one type of section to exlude. |
Section[] |
getSectionsWithArticleExludeType(Article article,
int codeId,
boolean includeVirtualSections)
Deprecated.
Works very much like
RelationLoader.getSectionsWithArticle(neo.xredsys.api.Article) , but you can specifiy
one type of section to exlude. |
int |
getSubSectionByDirectoryName(int pParentSection,
String pDirectoryName)
Deprecated.
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)
Deprecated.
Retrieves all sectionIds contained below given parent section.
|
Section[] |
getSubSections(int sectionId,
int publicationId)
Deprecated.
Will only return sub sections the running code/user has access too.
|
Section[] |
getSubSections(Section section)
Deprecated.
Retrieves all sections contained in a parent section.
|
Topic[] |
getTopicsWithArticle(Article article)
Deprecated.
Retrieves all topics containing the given article.
|
Collection<UserGroup> |
getUserGroups(int pPublicationId,
Member pMember)
Deprecated.
Gets the groups of which the user is a member of in the given publication.
|
Collection<UserGroup> |
getUserGroups(Member pMember)
Deprecated.
Gets the groups of which the user is a member of in all publications.
|
Collection<UserGroup> |
getUserGroupsFromUserGroup(UserGroup userGroup)
Deprecated.
Retrieve all
UserGroups that are members of this UserGroup . |
Collection<User> |
getUsersFromUserGroup(UserGroup userGroup)
Deprecated.
Retrieve all users that are members of this
UserGroup . |
IOHashKey[] |
getVirtualSectionsForSource(IOHashKey pSection)
Deprecated.
Retrieves all virtual sections which use the particular section as a source.
|
boolean |
isInSection(int articleId,
int sectionId)
Deprecated.
Checks wether or not the given article is in the given section.
|
boolean |
isInTopic(int articleId,
int topicId)
Deprecated.
Checks wether or not the given article is in the given topic.
|
boolean |
isMember(Member pMember,
UserGroup pUserGroup)
Deprecated.
|
void |
setAccessControlListDAO(neo.xredsys.dao.AccessControlListDAO pAccessControlListDAO)
Deprecated.
|
void |
setACLManager(neo.xredsys.acl.ACLManager pACLManager)
Deprecated.
|
void |
setContentManager(neo.xredsys.content.ContentManager pContentManager)
Deprecated.
|
void |
setIndexer(Indexer pIndexer)
Deprecated.
|
void |
setMaxInboxSize(int pMaxInboxSize)
Deprecated.
|
void |
setMaxListSize(int pMaxListSize)
Deprecated.
|
void |
setPermissionChecker(neo.xredsys.auth.PermissionChecker pPermissionChecker)
Deprecated.
|
void |
setUserGroupDao(neo.xredsys.dao.UserGroupDao pUserGroupDao)
Deprecated.
|
protected void |
startService()
Deprecated.
Is called by
AbstractNurseryService.doStartService() when the NurseryService is being started. |
protected void |
stopService()
Deprecated.
Is called by
AbstractNurseryService.doStopService() when the service is being shut down. |
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
protected void startService() throws Exception
AbstractNurseryService
Is called by AbstractNurseryService.doStartService()
when the NurseryService
is being started. Exceptions thrown by this
method are logged by AbstractNurseryService.doStartService()
.
Subclasses must implement this method to bootstrap the service.
startService
in class AbstractNurseryService
Exception
- when something goes wrong during startup. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
.IllegalArgumentException
- when the configuration of the service
is invalid. GenericService.isServiceRunning()
will return false
and GenericService.isServiceFailed()
will return true
.IllegalStateException
- when this service is in the wrong state for startup. Used to signal to AbstractNurseryService.doStartService()
that it is OK to try to starting
this service
later. GenericService.isServiceRunning()
returns false
and GenericService.isServiceIdle()
returns true
.AbstractNurseryService.doStartService()
protected void stopService() throws Exception
AbstractNurseryService
Is called by AbstractNurseryService.doStopService()
when the service
is being shut down. Exceptions thrown by this
method are logged by AbstractNurseryService.doStopService()
.
Subclasses must implement this method to shut down the service.
stopService
in class AbstractNurseryService
IllegalStateException
- when this service is in the wrong state for shutdown. Used to signal to AbstractNurseryService.doStopService()
that
it is OK to try stopping this service
later. GenericService.isServiceRunning()
returns true
.Exception
- when something goes during shutdown. GenericService.isServiceRunning()
returns false
and
GenericService.isServiceShutdownFailed()
returns true
.AbstractNurseryService.doStopService()
public void setAccessControlListDAO(neo.xredsys.dao.AccessControlListDAO pAccessControlListDAO)
public neo.xredsys.dao.AccessControlListDAO getAccessControlListDAO()
public void setPermissionChecker(neo.xredsys.auth.PermissionChecker pPermissionChecker)
public neo.xredsys.auth.PermissionChecker getPermissionChecker()
public void setUserGroupDao(neo.xredsys.dao.UserGroupDao pUserGroupDao)
public void setContentManager(neo.xredsys.content.ContentManager pContentManager)
public neo.xredsys.acl.ACLManager getACLManager()
public void setACLManager(neo.xredsys.acl.ACLManager pACLManager)
public Indexer getIndexer()
public void setIndexer(Indexer pIndexer)
public int[] getPublicationsWithArticle(int articleId)
RelationLoader
getPublicationsWithArticle
in interface RelationLoader
articleId
- the id of the article to search for publicationspublic void setMaxInboxSize(int pMaxInboxSize)
public int getMaxInboxSize()
public void setMaxListSize(int pMaxListSize)
public int getMaxListSize()
public Section[] getSectionsWithArticle(Article article) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getSectionsWithArticle
in interface RelationLoader
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 existpublic Section[] getSectionsWithArticleExludeType(Article article, int codeId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
RelationLoader.getSectionsWithArticle(neo.xredsys.api.Article)
, but you can specifiy
one type of section to exlude.getSectionsWithArticleExludeType
in interface RelationLoader
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 existpublic Section[] getSectionsWithArticleExludeType(Article article, int codeId, boolean includeVirtualSections) throws PersistentStoreException, NoSuchObjectException
RelationLoader
RelationLoader.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.getSectionsWithArticleExludeType
in interface RelationLoader
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 existpublic Section[] getSectionsWithArticle(Article article, int codeId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getSectionsWithArticle
in interface RelationLoader
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 existpublic Section[] getSectionsWithArticle(Article article, boolean includeVirtualSections) throws PersistentStoreException, NoSuchObjectException
getSectionsWithArticle
in interface RelationLoader
PersistentStoreException
NoSuchObjectException
public Section[] getSectionsWithArticle(int articleId, int codeId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getSectionsWithArticle
in interface RelationLoader
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 existpublic Section[] getSectionsWithArticle(int articleId, boolean includeVirtualSections) throws PersistentStoreException, NoSuchObjectException
getSectionsWithArticle
in interface RelationLoader
PersistentStoreException
NoSuchObjectException
public Topic[] getTopicsWithArticle(Article article) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getTopicsWithArticle
in interface RelationLoader
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
existpublic boolean isInSection(int articleId, int sectionId) throws NoSuchObjectException
RelationLoader
isInSection
in interface RelationLoader
articleId
- the id of the article to find in sectionsectionId
- the id of the section to search for the given articleNoSuchObjectException
- if referring to an IOObject
that does not existpublic boolean isInTopic(int articleId, int topicId) throws NoSuchObjectException
RelationLoader
isInTopic
in interface RelationLoader
articleId
- the id of the article to find in topictopicId
- the id of the topic to search for the given articleNoSuchObjectException
- if refering to an IOObject that does not existpublic Article[] getArticlesInSection(int sectionId, int publicationId)
RelationLoader
getArticlesInSection
in interface RelationLoader
sectionId
- the id of the section to search for articlespublicationId
- the id of the publication to search for articlesArticle
objectspublic Article[] getArticlesInSection(int sectionId, int publicationId, boolean excludeHidden) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticlesInSection
in interface RelationLoader
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 existpublic Article[] getArticlesInSection(Section section) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticlesInSection
in interface RelationLoader
section
- the section to search for articlesArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic Article[] getArticlesInSection(Section section, boolean excludeHidden) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticlesInSection
in interface RelationLoader
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 existpublic int[] getArticleIdsInHomeSection(Section section) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticleIdsInHomeSection
in interface RelationLoader
section
- the section to search for articlesArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic int[] getArticleIdsInHomeSection(Section section, boolean excludeHidden) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticleIdsInHomeSection
in interface RelationLoader
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 existpublic int[] getArticleIdsInHomeSection(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticleIdsInHomeSection
in interface RelationLoader
sectionId
- 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 existpublic int[] getArticleIdsInHomeSection(int sectionId, int publicationId, boolean excludeHidden) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticleIdsInHomeSection
in interface RelationLoader
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 existpublic Pool[] getPoolsWithArticle(Article article) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getPoolsWithArticle
in interface RelationLoader
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 existpublic IORelation[] getArticlesInPool(int poolId, int publicationId, boolean pOnlyLive) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticlesInPool
in interface RelationLoader
poolId
- the id of the pool to search for articlespublicationId
- the id of the publication that owns the poolpOnlyLive
- 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 existpublic IORelation[] getArticlesInPool(int poolId, int publicationId, boolean pOnlyLive, Date now) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticlesInPool
in interface RelationLoader
poolId
- the id of the pool to search for articlespublicationId
- the id of the publication that owns the poolpOnlyLive
- 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 existpublic IORelation[] getArticlesInPool(int poolId, int publicationId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticlesInPool
in interface RelationLoader
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 existpublic IORelation[] getArticlesInPool(Pool pool, boolean pOnlyLive) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticlesInPool
in interface RelationLoader
pool
- the pool to search for articlespOnlyLive
- 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
public IORelation[] getArticlesInPool(Pool pool, boolean pOnlyLive, Date now) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticlesInPool
in interface RelationLoader
pool
- the pool to search for articlespOnlyLive
- 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
public IORelation[] getArticlesInPool(Pool pool) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticlesInPool
in interface RelationLoader
pool
- the pool to search for articlesArticle
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic IORelation[] getArticlesInPool(int poolId, Publication pub) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticlesInPool
in interface RelationLoader
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 existpublic IORelation getArticlePoolRelation(Article article, Pool pool) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticlePoolRelation
in interface RelationLoader
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 existpublic List getArticlePoolRelations(Article article, Pool pool) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticlePoolRelations
in interface RelationLoader
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 existpublic Article[] getArticles(int entityId, int pubId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticles
in interface RelationLoader
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 existpublic Collection getArticleIds(int entityId, int pubId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticleIds
in interface RelationLoader
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 existpublic IORelation[] getReferredEntities(Article article) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getReferredEntities
in interface RelationLoader
article
- the article to search for relationsIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic ReferenceEntity[] getReferenceEntities(Article article) throws PersistentStoreException, NoSuchObjectException
RelationLoader
ReferenceEntity
objects that are related to the give article.getReferenceEntities
in interface RelationLoader
article
- the article to search for relationsReferenceEntity
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic IORelation[] getReferredEntities(Article article, Type referenceType) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getReferredEntities
in interface RelationLoader
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 existpublic IORelation[] getReferredEntities(Article article, ReferenceEntity entity, Type referenceType) throws PersistentStoreException, NoSuchObjectException
getReferredEntities
in interface RelationLoader
PersistentStoreException
NoSuchObjectException
public IORelation[] getReferredEntities(Article article, Type[] referenceTypes) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getReferredEntities
in interface RelationLoader
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 existpublic IORelation[] getReferredEntities(Article article, ReferenceEntity entity, Type[] referenceTypes) throws PersistentStoreException, NoSuchObjectException
getReferredEntities
in interface RelationLoader
PersistentStoreException
NoSuchObjectException
public IORelation[] getReferredPersons(Article article) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getReferredPersons
in interface RelationLoader
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 existpublic IORelation[] getReferringArticleRelations(ReferenceEntity ref)
getReferringArticleRelations
in interface RelationLoader
public IORelation[] getReferringArticleRelations(ReferenceEntity ref, Type refType)
getReferringArticleRelations
in interface RelationLoader
public Article[] getReferringArticles(ReferenceEntity ref) throws PersistentStoreException, NoSuchObjectException
RelationLoader
ReferenceEntity
object.getReferringArticles
in interface RelationLoader
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 existpublic Article[] getReferringArticles(ReferenceEntity ref, Type refType) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getReferringArticles
in interface RelationLoader
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 existpublic Article[] getReferringArticles(ReferenceEntity ref, Type refType, String match) throws PersistentStoreException, NoSuchObjectException
RelationLoader
ReferenceEntity
object.getReferringArticles
in interface RelationLoader
ref
- the ReferenceEntity
object to search for related articlesrefType
- thePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic Layout getArticleLayout(Article article) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticleLayout
in interface RelationLoader
article
- the article to search for layoutPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic IORelation[] getArticleRoleKeepers(Article article) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticleRoleKeepers
in interface RelationLoader
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 existpublic Article[] getArticlesByRoleKeeper(Person p) throws PersistentStoreException, NoSuchObjectException
RelationLoader
Articles
where given user has some rolegetArticlesByRoleKeeper
in interface RelationLoader
p
- person The person to find roles forPersistentStoreException
- if some db error occursNoSuchObjectException
- if some LDAP error occurspublic IORelation[] getArticleRoleKeepers(Article article, Type paType) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getArticleRoleKeepers
in interface RelationLoader
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 existpublic Person[] getRoleKeepers(Article article, Type paType) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getRoleKeepers
in interface RelationLoader
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 existpublic IORelation[] getRelatedArticles(Article article) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getRelatedArticles
in interface RelationLoader
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 existpublic IORelation[] getRelatedArticles(Article article, boolean forward) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getRelatedArticles
in interface RelationLoader
article
- the article to search for related articlesforward
- direction of the relationIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic IORelation[] getRelatedArticles(Article article, Type relType) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getRelatedArticles
in interface RelationLoader
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 existpublic Section[] getSubSections(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
getSubSections
in interface RelationLoader
sectionId
- id of the section to get the sub sections frompublicationId
- The publication the section is part ofPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic IOHashKey[] getSubSectionKeys(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getSubSectionKeys
in interface RelationLoader
sectionId
- the id of the parent sectionpublicationId
- the id of the publication to search inIOHashKey
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
public Section[] getSubSections(Section section) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getSubSections
in interface RelationLoader
section
- the parent sectionSection
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic IOHashKey[] getVirtualSectionsForSource(IOHashKey pSection) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getVirtualSectionsForSource
in interface RelationLoader
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 existpublic Pool[] getPools(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getPools
in interface RelationLoader
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 existpublic Pool[] getPools(Section section) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getPools
in interface RelationLoader
section
- the sectionPool
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic IORelation[] getPoolRelations(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getPoolRelations
in interface RelationLoader
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 existpublic IORelation[] getPoolRelations(Section section) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getPoolRelations
in interface RelationLoader
section
- the sectionIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic Pool getActivePool(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getActivePool
in interface RelationLoader
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 existpublic IORelation getActivePoolRelation(int sectionId, int publicationId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getActivePoolRelation
in interface RelationLoader
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 existpublic IORelation getActivePoolRelation(Section section) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getActivePoolRelation
in interface RelationLoader
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 existpublic Pool getActivePool(Section section) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getActivePool
in interface RelationLoader
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 existpublic Section getSection(Pool pool) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getSection
in interface RelationLoader
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 existpublic Layout[] getSectionLayouts(int sectionId) throws PersistentStoreException, NoSuchObjectException
getSectionLayouts
in interface RelationLoader
PersistentStoreException
NoSuchObjectException
public Layout[] getSectionLayouts(Section section) throws PersistentStoreException, NoSuchObjectException
getSectionLayouts
in interface RelationLoader
PersistentStoreException
NoSuchObjectException
public Section getRootSection(int pubId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getRootSection
in interface RelationLoader
pubId
- the id of the publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic int getRootSectionId(int pubId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getRootSectionId
in interface RelationLoader
pubId
- the id of the publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic int getRootSectionId(Publication pub) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getRootSectionId
in interface RelationLoader
pub
- the publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic List<Section> getAccessibleSubSections(Section pSection)
RelationLoader
getAccessibleSubSections
in interface RelationLoader
pSection
- Section
public Section getRootSection(Publication pub) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getRootSection
in interface RelationLoader
pub
- the publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic Section getDefaultSection(Publication pub) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getDefaultSection
in interface RelationLoader
pub
- the publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic Section getDefaultSection(int pubId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getDefaultSection
in interface RelationLoader
pubId
- the id of the publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic Layout getPoolLayout(int poolId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getPoolLayout
in interface RelationLoader
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 existpublic Layout getPoolLayout(Pool pool) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getPoolLayout
in interface RelationLoader
pool
- the pool to retrieve this layout fromPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic Layout[] getPublicationLayouts(int pPubId) throws PersistentStoreException, NoSuchObjectException
RelationLoader
getPublicationLayouts
in interface RelationLoader
pPubId
- 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 existpublic Layout[] getPublicationLayouts(Publication pPublication) throws PersistentStoreException, NoSuchObjectException
getPublicationLayouts
in interface RelationLoader
pPublication
- the publication to retrieve the layouts fromLayout
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if referring to an IOObject
that does not existpublic Collection<UserGroup> getUserGroups(Member pMember)
RelationLoader
getUserGroups
in interface RelationLoader
pMember
- is a Person
Collection<UserGroup>
public Collection<UserGroup> getUserGroups(int pPublicationId, Member pMember)
RelationLoader
getUserGroups
in interface RelationLoader
pPublicationId
- is the ID of the publicationpMember
- is a Person
Collection<UserGroup>
.public Collection<ProtectionDomain> getProtectionDomains(Member pMember)
getProtectionDomains
in interface RelationLoader
public Collection<UserGroup> getUserGroupsFromUserGroup(UserGroup userGroup) throws NoSuchObjectException
RelationLoader
UserGroups
that are members of this UserGroup
.getUserGroupsFromUserGroup
in interface RelationLoader
userGroup
- the UserGroup
to retrieve members fromNoSuchObjectException
- if some LDAP error occurspublic Collection<User> getUsersFromUserGroup(UserGroup userGroup) throws NoSuchObjectException
RelationLoader
UserGroup
.getUsersFromUserGroup
in interface RelationLoader
userGroup
- the UserGroup
to retrieve members fromNoSuchObjectException
- if some LDAP error occurspublic boolean isMember(Member pMember, UserGroup pUserGroup)
RelationLoader
isMember
in interface RelationLoader
pMember
- the memberpUserGroup
- the groupMember
is member of of the given UserGroup
public Collection getRelatedUsers(Section section)
RelationLoader
getRelatedUsers
in interface RelationLoader
section
- the section to search for users with rolespublic Collection getRelatedUserGroups(Section section)
RelationLoader
UserGroups
that have roles on this section.getRelatedUserGroups
in interface RelationLoader
section
- the section to search for UserGroups
with rolespublic Collection<Integer> getPublicationRelations(int pPublicationId, boolean pReverse)
getPublicationRelations
in interface RelationLoader
public int getSubSectionByDirectoryName(int pParentSection, String pDirectoryName) throws PersistentStoreException
RelationLoader
getSubSectionByDirectoryName
in interface RelationLoader
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 occurspublic EditableContentList getContentListForPool(ListPool pListPool) throws PersistentStoreException
RelationLoader
EditableContentList
for the given ListPool
getContentListForPool
in interface RelationLoader
pListPool
- the poolEditableContentList
for the given ListPool
PersistentStoreException
- if retrieving the list failspublic IORelation getPoolEntry(int pPoolEntryId)
getPoolEntry
in interface RelationLoader
© 1998- 2018 Stibo DX