public class IOObjectUpdater extends AbstractNurseryService implements ObjectUpdater
GenericService.StartCommand, GenericService.StopCommand
ObjectUpdater.Command
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
mLogger |
CLASS_VERSION
state
Constructor and Description |
---|
IOObjectUpdater() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(String filterName,
TransactionFilter filter)
Add a transaction filter to the filter chain.
|
void |
addFriendlyPub(int pPublicationId,
int pFriendlyPublicationId) |
void |
addPostFilter(String pFilterName,
PostTransactionFilter pPostFilter)
Add a PostTransaction filter to the postfilter chain.
|
protected void |
applyCreateFiltersTo(IOTransaction pTransaction) |
protected void |
applyCreatePostFiltersTo(IOTransaction pTransaction) |
protected void |
applyDeleteFiltersTo(IOTransaction pTransaction) |
protected void |
applyDeletePostFiltersTo(IOTransaction pTransaction) |
protected void |
applyStagedUpdateFiltersTo(IOTransaction pTransaction) |
protected void |
applyStagedUpdatePostFiltersTo(IOTransaction pTransaction) |
protected void |
applyUpdateFiltersTo(IOTransaction pTransaction) |
protected void |
applyUpdatePostFiltersTo(IOTransaction pTransaction) |
protected void |
checkUniqueSectionUrl(SectionTransaction pSection) |
protected void |
copyAttributesToInnerIOArticle(ArticleTransaction pArticle) |
protected void |
copyAttributesToIOArticle(ArticleTransaction pArticleTransaction) |
boolean |
createAgreementInfo(AgreementInfoTransaction at)
Creates a new agreement.
|
boolean |
createArticle(ArticleTransaction pArticle)
Creates a new article.
|
boolean |
createArticleMetaContent(ArticleTransaction pArticleTransaction)
Creates meta-content on this
Article . |
boolean |
createExternalPerson(PersonTransaction pt)
Creates a new non privileged person.
|
boolean |
createLayout(LayoutTransaction layout)
Creates a new layout.
|
boolean |
createPerson(PersonTransaction pt)
Creates a new person.
|
boolean |
createPool(PoolTransaction pool)
This method creates a new pool
|
boolean |
createSection(SectionTransaction section)
This method creates a new section
|
boolean |
createUserGroup(UserGroupTransaction gt)
Creates a new empty UserGroup.
|
boolean |
createUserGroup(UserGroupTransaction gt,
Member... members)
Creates a new UserGroup.
|
VirtualSection |
createVirtualSection(Section pParent,
Section pReal,
boolean recursive)
Creates a new shadow section from a source section.
|
VirtualSection |
createVirtualSection(Section pParent,
Section pReal,
String name,
boolean recursive)
Creates a new shadow section from a source section.
|
VirtualSection |
createVirtualSection(Section pParent,
Section pReal,
String name,
String directoryname,
boolean recursive)
Creates a new shadow section from a source section.
|
VirtualSection |
createVirtualSection(Section pParent,
Section pReal,
String name,
String directoryname,
String uniqueName,
boolean recursive)
Creates a new shadow section from a virtual source section.
|
boolean |
deleteAgreementInfo(AgreementInfoTransaction at)
Deletes an existing agreement.
|
boolean |
deleteArticle(ArticleTransaction pArticle)
This method deletes the specified article.
|
boolean |
deleteFriendlyPub(int pPublicationId,
int pFriendlyPublicationId) |
boolean |
deleteLayout(LayoutTransaction layout)
Deletes an existing layout.
|
boolean |
deletePerson(PersonTransaction person,
boolean pDeleteRelations)
Deletes an existing person from the database.
|
boolean |
deletePool(PoolTransaction pool)
This method deletes a pool.
|
void |
deletePublication(int pubId)
Deletes an existing publication.
|
boolean |
deleteSection(SectionTransaction section)
This method deletes an existing section
If the section contains subsections, these will be removed as well as any pools owned by the section.
|
boolean |
deleteSection(SectionTransaction section,
boolean deleteArticles)
Deletes an existing section from the database.
|
boolean |
deleteUserGroup(UserGroupTransaction gt)
Deletes an existing
UserGroup . |
void |
emptySectionParameterCache()
Removes all entries in the section parameter cache.
|
void |
execute(ObjectUpdater.Command pCommand)
Executes the given
ObjectUpdater.Command within a database transaction. |
neo.xredsys.acl.ACLManager |
getACLManager() |
CacheManager |
getCacheManager() |
neo.xredsys.dao.ContentBinaryRelationDAO |
getContentBinaryRelationDAO() |
protected neo.xredsys.content.ContentManager |
getContentManager() |
Indexer |
getDatabaseIndexer() |
EventManager |
getEventManager() |
Map |
getFilterMap()
Return a Map of all configured filters.
|
LockManager |
getLockManager() |
ObjectLoader |
getObjectLoader() |
neo.xredsys.auth.PermissionChecker |
getPermissionChecker() |
neo.xredsys.dao.PersonDao |
getPersonDao() |
Map |
getPostFilterMap()
Return a Map of all configured postfilters.
|
PresenceChecker |
getPresenceChecker() |
RelationLoader |
getRelationLoader() |
RelationUpdater |
getRelationUpdater() |
boolean |
getStrictArticleValidation() |
TypeManager |
getTypeManager() |
neo.xredsys.dao.UserGroupDao |
getUserGroupDao() |
neo.xredsys.dao.UserRealmsDao |
getUserRealmsDao() |
void |
insertArticleLog(Article article,
String description,
Person person)
Inserts a new article log entry in the database.
|
protected void |
insertArticleMetacontent(ArticleTransaction pArticleTransaction) |
protected void |
postArticleCreatedEvents(ArticleTransaction pArticle,
List<IOEvent> pEvents) |
protected void |
refreshAfterCreate(ArticleTransaction pArticleTransaction) |
protected void |
refreshAfterCreate(IOTransaction trans,
int id)
refreshes object after creation
|
protected void |
refreshAfterDelete(IOTransaction trans)
***Description of the Method***
|
protected void |
refreshAfterUpdate(IOTransaction trans)
refreshes object after an update
|
void |
removeFilter(String filterName)
Remove a specific filter from the filter chain.
|
void |
removePostFilter(String pPostFilterName)
Remove a specific postfilter from the postfilter chain.
|
boolean |
removeUserRights(PersonTransaction pt)
Removes the user rights of this person.
|
int |
revertStagedArticles(int pNumberOfDaysSinceTheyWereModified)
Reverts all staged articles that has not been modified for a given number of days.
|
void |
setACLManager(neo.xredsys.acl.ACLManager pACLManager) |
void |
setCacheManager(CacheManager pCacheManager) |
void |
setContentBinaryRelationDAO(neo.xredsys.dao.ContentBinaryRelationDAO pContentBinaryRelationDAO) |
void |
setDatabaseIndexer(Indexer pDatabaseIndexer) |
void |
setEventManager(EventManager pEventManager) |
void |
setLockManager(LockManager pLockManager) |
void |
setObjectLoader(ObjectLoader pObjectLoader) |
void |
setPermissionChecker(neo.xredsys.auth.PermissionChecker<IOObject> pPermissionChecker) |
void |
setPersonDao(neo.xredsys.dao.PersonDao pPersonDao) |
void |
setPresenceChecker(PresenceChecker pPresenceChecker) |
void |
setRelationLoader(RelationLoader pRelationLoader) |
void |
setRelationUpdater(RelationUpdater pRelationUpdater) |
void |
setStrictArticleValidation(boolean strictArticleValidation) |
void |
setTypeManager(TypeManager pTypeManager) |
void |
setUserGroupDao(neo.xredsys.dao.UserGroupDao pUserGroupDao) |
void |
setUserRealmsDao(neo.xredsys.dao.UserRealmsDao pUserRealmsDao) |
protected void |
startService()
Is called by
AbstractNurseryService.doStartService() when the NurseryService is being started. |
protected void |
stopService()
Is called by
AbstractNurseryService.doStopService() when the service is being shut down. |
void |
syncVirtualSection(Section pSection)
Sync shadow section with changes done in "real" section.
|
boolean |
updateAgreementInfo(AgreementInfoTransaction at)
Updates an existing agreement.
|
boolean |
updateArticle(ArticleTransaction pArticle)
This method modifies the specified article.
|
void |
updateArticle(ArticleTransaction pTransaction,
ArticleTransaction.Transition pTransition) |
boolean |
updatePassword(PersonTransaction pt,
com.escenic.auth.Realm pRealm,
String pOldPassword,
String pNewPassword)
Updates a persons password.
|
boolean |
updatePassword(PersonTransaction pt,
String oldPassword,
String newPassword)
Updates a persons password.
|
boolean |
updatePerson(PersonTransaction pt)
Updates an existing person.
|
boolean |
updatePool(PoolTransaction pool)
This method updates a pool
|
boolean |
updateSection(SectionTransaction section)
This method updates an existing section
|
boolean |
updateUserGroup(UserGroupTransaction gt)
Updates an existing UserGroup.
|
void |
updateVirtualSectionTree(VirtualSection root)
Manually synchronizes a shadow section tree with the correct virtual target tree.
|
protected void |
validateArticleTransaction(ArticleTransaction pArticleTransaction) |
protected void |
validateRequiredAttributes(ArticleTransaction pArticle) |
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 deletePublication(int pubId) throws PersistentStoreException, IllegalOperationException
ObjectUpdater
deletePublication
in interface ObjectUpdater
pubId
- the id of the publication to deletePersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean createArticleMetaContent(ArticleTransaction pArticleTransaction) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
Article
. Meta-content is described in ArticleMetaContentInterface
createArticleMetaContent
in interface ObjectUpdater
pArticleTransaction
- the article to have the new meta-contentPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if the Article
does not existIllegalOperationException
- if this user is not authorized to perform this actionprotected void refreshAfterCreate(ArticleTransaction pArticleTransaction)
protected void insertArticleMetacontent(ArticleTransaction pArticleTransaction) throws SQLException
SQLException
protected void copyAttributesToIOArticle(ArticleTransaction pArticleTransaction)
protected void validateArticleTransaction(ArticleTransaction pArticleTransaction) throws IllegalOperationException
IllegalOperationException
public void insertArticleLog(Article article, String description, Person person) throws PersistentStoreException
ObjectUpdater
insertArticleLog
in interface ObjectUpdater
article
- the article to create the new log entry fromdescription
- the log descriptionperson
- the person that has modified this article. null
if log entry should not be related to a specific person.PersistentStoreException
- if an error occurs in the persistence layerpublic boolean createArticle(ArticleTransaction pArticle) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
createArticle
in interface ObjectUpdater
pArticle
- the article 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 actionprotected void postArticleCreatedEvents(ArticleTransaction pArticle, List<IOEvent> pEvents)
protected void copyAttributesToInnerIOArticle(ArticleTransaction pArticle)
protected void validateRequiredAttributes(ArticleTransaction pArticle) throws IllegalOperationException
IllegalOperationException
public boolean deleteArticle(ArticleTransaction pArticle) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
deleteArticle
in interface ObjectUpdater
pArticle
- The article to deletePersistentStoreException
- ***Description of Exception***NoSuchObjectException
- ***Description of Exception***IllegalOperationException
- ***Description of Exception***public boolean updateArticle(ArticleTransaction pArticle) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
updateArticle
in interface ObjectUpdater
pArticle
- The article to updatePersistentStoreException
- ***Description of Exception***NoSuchObjectException
- ***Description of Exception***IllegalOperationException
- ***Description of Exception***public void updateArticle(ArticleTransaction pTransaction, ArticleTransaction.Transition pTransition) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
updateArticle
in interface ObjectUpdater
PersistentStoreException
NoSuchObjectException
IllegalOperationException
public void syncVirtualSection(Section pSection) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
syncVirtualSection
in interface ObjectUpdater
pSection
- the section to sync.PersistentStoreException
NoSuchObjectException
IllegalOperationException
public VirtualSection createVirtualSection(Section pParent, Section pReal, String name, boolean recursive) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
createVirtualSection
in interface ObjectUpdater
pParent
- where to place the new section. This will be the parent of the new virtual sectionpReal
- the section to use as a source for the new shadow sectionname
- the name of the new shadow sectionrecursive
- all subsections of pReal will be added to the shadow section if they also are virtual targetsVirtualSection
representation of the new shadow sectionPersistentStoreException
- 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 VirtualSection createVirtualSection(Section pParent, Section pReal, String name, String directoryname, boolean recursive) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
createVirtualSection
in interface ObjectUpdater
pParent
- where to place the new section. This will be the root of the new virtual sectionpReal
- the section to use as a source for the new shadow sectionname
- the name of the new shadow sectiondirectoryname
- the directory of the new shadow sectionrecursive
- all subsections of pReal will be added to the shadow section if they also are virtual targetsVirtualSection
representation of the new shadow sectionPersistentStoreException
- 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 VirtualSection createVirtualSection(Section pParent, Section pReal, String name, String directoryname, String uniqueName, boolean recursive) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
createVirtualSection
in interface ObjectUpdater
pParent
- where to place the new section. This will be the root of the new virtual source sectionpReal
- the section to use as a source for the new shadow sectionname
- the name of the new shadow sectiondirectoryname
- the directory of the new shadow sectionuniqueName
- the uniquename of the new shadow sectionrecursive
- all subsections of pReal will be added to the shadow section if they also are virtual targetsVirtualSection
representation of the new shadow sectionPersistentStoreException
- 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 VirtualSection createVirtualSection(Section pParent, Section pReal, boolean recursive) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
createVirtualSection
in interface ObjectUpdater
pParent
- where to place the new section. This will be the parent of the new virtual sectionpReal
- the section to use as a source for the new shadow sectionrecursive
- all subsections of pReal will be added to the shadow section if they also are virtual targetsVirtualSection
representation of the new shadow sectionPersistentStoreException
- 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 void emptySectionParameterCache()
ObjectUpdater
emptySectionParameterCache
in interface ObjectUpdater
public boolean createSection(SectionTransaction section) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
createSection
in interface ObjectUpdater
section
- the section to createPersistentStoreException
- ***Description of Exception***NoSuchObjectException
- ***Description of Exception***IllegalOperationException
- ***Description of Exception***protected void checkUniqueSectionUrl(SectionTransaction pSection) throws IllegalOperationException
IllegalOperationException
public boolean deleteSection(SectionTransaction section) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
deleteSection
in interface ObjectUpdater
section
- the section to deletePersistentStoreException
- ***Description of Exception***NoSuchObjectException
- ***Description of Exception***IllegalOperationException
- ***Description of Exception***public boolean deleteSection(SectionTransaction section, boolean deleteArticles) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
deleteSection
in interface ObjectUpdater
section
- the section to deletedeleteArticles
- If set to true, all articles with home
section in this section will also be deletedPersistentStoreException
- 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 updateSection(SectionTransaction section) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
updateSection
in interface ObjectUpdater
section
- the section to modifyPersistentStoreException
- ***Description of Exception***NoSuchObjectException
- ***Description of Exception***IllegalOperationException
- ***Description of Exception***public boolean createPool(PoolTransaction pool) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
createPool
in interface ObjectUpdater
pool
- the pool to createPersistentStoreException
- ***Description of Exception***NoSuchObjectException
- ***Description of Exception***IllegalOperationException
- ***Description of Exception***public boolean deletePool(PoolTransaction pool) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
deletePool
in interface ObjectUpdater
pool
- the pool to deletePersistentStoreException
- ***Description of Exception***NoSuchObjectException
- ***Description of Exception***IllegalOperationException
- ***Description of Exception***public boolean updatePool(PoolTransaction pool) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
updatePool
in interface ObjectUpdater
pool
- the new pool dataPersistentStoreException
- ***Description of Exception***NoSuchObjectException
- ***Description of Exception***IllegalOperationException
- ***Description of Exception***public boolean createLayout(LayoutTransaction layout) throws PersistentStoreException, IllegalOperationException
ObjectUpdater
createLayout
in interface ObjectUpdater
layout
- the layout to createPersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean deleteLayout(LayoutTransaction layout) throws PersistentStoreException, IllegalOperationException
ObjectUpdater
deleteLayout
in interface ObjectUpdater
layout
- the layout to deletePersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean createExternalPerson(PersonTransaction pt) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
createExternalPerson
in interface ObjectUpdater
pt
- the person 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 createPerson(PersonTransaction pt) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
createPerson
in interface ObjectUpdater
pt
- the person 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 removeUserRights(PersonTransaction pt) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
removeUserRights
in interface ObjectUpdater
pt
- the person to lose user rightsPersistentStoreException
- 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 deletePerson(PersonTransaction person, boolean pDeleteRelations) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
deletePerson
in interface ObjectUpdater
person
- the person to deletepDeleteRelations
- true if relations with other IOObject
objects should be removedPersistentStoreException
- 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 updatePerson(PersonTransaction pt) throws PersistentStoreException, IllegalOperationException, NoSuchObjectException
ObjectUpdater
updatePerson
in interface ObjectUpdater
pt
- the person to modifyPersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
- if this user is not authorized to perform this actionNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean updatePassword(PersonTransaction pt, String oldPassword, String newPassword) throws PersistentStoreException, IllegalOperationException, NoSuchObjectException
ObjectUpdater
updatePassword
in interface ObjectUpdater
pt
- the person to update his/her passwordoldPassword
- this persons old passwordnewPassword
- this persons new passwordPersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
- if this user is not authorized to perform this actionNoSuchObjectException
- if refering to an IOObject
that does not existpublic boolean updatePassword(PersonTransaction pt, com.escenic.auth.Realm pRealm, String pOldPassword, String pNewPassword) throws PersistentStoreException, IllegalOperationException, NoSuchObjectException
ObjectUpdater
updatePassword
in interface ObjectUpdater
pt
- the person to update his/her passwordpRealm
- the realm for which we want to change passwordpOldPassword
- this persons old passwordpNewPassword
- this persons new passwordPersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
- if this user is not authorized to perform this actionNoSuchObjectException
- if referring to an IOObject
that does not existprotected void refreshAfterUpdate(IOTransaction trans)
trans
- ***Description of Parameter***protected void refreshAfterCreate(IOTransaction trans, int id)
trans
- ***Description of Parameter***id
- ***Description of Parameter***protected void refreshAfterDelete(IOTransaction trans)
trans
- ***Description of Parameter***public boolean createUserGroup(UserGroupTransaction gt) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
createUserGroup
in interface ObjectUpdater
gt
- the group to createPersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
- if this user is not authorized to perform this actionNoSuchObjectException
public boolean createUserGroup(UserGroupTransaction gt, Member... members) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
createUserGroup
in interface ObjectUpdater
gt
- the group to createmembers
- the member(s) to insert into the new groupPersistentStoreException
- 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 deleteUserGroup(UserGroupTransaction gt) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
UserGroup
.deleteUserGroup
in interface ObjectUpdater
gt
- the UserGroup
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 updateUserGroup(UserGroupTransaction gt) throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
ObjectUpdater
updateUserGroup
in interface ObjectUpdater
gt
- the group 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 updateAgreementInfo(AgreementInfoTransaction at) throws PersistentStoreException, IllegalOperationException
ObjectUpdater
updateAgreementInfo
in interface ObjectUpdater
at
- the agreement to modifyPersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean createAgreementInfo(AgreementInfoTransaction at) throws PersistentStoreException, IllegalOperationException
ObjectUpdater
Section
or another IOObect
.
This agreement will decide who has access rights to the related IOObjects
.createAgreementInfo
in interface ObjectUpdater
at
- the agreement to createPersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean deleteAgreementInfo(AgreementInfoTransaction at) throws PersistentStoreException, IllegalOperationException
ObjectUpdater
Section
or another IOObect
.
This agreement will decide who has access rights to the related IOObjects
.deleteAgreementInfo
in interface ObjectUpdater
at
- the agreement to deletePersistentStoreException
- if an error occurs in the persistence layerIllegalOperationException
- if this user is not authorized to perform this actionpublic boolean deleteFriendlyPub(int pPublicationId, int pFriendlyPublicationId)
deleteFriendlyPub
in interface ObjectUpdater
public void addFriendlyPub(int pPublicationId, int pFriendlyPublicationId)
addFriendlyPub
in interface ObjectUpdater
public void updateVirtualSectionTree(VirtualSection root) throws IllegalOperationException
ObjectUpdater
updateVirtualSectionTree
in interface ObjectUpdater
root
- the root of the shadow section tree to synchronizeIllegalOperationException
- if the directory name of a new subsection in the virtual source tree is identical with an existing section in the shadow section treepublic void addFilter(String filterName, TransactionFilter filter)
filterName
- filter
- public void removeFilter(String filterName)
public void addPostFilter(String pFilterName, PostTransactionFilter pPostFilter)
public void removePostFilter(String pPostFilterName)
public Map getFilterMap()
public Map getPostFilterMap()
protected void applyCreateFiltersTo(IOTransaction pTransaction) throws IllegalOperationException
IllegalOperationException
protected void applyUpdateFiltersTo(IOTransaction pTransaction) throws IllegalOperationException
IllegalOperationException
protected void applyStagedUpdateFiltersTo(IOTransaction pTransaction) throws IllegalOperationException
IllegalOperationException
protected void applyDeleteFiltersTo(IOTransaction pTransaction) throws IllegalOperationException
IllegalOperationException
protected void applyCreatePostFiltersTo(IOTransaction pTransaction) throws IllegalOperationException
IllegalOperationException
protected void applyUpdatePostFiltersTo(IOTransaction pTransaction) throws IllegalOperationException
IllegalOperationException
protected void applyStagedUpdatePostFiltersTo(IOTransaction pTransaction) throws IllegalOperationException
IllegalOperationException
protected void applyDeletePostFiltersTo(IOTransaction pTransaction) throws IllegalOperationException
IllegalOperationException
public void setPermissionChecker(neo.xredsys.auth.PermissionChecker<IOObject> pPermissionChecker)
public neo.xredsys.auth.PermissionChecker getPermissionChecker()
public boolean getStrictArticleValidation()
public void setStrictArticleValidation(boolean strictArticleValidation)
public final EventManager getEventManager()
public final void setEventManager(EventManager pEventManager)
public final RelationUpdater getRelationUpdater()
public final void setRelationUpdater(RelationUpdater pRelationUpdater)
public final ObjectLoader getObjectLoader()
public final void setObjectLoader(ObjectLoader pObjectLoader)
public final LockManager getLockManager()
public final void setLockManager(LockManager pLockManager)
public final CacheManager getCacheManager()
public final void setCacheManager(CacheManager pCacheManager)
public final TypeManager getTypeManager()
public final void setTypeManager(TypeManager pTypeManager)
public final Indexer getDatabaseIndexer()
public final void setDatabaseIndexer(Indexer pDatabaseIndexer)
public final RelationLoader getRelationLoader()
public final void setRelationLoader(RelationLoader pRelationLoader)
public final PresenceChecker getPresenceChecker()
public final void setPresenceChecker(PresenceChecker pPresenceChecker)
public neo.xredsys.dao.PersonDao getPersonDao()
public void setPersonDao(neo.xredsys.dao.PersonDao pPersonDao)
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)
public neo.xredsys.dao.UserRealmsDao getUserRealmsDao()
public void setUserRealmsDao(neo.xredsys.dao.UserRealmsDao pUserRealmsDao)
public neo.xredsys.dao.ContentBinaryRelationDAO getContentBinaryRelationDAO()
public void setContentBinaryRelationDAO(neo.xredsys.dao.ContentBinaryRelationDAO pContentBinaryRelationDAO)
protected neo.xredsys.content.ContentManager getContentManager()
public int revertStagedArticles(int pNumberOfDaysSinceTheyWereModified) throws PersistentStoreException
ObjectUpdater
revertStagedArticles
in interface ObjectUpdater
pNumberOfDaysSinceTheyWereModified
- the threshold for when to start reverting changes. All staged articles not
modified since the given number of days in the past will be revertedPersistentStoreException
- if loading the list of the staged articles fails.public void execute(ObjectUpdater.Command pCommand) throws SQLException
ObjectUpdater
ObjectUpdater.Command
within a database transaction. If executing the ObjectUpdater.Command
fails, the
entire database transaction will be rolled back. The original exception thrown by the ObjectUpdater.Command
will be wrapped
inside a SQLException
execute
in interface ObjectUpdater
pCommand
- the ObjectUpdater.Command
to executeSQLException
- if executing the ObjectUpdater.Command
failed.© 1998- 2018 Stibo DX