public class IORelationUpdater extends AbstractNurseryService implements RelationUpdater
GenericService.StartCommand, GenericService.StopCommand
CLASS_VERSION
mLogger, state
Constructor and Description |
---|
IORelationUpdater()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addArticleRelation(IORelation relation)
Deprecated.
Creates a new relation between two articles.
|
boolean |
addArticleRelations(IORelation[] relations)
Deprecated.
Adds a number of relations between two articles.
|
boolean |
addArticleRoleKeeper(IORelation relation)
Deprecated.
Creates a new relation betweeen an article and a person.
|
boolean |
addArticlesToPool(IORelation[] relations)
Deprecated.
Inserts a number of articles to a pool.
|
boolean |
addArticleToPool(IORelation relation)
Deprecated.
Adds an article to a pool.
|
boolean |
addArticleToPoolWithPresentationEvent(IORelation relation)
Deprecated.
Will do the same as addArticleToPool, but will send an event
of type OBJECT_MODIFIED for the Pool.
|
boolean |
addArticleToSection(Article article,
Section section)
Deprecated.
Adds an article to a section.
|
boolean |
addArticleToSection(Article article,
Section section,
int priority)
Deprecated.
Adds an article to a section with the given priority
|
boolean |
addArticleToSection(IORelation relation)
Deprecated.
|
boolean |
addArticleToTopic(IORelation relation)
Deprecated.
Adds an article to a topic.
|
boolean |
addEntityToArticle(IORelation relation)
Deprecated.
Creates a relation between an article and a
ReferenceEntity . |
boolean |
addMembersToProtectionDomain(Collection<? extends Member> pMember,
ProtectionDomain pDomain,
neo.xredsys.acl.Role pRole)
Deprecated.
|
boolean |
addMembersToProtectionDomain(Collection<? extends Member> pMember,
ProtectionDomain pDomain,
String pRole)
Deprecated.
|
boolean |
addMemberToEntry(Member member,
Section entry,
neo.xredsys.acl.Role pRole)
Deprecated.
Gives a
Member a spesific role on the given Section . |
boolean |
addMemberToProtectionDomain(Member pMember,
ProtectionDomain pProtectionDomain,
neo.xredsys.acl.Role pRole)
Deprecated.
|
boolean |
addMemberToProtectionDomain(Member pMember,
ProtectionDomain pDomain,
String pRole)
Deprecated.
|
boolean |
addPersonToPublication(Person person,
Publication pub)
Deprecated.
Adds the specified person to the publication in question.
|
boolean |
addPersonToPublication(Person person,
Publication pub,
boolean isExternal)
Deprecated.
|
boolean |
addPoolToSection(Pool pool,
Section section)
Deprecated.
Creates a new relation between the given pool and section.
|
boolean |
addPublicationLayout(Publication pub,
int layoutId)
Deprecated.
Creates a new relation between the given publication and layout.
|
boolean |
addPublicationLayout(Publication pub,
Layout layout)
Deprecated.
Creates a new relation between the given publication and layout.
|
boolean |
addUserGroupToSection(UserGroup userGroup,
Section pSection,
neo.xredsys.acl.Role pRole)
Deprecated.
Gives this userGroup the specified role on this section.
|
boolean |
addUserGroupToSection(UserGroup userGroup,
Section pSection,
String pRole)
Deprecated.
Gives this userGroup the specified role on this section.
|
boolean |
addUserGroupToUserGroup(UserGroup userGroup,
UserGroup intoGroup)
Deprecated.
Adds a group into the specified user group.
|
boolean |
addUserToGroup(Person pPerson,
UserGroup pGroup)
Deprecated.
Adds the specified person to this group.
|
boolean |
addUserToIOObject(Person person,
IOObject ioObject,
String pRole)
Deprecated.
Gives this person the specified role on this
IOObject . |
boolean |
addUserToSection(Person person,
Section section,
neo.xredsys.acl.Role role)
Deprecated.
Gives this person the specified role on this section.
|
boolean |
addUserToSection(Person person,
Section section,
String pRole)
Deprecated.
Gives this person the specified role on this section.
|
boolean |
createRelation(IORelation relation)
Deprecated.
Creates a new relation between two
IOObjects . |
boolean |
createRelations(IORelation[] relation)
Deprecated.
|
void |
deleteArticlesInSection(Section sec,
boolean recursive)
Deprecated.
Removes all articles from the specified section.
|
boolean |
deleteRelation(IORelation relation)
Deprecated.
Deletes an existing relation from the persistence layer.
|
boolean |
deleteRelations(IORelation[] relation)
Deprecated.
|
void |
deleteShortCuts(Section sec,
boolean recursive)
Deprecated.
Removes all articles from pools belonging to the specified section.
|
neo.xredsys.acl.ACLManager |
getACLManager()
Deprecated.
|
neo.xredsys.dao.UserGroupDao |
getUserGroupDao()
Deprecated.
|
void |
moveArticles(Section oldHomeSection,
Section targetSection)
Deprecated.
Moves all articles from the specified section into the target section.
|
void |
moveShortCuts(Section oldSection,
Section targetSection)
Deprecated.
Moves all articles from pools belonging to the specified section into the target section.
|
boolean |
removeAllArticlesFromPool(Pool pool)
Deprecated.
Removes all articles belonging to the given pool.
|
void |
removeAllPublishedArticlesFromPool(Pool pool)
Deprecated.
Removes all published articles from the given pool.
|
boolean |
removeArticleFromAllPools(int articleId)
Deprecated.
Removes an article from all pools where it has the given article-pool state(codeId).
|
boolean |
removeArticleFromAllPools(int articleId,
int codeId)
Deprecated.
Removes an article from all pools where it has the given article-pool state(codeId).
|
boolean |
removeArticleFromAllSections(Article article)
Deprecated.
Removes this article from all sections.
|
boolean |
removeArticleFromAllSections(Article article,
int priority)
Deprecated.
Removes an article from all sections where the relation(article-section) has the given priority.
|
boolean |
removeArticleFromPool(Article article,
Pool pool)
Deprecated.
Removes an article from a pool
|
boolean |
removeArticleFromPool(IORelation relation)
Deprecated.
Removes an existing relation between two
IOObjects . |
boolean |
removeArticleFromSection(Article article,
Section section)
Deprecated.
Removes an article from a section, without deleting it.
|
boolean |
removeArticleFromSection(IORelation pRelation)
Deprecated.
|
boolean |
removeArticleFromTopic(IORelation relation)
Deprecated.
Removes a specific article from a topic.
|
boolean |
removeArticleRelation(Article a1,
Article a2,
Type type)
Deprecated.
Removes an existing relation between the two given articles.
|
boolean |
removeArticleRelation(IORelation relation)
Deprecated.
Removes an existing relation between the two given articles.
|
boolean |
removeArticleRelations(Article article)
Deprecated.
Removes all relations containg articles and the given article.
|
boolean |
removeArticleRelations(Article article,
boolean reverse)
Deprecated.
Removes all relations containg articles and the given article.
|
boolean |
removeArticleRelations(IORelation[] relations)
Deprecated.
|
boolean |
removeArticleRelations(IORelation[] relations,
boolean rev)
Deprecated.
Removes all relations containg articles and the given article.
|
boolean |
removeArticleRoleKeeper(Article article,
Person person)
Deprecated.
Removes an existing relation between an article and a person.
|
boolean |
removeArticleRoleKeeper(Article article,
Person person,
Type roleType)
Deprecated.
Removes an existing relation between an article and a person.
|
boolean |
removeArticleRoleKeeper(IORelation relation)
Deprecated.
Removes an existing relation between an article and a person.
|
boolean |
removeArticlesFromEntity(ReferenceEntity ref)
Deprecated.
Removes all relations containing the given
ReferenceEntity and an article. |
boolean |
removeArticlesFromEntity(ReferenceEntity ref,
Type[] types)
Deprecated.
Removes all relations of the given types containing the given
ReferenceEntity and an article. |
boolean |
removeEntitiesFromArticle(Article article)
Deprecated.
Removes all relations between the given article and related
ReferenceEntity objects. |
boolean |
removeEntitiesFromArticle(Article article,
ReferenceEntity ref)
Deprecated.
Removes all relations from article to
ReferenceEntity . |
boolean |
removeEntitiesFromArticle(Article article,
ReferenceEntity ref,
Type[] types)
Deprecated.
Removes all relations with the specified types from article to
ReferenceEntity . |
boolean |
removeEntitiesFromArticle(Article article,
Type[] types)
Deprecated.
Removes all relations with the given types from this article to its related
ReferenceEntity objects. |
boolean |
removeEntitiesFromArticle(IORelation relation)
Deprecated.
Remove a specified relations between an article an a
ReferenceEntity . |
boolean |
removeEntityFromArticle(IORelation relation)
Deprecated.
Remove a specified relation between an article an a
ReferenceEntity . |
boolean |
removeEntryFromPool(IORelation pRelation)
Deprecated.
Removes an existing relation between two
IOObjects . |
boolean |
removeMemberFromEntry(Member member,
Section entry,
neo.xredsys.acl.Role role)
Deprecated.
Removes a
Members role on the given LDAPEntry . |
boolean |
removeMemberFromProtectionDomain(Member pMember,
ProtectionDomain pProtectionDomain,
neo.xredsys.acl.Role pRole)
Deprecated.
|
boolean |
removeMemberFromProtectionDomain(Member pMember,
ProtectionDomain pDomain,
String pRole)
Deprecated.
|
boolean |
removePersonArticleRoles(int articleId)
Deprecated.
Removes all relations containing persons and the given article
|
boolean |
removePersonArticleRoles(int articleId,
String type)
Deprecated.
Removes all relations containing persons and the given article
|
boolean |
removePersonFromPublication(Person person,
Publication pub)
Deprecated.
Removes the specified person from the publication in question.
|
boolean |
removePublicationLayout(Publication pub,
int layoutId)
Deprecated.
Removes an existing relation between the given publication and layout.
|
boolean |
removePublicationLayout(Publication pub,
Layout layout)
Deprecated.
Removes an existing relation between the given publication and layout.
|
boolean |
removeRoleKeeper(int referenceId)
Deprecated.
Removes all roles that the specified person has on articles.
|
boolean |
removeSectionLayout(Section section,
Layout layout)
Deprecated.
Removes an existing relation between the given section and layout.
|
boolean |
removeUserFromGroup(Person pPerson,
UserGroup pGroup)
Deprecated.
Removes the specified user from the group in question.
|
boolean |
removeUserFromIOObject(Person person,
IOObject pObject,
String pRole)
Deprecated.
Removes the specified user from the
IOObject in question. |
boolean |
removeUserFromSection(Person person,
Section section,
neo.xredsys.acl.Role role)
Deprecated.
Removes the specified user from the section in question.
|
boolean |
removeUserFromSection(Person person,
Section pSection,
String pRole)
Deprecated.
Removes the specified user from the section in question.
|
boolean |
removeUserGroupFromSection(UserGroup userGroup,
Section section,
neo.xredsys.acl.Role role)
Deprecated.
Removes this userGroups role on this section.
|
boolean |
removeUserGroupFromSection(UserGroup userGroup,
Section pSection,
String pRole)
Deprecated.
Removes this userGroups role on this section.
|
boolean |
removeUserGroupFromUserGroup(UserGroup userGroup,
UserGroup intoGroup)
Deprecated.
Removes a group from the specified user group.
|
boolean |
replaceArticleRelations(int articleId,
Collection rels)
Deprecated.
Modifies, adds and removes article relations.
|
boolean |
replaceArticlesInPool(IORelation[] relations,
int codeId)
Deprecated.
Removes all existing Articles( with a given Pool-state) from a given Pool.
|
boolean |
replaceEntitiesOnArticle(IORelation[] relations)
Deprecated.
Removes all existing relations on this article before adding a number of new article relations.
|
void |
setACLManager(neo.xredsys.acl.ACLManager pACLManager)
Deprecated.
|
boolean |
setMainArticleInTopic(IORelation relation)
Deprecated.
Creates a new relation between an article and a topic.
|
boolean |
setPoolLayout(Pool pool,
Layout layout)
Deprecated.
Creates a new relation between the given pool and layout.
|
boolean |
setPublicationLayouts(Publication pub,
Layout[] layouts)
Deprecated.
Creates a number of relations between the given publication and the given layouts.
|
boolean |
setSectionLayouts(Section section,
Layout[] layouts)
Deprecated.
Creates a number of relations between the given section and the given layouts.
|
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. |
boolean |
updateArticleEntityRelation(IORelation relation)
Deprecated.
Updates an existing relation between a specific article and
ReferenceEntity . |
boolean |
updateArticlePoolRelation(IORelation relation)
Deprecated.
Updates the given relation.
|
boolean |
updateArticlePoolRelations(IORelation[] relations)
Deprecated.
All relations must be to the same pool!
|
boolean |
updateArticleRelations(IORelation[] relations)
Deprecated.
Updates a number of article-article relations.
|
boolean |
updateArticleRoleKeeper(IORelation relation)
Deprecated.
Updates an existing relation between an article and a person
|
boolean |
updateArticleTopicRelation(IORelation relation)
Deprecated.
|
boolean |
updateRelation(IORelation relation)
Deprecated.
Updates an existing relation between two
IOObjects |
boolean |
updateRelations(IORelation[] relation)
Deprecated.
|
doStartService, doStopService, stopIdleService
assertServiceRunning, getServiceDescription, getServiceMessage, getServiceState, isServiceEnabled, isServiceFailed, isServiceIdle, isServiceRunning, isServiceShutdownFailed, isServiceStopped, setServiceDescription, setServiceEnabled, start, stop, validateIsTrue, validateNotNull
public neo.xredsys.dao.UserGroupDao getUserGroupDao()
public void setUserGroupDao(neo.xredsys.dao.UserGroupDao pUserGroupDao)
public neo.xredsys.acl.ACLManager getACLManager()
public void setACLManager(neo.xredsys.acl.ACLManager pACLManager)
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 boolean createRelation(IORelation relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
IOObjects
. IOObject
types can be found in IOAtom
.
The relation object must have the following attribute set:
Type
)
Integer
)
createRelation
in interface RelationUpdater
relation
- the relation to createPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean createRelations(IORelation[] relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
createRelations
in interface RelationUpdater
PersistentStoreException
NoSuchObjectException
IllegalOperationException
public boolean updateRelation(IORelation relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
IOObjects
updateRelation
in interface RelationUpdater
relation
- the relation to modifyPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean updateRelations(IORelation[] relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
updateRelations
in interface RelationUpdater
PersistentStoreException
NoSuchObjectException
IllegalOperationException
public boolean deleteRelation(IORelation relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
deleteRelation
in interface RelationUpdater
relation
- the relation to deletePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean deleteRelations(IORelation[] relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
deleteRelations
in interface RelationUpdater
PersistentStoreException
NoSuchObjectException
IllegalOperationException
public boolean addArticleToTopic(IORelation relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
addArticleToTopic
in interface RelationUpdater
relation
- the feature to be added to the ArticleToTopic attributePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean removeArticleFromTopic(IORelation relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
removeArticleFromTopic
in interface RelationUpdater
relation
- the relation to removePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean updateArticleTopicRelation(IORelation relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
public boolean setMainArticleInTopic(IORelation relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
setMainArticleInTopic
in interface RelationUpdater
relation
- the relation to createPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if relation is not of category IORelation.ArticleInTopic
public boolean addArticleToSection(IORelation relation) throws PersistentStoreException, NoSuchObjectException
public boolean addArticleToSection(Article article, Section section) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
addArticleToSection
in interface RelationUpdater
article
- the article that should be addedsection
- the section it should be added toPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean addArticleToSection(Article article, Section section, int priority) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
addArticleToSection
in interface RelationUpdater
article
- the article that should be addedsection
- the section it should be added topriority
- the priority of the new relationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeArticleFromSection(IORelation pRelation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
public boolean removeArticleFromSection(Article article, Section section) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
removeArticleFromSection
in interface RelationUpdater
article
- the article that should be removedsection
- the section it should be removed fromPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean removeArticleFromAllSections(Article article) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
removeArticleFromAllSections
in interface RelationUpdater
article
- the article to remove from all sectionsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean removeArticleFromAllSections(Article article, int priority) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
removeArticleFromAllSections
in interface RelationUpdater
article
- the article to remove from all sectionspriority
- the priority of the relations to removePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean addArticlesToPool(IORelation[] relations) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
addArticlesToPool
in interface RelationUpdater
relations
- the relations to addPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean addArticleToPoolWithPresentationEvent(IORelation relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
addArticleToPoolWithPresentationEvent
in interface RelationUpdater
PersistentStoreException
NoSuchObjectException
IllegalOperationException
public boolean addArticleToPool(IORelation relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
addArticleToPool
in interface RelationUpdater
relation
- the relation to addPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean replaceArticlesInPool(IORelation[] relations, int codeId) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
replaceArticlesInPool
in interface RelationUpdater
relations
- the relations to addcodeId
- the type of poolentries to removePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean removeArticleFromPool(Article article, Pool pool) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
removeArticleFromPool
in interface RelationUpdater
article
- the article to remove from poolpool
- the pool to remove the article fromPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean removeEntryFromPool(IORelation pRelation)
RelationUpdater
IOObjects
. This method will only remove the given relation.removeEntryFromPool
in interface RelationUpdater
pRelation
- the relation to removepublic boolean removeArticleFromPool(IORelation relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
IOObjects
. This method will remove all relations between
the two objects.removeArticleFromPool
in interface RelationUpdater
relation
- the relation to removePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean removeAllArticlesFromPool(Pool pool) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
removeAllArticlesFromPool
in interface RelationUpdater
pool
- the pool to remove all articles fromPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean removeArticleFromAllPools(int articleId, int codeId) throws PersistentStoreException
RelationUpdater
removeArticleFromAllPools
in interface RelationUpdater
articleId
- the id of the article to remove from poolscodeId
- the article-pool state of the relations to removePersistentStoreException
- if an error occurs in the persistence layerpublic boolean removeArticleFromAllPools(int articleId) throws PersistentStoreException
RelationUpdater
removeArticleFromAllPools
in interface RelationUpdater
articleId
- the id of the article to remove from poolsPersistentStoreException
- if an error occurs in the persistence layerpublic void removeAllPublishedArticlesFromPool(Pool pool) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
removeAllPublishedArticlesFromPool
in interface RelationUpdater
pool
- the pool to remove articles fromPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean updateArticlePoolRelation(IORelation relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
updateArticlePoolRelation
in interface RelationUpdater
relation
- the relation to be modifiedPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean updateArticlePoolRelations(IORelation[] relations) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
public boolean addEntityToArticle(IORelation relation) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
ReferenceEntity
.
The relation object must have the following attributes set:
Type
)
Integer
)
addEntityToArticle
in interface RelationUpdater
relation
- the relation to addtrue
if successful, false
otherwisePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeEntitiesFromArticle(Article article, ReferenceEntity ref) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
ReferenceEntity
. Use with caution!!!removeEntitiesFromArticle
in interface RelationUpdater
article
- the article to remove relations fromref
- the ReferenceEntity
that will loose its relations with the given articlePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeEntitiesFromArticle(Article article, ReferenceEntity ref, Type[] types) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
ReferenceEntity
.
Use with caution!! If types == null, all relation types will be deletedremoveEntitiesFromArticle
in interface RelationUpdater
article
- the article to remove entities fromref
- the entities to remove from articletypes
- the types of relations to removePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeEntitiesFromArticle(IORelation relation)
RelationUpdater
ReferenceEntity
.removeEntitiesFromArticle
in interface RelationUpdater
relation
- the relation to removetrue
if successful, false
otherwisepublic boolean removeEntityFromArticle(IORelation relation) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
ReferenceEntity
.removeEntityFromArticle
in interface RelationUpdater
relation
- the relation to removetrue
if successful, false
otherwisePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeEntitiesFromArticle(Article article) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
ReferenceEntity
objects.removeEntitiesFromArticle
in interface RelationUpdater
article
- the article to remove all related entities fromPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean replaceEntitiesOnArticle(IORelation[] relations) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
Type
)
Integer
)
replaceEntitiesOnArticle
in interface RelationUpdater
relations
- the relations to addPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeEntitiesFromArticle(Article article, Type[] types) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
ReferenceEntity
objects.removeEntitiesFromArticle
in interface RelationUpdater
article
- the article to remove entities fromtypes
- the types of relations to removePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeArticlesFromEntity(ReferenceEntity ref) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
ReferenceEntity
and an article.
Inline images will be removed if ReferenceEntity
is of type
removeArticlesFromEntity
in interface RelationUpdater
ref
- the ReferenceEntity to remove relations fromPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeArticlesFromEntity(ReferenceEntity ref, Type[] types) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
ReferenceEntity
and an article.removeArticlesFromEntity
in interface RelationUpdater
ref
- the ReferenceEntity to remove relations fromtypes
- the types of relations to addPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean updateArticleEntityRelation(IORelation relation) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
ReferenceEntity
.updateArticleEntityRelation
in interface RelationUpdater
relation
- the relation to modifyPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean addArticleRoleKeeper(IORelation relation) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
Type
)
addArticleRoleKeeper
in interface RelationUpdater
relation
- the relation to be addedPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeArticleRoleKeeper(Article article, Person person, Type roleType) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
Type
objects can be found by calling TypeManager.getTypes(neo.xredsys.api.Type.Category)
.removeArticleRoleKeeper
in interface RelationUpdater
article
- the article that is related to the given personperson
- the person that is related to the given articleroleType
- the role this person has on the given article. Type
objects can be found by calling TypeManager.getTypes(neo.xredsys.api.Type.Category)
.PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeArticleRoleKeeper(Article article, Person person) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
removeArticleRoleKeeper
in interface RelationUpdater
article
- the article that is related to the given personperson
- the person that is related to the given articlePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeArticleRoleKeeper(IORelation relation) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
removeArticleRoleKeeper
in interface RelationUpdater
relation
- the relation to removePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeRoleKeeper(int referenceId) throws PersistentStoreException
RelationUpdater
removeRoleKeeper
in interface RelationUpdater
referenceId
- the id of the person that will have his article roles removedPersistentStoreException
- if an error occurs in the persistence layerpublic boolean removePersonArticleRoles(int articleId) throws PersistentStoreException
RelationUpdater
removePersonArticleRoles
in interface RelationUpdater
articleId
- the id of the article to remove relations fromPersistentStoreException
- if an error occurs in the persistence layerpublic boolean removePersonArticleRoles(int articleId, String type) throws PersistentStoreException
RelationUpdater
removePersonArticleRoles
in interface RelationUpdater
articleId
- the id of the article to remove relations fromtype
- only remove relations of this type. Type can be one of
creator or author.PersistentStoreException
- if an error occurs in the persistence layerpublic boolean updateArticleRoleKeeper(IORelation relation) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
updateArticleRoleKeeper
in interface RelationUpdater
relation
- the relation to modifyPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean addArticleRelation(IORelation relation) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
addArticleRelation
in interface RelationUpdater
relation
- the relation to createPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean addArticleRelations(IORelation[] relations) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
addArticleRelations
in interface RelationUpdater
relations
- an Array containing relations between two articlesPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean updateArticleRelations(IORelation[] relations) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
updateArticleRelations
in interface RelationUpdater
relations
- the relations to modifyPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeArticleRelation(IORelation relation) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
removeArticleRelation
in interface RelationUpdater
relation
- the relation to removePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeArticleRelations(IORelation[] relations) throws PersistentStoreException, NoSuchObjectException
public boolean removeArticleRelations(IORelation[] relations, boolean rev) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
removeArticleRelations
in interface RelationUpdater
relations
- the article to remove relations fromrev
- false if removing only relation where article is source; true otherwisePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeArticleRelations(Article article) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
removeArticleRelations
in interface RelationUpdater
article
- the article to remove relations fromPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeArticleRelations(Article article, boolean reverse) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
removeArticleRelations
in interface RelationUpdater
article
- the article to remove relations fromPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean replaceArticleRelations(int articleId, Collection rels) throws PersistentStoreException
RelationUpdater
Collection will be removed.
replaceArticleRelations
in interface RelationUpdater
articleId
- the id of the article to which relations will be replacedrels
- the relations to add and modifyPersistentStoreException
- if some store error occurspublic boolean removeArticleRelation(Article a1, Article a2, Type type) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
removeArticleRelation
in interface RelationUpdater
a1
- the first article in the relation to be removeda2
- the second article in the relation to be removedtype
- the type of relation to be removedPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removeSectionLayout(Section section, Layout layout) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
removeSectionLayout
in interface RelationUpdater
section
- the section in the relation to be removedlayout
- the layout in the relation to be removedPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean setSectionLayouts(Section section, Layout[] layouts) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
setSectionLayouts
in interface RelationUpdater
section
- the section to be related with the given layoutslayouts
- the layouts to be related with the given sectionPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean addPoolToSection(Pool pool, Section section) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
RelationUpdater
addPoolToSection
in interface RelationUpdater
pool
- the pool to be related with the given sectionsection
- the section to be related with the given poolPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existIllegalOperationException
public boolean setPoolLayout(Pool pool, Layout layout) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
setPoolLayout
in interface RelationUpdater
pool
- the pool to be related with the given layoutlayout
- the layout to be related with this poolPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean addPublicationLayout(Publication pub, Layout layout) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
addPublicationLayout
in interface RelationUpdater
pub
- the publication to be related with the given layoutlayout
- the layout to be related with the given publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean addPublicationLayout(Publication pub, int layoutId) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
addPublicationLayout
in interface RelationUpdater
pub
- the publication to be related with the given layoutlayoutId
- the id of the layout to be related with the given publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removePublicationLayout(Publication pub, Layout layout) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
removePublicationLayout
in interface RelationUpdater
pub
- the publication that is related with the given layoutlayout
- the layout that is related with the given publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean removePublicationLayout(Publication pub, int layoutId) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
removePublicationLayout
in interface RelationUpdater
pub
- the publication that is related to the given layoutlayoutId
- the layout that is related to the given publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean setPublicationLayouts(Publication pub, Layout[] layouts) throws PersistentStoreException, NoSuchObjectException
RelationUpdater
setPublicationLayouts
in interface RelationUpdater
pub
- the publication to be related with the given layoutslayouts
- the layouts to be related with this poolPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean addUserToGroup(Person pPerson, UserGroup pGroup) throws PersistentStoreException
RelationUpdater
addUserToGroup
in interface RelationUpdater
pPerson
- the person to add to the specified grouppGroup
- the group to add the specified person intoPersistentStoreException
- if some store error occurspublic boolean addUserGroupToUserGroup(UserGroup userGroup, UserGroup intoGroup) throws PersistentStoreException
RelationUpdater
addUserGroupToUserGroup
in interface RelationUpdater
userGroup
- the user group to insert into another user groupintoGroup
- the user group to insert another user group intoPersistentStoreException
- if an error occurs in the persistence layerpublic boolean removeUserFromGroup(Person pPerson, UserGroup pGroup) throws PersistentStoreException
RelationUpdater
removeUserFromGroup
in interface RelationUpdater
pPerson
- the user to remove from the group in questionpGroup
- the group to remove the specified user fromPersistentStoreException
- if an error occurs in the persistence layerpublic boolean removeUserGroupFromUserGroup(UserGroup userGroup, UserGroup intoGroup) throws PersistentStoreException
RelationUpdater
removeUserGroupFromUserGroup
in interface RelationUpdater
userGroup
- the user group to remove from another user groupintoGroup
- the user group to remove another user group fromPersistentStoreException
- if an error occurs in the persistence layerpublic boolean addUserToSection(Person person, Section section, String pRole) throws PersistentStoreException
RelationUpdater
addUserToSection
in interface RelationUpdater
person
- the person to get a role on this sectionsection
- the section to add this person into with the specified rolePersistentStoreException
- if an error occurs in the persistence layerpublic boolean addUserToSection(Person person, Section section, neo.xredsys.acl.Role role) throws PersistentStoreException
RelationUpdater
addUserToSection
in interface RelationUpdater
person
- the person to get a role on this sectionsection
- the section to add this person into with the specified rolePersistentStoreException
- if an error occurs in the persistence layerpublic boolean addMemberToEntry(Member member, Section entry, neo.xredsys.acl.Role pRole) throws PersistentStoreException
RelationUpdater
Member
a spesific role on the given Section
.
Member
objects are typically users or groups. Section
objects are typically sectionsaddMemberToEntry
in interface RelationUpdater
member
- the member that will be given the specified role on the ldap entry in questionentry
- the ldap entry that the given member will recieve a role onpRole
- the role that the given member will be given on the ldap entry in questionPersistentStoreException
- if an error occurs in the persistence layerMember
public boolean addMemberToProtectionDomain(Member pMember, ProtectionDomain pProtectionDomain, neo.xredsys.acl.Role pRole) throws PersistentStoreException
addMemberToProtectionDomain
in interface RelationUpdater
PersistentStoreException
public boolean removeMemberFromProtectionDomain(Member pMember, ProtectionDomain pProtectionDomain, neo.xredsys.acl.Role pRole) throws PersistentStoreException
removeMemberFromProtectionDomain
in interface RelationUpdater
PersistentStoreException
public boolean addMemberToProtectionDomain(Member pMember, ProtectionDomain pDomain, String pRole) throws PersistentStoreException
addMemberToProtectionDomain
in interface RelationUpdater
PersistentStoreException
public boolean addMembersToProtectionDomain(Collection<? extends Member> pMember, ProtectionDomain pDomain, String pRole) throws PersistentStoreException
addMembersToProtectionDomain
in interface RelationUpdater
PersistentStoreException
public boolean addMembersToProtectionDomain(Collection<? extends Member> pMember, ProtectionDomain pDomain, neo.xredsys.acl.Role pRole) throws PersistentStoreException
addMembersToProtectionDomain
in interface RelationUpdater
PersistentStoreException
public boolean removeMemberFromProtectionDomain(Member pMember, ProtectionDomain pDomain, String pRole) throws PersistentStoreException
removeMemberFromProtectionDomain
in interface RelationUpdater
PersistentStoreException
public boolean addUserToIOObject(Person person, IOObject ioObject, String pRole) throws PersistentStoreException, IllegalOperationException
RelationUpdater
IOObject
.addUserToIOObject
in interface RelationUpdater
person
- the person to get a role on this IOObject
ioObject
- the IOObject
to add this person into with the specified rolePersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
IOObject
public boolean addUserGroupToSection(UserGroup userGroup, Section pSection, neo.xredsys.acl.Role pRole) throws PersistentStoreException
RelationUpdater
addUserGroupToSection
in interface RelationUpdater
userGroup
- the userGroup to get a role on this sectionpSection
- the section to add this userGroup into with the specified rolePersistentStoreException
- if an error occurs in the persistence layerpublic boolean addUserGroupToSection(UserGroup userGroup, Section pSection, String pRole) throws PersistentStoreException
RelationUpdater
addUserGroupToSection
in interface RelationUpdater
userGroup
- the userGroup to get a role on this sectionpSection
- the section to add this userGroup into with the specified rolePersistentStoreException
- if an error occurs in the persistence layerpublic boolean removeMemberFromEntry(Member member, Section entry, neo.xredsys.acl.Role role) throws PersistentStoreException
RelationUpdater
Members
role on the given LDAPEntry
.
Member
objects are typically users or groups. LDAPEntry
objects are typically sectionsremoveMemberFromEntry
in interface RelationUpdater
member
- the member that no longer will have the specified role on the ldap entry in questionentry
- the ldap entry that the given member no longer will have the specified role onrole
- the role that the given member no longer will have on the ldap entry in questionPersistentStoreException
- if an error occurs in the persistence layerMember
public boolean removeUserGroupFromSection(UserGroup userGroup, Section pSection, String pRole) throws PersistentStoreException
RelationUpdater
removeUserGroupFromSection
in interface RelationUpdater
userGroup
- the userGroup to lose a role on this sectionpSection
- the section to remove this userGroup from with the specified rolePersistentStoreException
- if an error occurs in the persistence layerpublic boolean removeUserGroupFromSection(UserGroup userGroup, Section section, neo.xredsys.acl.Role role) throws PersistentStoreException
RelationUpdater
removeUserGroupFromSection
in interface RelationUpdater
userGroup
- the userGroup to lose a role on this sectionsection
- the section to remove this userGroup from with the specified rolePersistentStoreException
- if an error occurs in the persistence layerpublic boolean removeUserFromIOObject(Person person, IOObject pObject, String pRole) throws PersistentStoreException
RelationUpdater
IOObject
in question.removeUserFromIOObject
in interface RelationUpdater
person
- the user to remove from the IOObject
in questionpObject
- the IOObject
to remove the specified user fromPersistentStoreException
- if an error occurs in the persistence layerIOObject
public boolean removeUserFromSection(Person person, Section pSection, String pRole) throws PersistentStoreException
RelationUpdater
removeUserFromSection
in interface RelationUpdater
person
- the user to remove from the section in questionpSection
- the section to remove the specified user fromPersistentStoreException
- if an error occurs in the persistence layerpublic boolean removeUserFromSection(Person person, Section section, neo.xredsys.acl.Role role) throws PersistentStoreException
RelationUpdater
removeUserFromSection
in interface RelationUpdater
person
- the user to remove from the section in questionsection
- the section to remove the specified user fromPersistentStoreException
- if an error occurs in the persistence layerpublic boolean addPersonToPublication(Person person, Publication pub) throws PersistentStoreException
RelationUpdater
addPersonToPublication
in interface RelationUpdater
person
- the person to add to the publication in questionpub
- the publication to add the specified person intoPersistentStoreException
- if an error occurs in the persistence layerpublic boolean addPersonToPublication(Person person, Publication pub, boolean isExternal) throws PersistentStoreException
PersistentStoreException
public boolean removePersonFromPublication(Person person, Publication pub) throws PersistentStoreException
RelationUpdater
removePersonFromPublication
in interface RelationUpdater
person
- the person to remove from the publication in questionpub
- the publication to remove the specified person fromPersistentStoreException
- if an error occurs in the persistence layerpublic void moveArticles(Section oldHomeSection, Section targetSection) throws IllegalOperationException
RelationUpdater
moveArticles
in interface RelationUpdater
oldHomeSection
- the section to move articles fromtargetSection
- the section to move articles toIllegalOperationException
- if trying to remove a relation that does not existpublic void moveShortCuts(Section oldSection, Section targetSection) throws IllegalOperationException
RelationUpdater
moveShortCuts
in interface RelationUpdater
oldSection
- the section to move articles fromtargetSection
- the section to move articles toIllegalOperationException
- if trying to remove a relation that does not existpublic void deleteShortCuts(Section sec, boolean recursive) throws IllegalOperationException
RelationUpdater
deleteShortCuts
in interface RelationUpdater
sec
- the section to remove articles fromrecursive
- true if articles also should be removed from pools belonging to subsections;otherwise falseIllegalOperationException
- if trying to remove a relation that does not existpublic void deleteArticlesInSection(Section sec, boolean recursive) throws IllegalOperationException
RelationUpdater
deleteArticlesInSection
in interface RelationUpdater
sec
- the section to remove articles fromrecursive
- true if articles also should be removed from subsections;otherwise falseIllegalOperationException
- if trying to remove a relation that does not exist© 1998- 2021 Escenic AS