public class ProfileTransactionImpl extends ProfileImpl implements ProfileTransaction
IOAtom.ObjectType
LOGGER, sRefreshObjectBeforeLock
ID_INVALID, OBJECTTYPE_AGREEMENTINFO, OBJECTTYPE_ARTICLE, OBJECTTYPE_CATALOG, OBJECTTYPE_CATEGORY, OBJECTTYPE_ENTITY, OBJECTTYPE_FORUM, OBJECTTYPE_LAYOUT, OBJECTTYPE_MAX, OBJECTTYPE_MIN, OBJECTTYPE_PERSON, OBJECTTYPE_POOL, OBJECTTYPE_POSTING, OBJECTTYPE_PRESENTATION_FORUM, OBJECTTYPE_PRESENTATION_POSTING, OBJECTTYPE_PRESENTATION_THREAD, OBJECTTYPE_PROFILE, OBJECTTYPE_PUBLICATION, OBJECTTYPE_SECTION, OBJECTTYPE_THREAD, OBJECTTYPE_TOPIC, OBJECTTYPE_UNKNOWN, OBJECTTYPE_USERGROUP
Constructor and Description |
---|
ProfileTransactionImpl()
Deprecated.
|
ProfileTransactionImpl(ProfileImpl pProfile)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addArticle(Article article,
Type relationType)
Deprecated.
|
void |
addArticle(Article article,
Type relationType,
int priority)
Deprecated.
|
void |
addProfileArticle(Article article)
Deprecated.
Add a profile article to the end of the list of profile articles.
|
boolean |
create()
Deprecated.
Creates a new object in the persistence layer.
|
boolean |
delete()
Deprecated.
Removes an existing
IOObject from the persistence layer. |
ArticleTransaction |
editProfileArticle(Article article)
Deprecated.
Edit one profile article.
|
ArticleTransaction |
editProfileArticle(int position)
Deprecated.
Edit one profile article.
|
ArticleTransaction[] |
editProfileArticle(String name)
Deprecated.
Edit all profile articles of this type.
|
PersonTransaction |
editProfilePerson()
Deprecated.
Edit the profile owner.
|
IOObject |
getObject()
Deprecated.
Retrieves the object this transaction was initialized with.
|
void |
insertProfileArticle(int position,
Article article)
Deprecated.
Insert a new profile article in the specified position.
|
void |
insertProfileArticleAfter(Article article,
Article newArticle)
Deprecated.
|
void |
insertProfileArticleBefore(Article article,
Article newArticle)
Deprecated.
|
ArticleTransaction |
newProfileArticle(String pArticleTypeName)
Deprecated.
Helper method to add a new profile article to this profile.
|
PersonTransaction |
newProfilePerson()
Deprecated.
Helper method to create a new profile owner for this
profile.
|
boolean |
release()
Deprecated.
Releases the lock on this
IOObject . |
void |
removeArticle(Article article)
Deprecated.
|
void |
removeArticle(Type relationType)
Deprecated.
|
Article |
removeProfileArticle(Article article)
Deprecated.
Remove article from the profile.
|
Article |
removeProfileArticle(int position)
Deprecated.
Remove article from profile.
|
Article[] |
removeProfileArticle(String name)
Deprecated.
Remove all profile articles of one type.
|
Article |
replaceProfileArticle(Article oldArticle,
Article newArticle)
Deprecated.
Replace a profile article with a new profile article.
|
Article |
replaceProfileArticle(int position,
Article newArticle)
Deprecated.
Replace a profile article with a new profile article.
|
Person |
replaceProfilePerson(Person newPerson)
Deprecated.
Replace the profile owner with a new owner.
|
void |
setId(int pId)
Deprecated.
Set the id of this object.
|
void |
setObject(IOObject pObject)
Deprecated.
|
void |
setOwnerPublicationId(int pPublicationId)
Deprecated.
This method sets the id of the owner publication
|
boolean |
update()
Deprecated.
Updates the database with the changes made on this
IOObject . |
getProfileArticle, getProfileArticle, getProfileArticleList, getProfileArticles, getProfilePerson, getTransactionObjectImpl, getUUID, indexOf, refresh, size, updateMap, updateMap
breakAndLock, compareTo, createTransaction, equals, getChecksum, getDefaultProtectionDomain, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getProtectionDomain, getProtectionDomains, getValid, hashCode, isLocked, isPreview, isStillValid, isValid, lock, lock, lock, lock, objectTypeAsString, setValid, stringToObjectType, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getProfileArticle, getProfileArticle, getProfileArticleList, getProfileArticles, getProfilePerson, indexOf, size
breakAndLock, createTransaction, getChecksum, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getProtectionDomain, getProtectionDomains, isLocked, isPreview, isValid, lock, lock, lock, lock, refresh
public ProfileTransactionImpl()
public ProfileTransactionImpl(ProfileImpl pProfile)
public IOObject getObject()
IOTransaction
getObject
in interface IOTransaction
public void setObject(IOObject pObject)
public boolean update() throws IllegalOperationException
IOTransaction
IOObject
.update
in interface IOTransaction
IllegalOperationException
- if the state of the object did not pass validation checkspublic boolean create() throws IllegalOperationException
IOTransaction
create
in interface IOTransaction
IllegalOperationException
- if the state of the object did not pass validation checkspublic boolean release() throws IllegalOperationException
IOTransaction
IOObject
. A new lock must be retrieved when new modifications should be made
on this object.release
in interface IOTransaction
IllegalOperationException
- if this user is not authorized to perform this actionpublic boolean delete() throws IllegalOperationException
IOTransaction
IOObject
from the persistence layer.delete
in interface IOTransaction
IllegalOperationException
- if the state of the object did not pass validation checkspublic PersonTransaction newProfilePerson() throws IllegalOperationException
ProfileTransaction
newProfilePerson
in interface ProfileTransaction
IllegalOperationException
public ArticleTransaction newProfileArticle(String pArticleTypeName) throws IllegalOperationException
ProfileTransaction
newProfileArticle
in interface ProfileTransaction
pArticleTypeName
- Name of the article type of which article should be createdIllegalOperationException
public Person replaceProfilePerson(Person newPerson) throws NoSuchObjectException, IllegalOperationException
ProfileTransaction
replaceProfilePerson
in interface ProfileTransaction
newPerson
- The new owner of this profile.NoSuchObjectException
IllegalOperationException
public Article replaceProfileArticle(Article oldArticle, Article newArticle) throws NoSuchObjectException, IllegalOperationException
ProfileTransaction
replaceProfileArticle
in interface ProfileTransaction
oldArticle
- The profile article to be replaced.newArticle
- The new profile article.NoSuchObjectException
IllegalOperationException
public Article replaceProfileArticle(int position, Article newArticle) throws IndexOutOfBoundsException, IllegalOperationException
ProfileTransaction
replaceProfileArticle
in interface ProfileTransaction
position
- Replace the profile article in this position.newArticle
- The new profile article.IndexOutOfBoundsException
IllegalOperationException
public void insertProfileArticle(int position, Article article) throws IndexOutOfBoundsException, IllegalOperationException
ProfileTransaction
insertProfileArticle
in interface ProfileTransaction
position
- Where to place the new profile article.article
- The profile article to add.IndexOutOfBoundsException
IllegalOperationException
public void insertProfileArticleBefore(Article article, Article newArticle) throws IndexOutOfBoundsException, IllegalOperationException
public void insertProfileArticleAfter(Article article, Article newArticle) throws IndexOutOfBoundsException, IllegalOperationException
public void addProfileArticle(Article article) throws IllegalOperationException
ProfileTransaction
addProfileArticle
in interface ProfileTransaction
article
- The article to add.IllegalOperationException
public Article removeProfileArticle(int position) throws IndexOutOfBoundsException
ProfileTransaction
removeProfileArticle
in interface ProfileTransaction
position
- Remove article from position from the profile.IndexOutOfBoundsException
public Article removeProfileArticle(Article article)
ProfileTransaction
removeProfileArticle
in interface ProfileTransaction
article
- The article to remove.public Article[] removeProfileArticle(String name)
ProfileTransaction
removeProfileArticle
in interface ProfileTransaction
name
- Remove all profile articles of this type.public ArticleTransaction editProfileArticle(Article article) throws NoSuchObjectException, IllegalOperationException
ProfileTransaction
editProfileArticle
in interface ProfileTransaction
article
- The profile article to edit.NoSuchObjectException
IllegalOperationException
public ArticleTransaction editProfileArticle(int position) throws IndexOutOfBoundsException, IllegalOperationException
ProfileTransaction
editProfileArticle
in interface ProfileTransaction
position
- Edit the profile article in this position.IndexOutOfBoundsException
IllegalOperationException
public ArticleTransaction[] editProfileArticle(String name) throws NoSuchObjectException, IllegalOperationException
ProfileTransaction
editProfileArticle
in interface ProfileTransaction
name
- Edit the profile articles of this type.NoSuchObjectException
IllegalOperationException
public PersonTransaction editProfilePerson() throws IllegalOperationException
ProfileTransaction
editProfilePerson
in interface ProfileTransaction
IllegalOperationException
public void removeArticle(Article article)
public void removeArticle(Type relationType)
public void setId(int pId)
IOTransaction
setId
in interface IOTransaction
setId
in class IOObjectImpl
pId
- the idpublic void setOwnerPublicationId(int pPublicationId)
IOTransaction
setOwnerPublicationId
in interface IOTransaction
setOwnerPublicationId
in class IOObjectImpl
pPublicationId
- the id© 1998- 2018 Stibo DX