public interface ProfileTransaction extends Profile, IOTransaction
ProfileUpdater pu = IOAPI.getAPI().getProfileUpdater();
ProfileTransaction tran = pu.newProfile();
PersonTransaction person = tran.newProfilePerson();
// Operations on person
ArticleTransaction article = tran.newProfileArticle();
article.setTitle("My profile");
//Operations on article
tran.create();
IOAtom.ObjectType
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
Modifier and Type | Method and Description |
---|---|
void |
addProfileArticle(Article article)
Add a profile article to the end of the list of profile articles.
|
ArticleTransaction |
editProfileArticle(Article article)
Edit one profile article.
|
ArticleTransaction |
editProfileArticle(int position)
Edit one profile article.
|
ArticleTransaction[] |
editProfileArticle(String name)
Edit all profile articles of this type.
|
PersonTransaction |
editProfilePerson()
Edit the profile owner.
|
void |
insertProfileArticle(int position,
Article article)
Insert a new profile article in the specified position.
|
ArticleTransaction |
newProfileArticle(String articleTypeName)
Helper method to add a new profile article to this profile.
|
PersonTransaction |
newProfilePerson()
Helper method to create a new profile owner for this
profile.
|
Article |
removeProfileArticle(Article article)
Remove article from the profile.
|
Article |
removeProfileArticle(int position)
Remove article from profile.
|
Article[] |
removeProfileArticle(String name)
Remove all profile articles of one type.
|
Article |
replaceProfileArticle(Article oldArticle,
Article newArticle)
Replace a profile article with a new profile article.
|
Article |
replaceProfileArticle(int position,
Article newArticle)
Replace a profile article with a new profile article.
|
Person |
replaceProfilePerson(Person newPerson)
Replace the profile owner with a new owner.
|
getProfileArticle, getProfileArticle, getProfileArticleList, getProfileArticles, getProfilePerson, indexOf, size
create, delete, getObject, release, setId, setOwnerPublicationId, update
breakAndLock, createTransaction, getChecksum, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getProtectionDomain, getProtectionDomains, isLocked, isPreview, isValid, lock, lock, lock, lock, refresh
PersonTransaction newProfilePerson() throws IllegalOperationException
IllegalOperationException
ArticleTransaction newProfileArticle(String articleTypeName) throws IllegalOperationException
articleTypeName
- Name of the article type of which article should be createdIllegalOperationException
Person replaceProfilePerson(Person newPerson) throws NoSuchObjectException, IllegalOperationException
newPerson
- The new owner of this profile.NoSuchObjectException
IllegalOperationException
Article replaceProfileArticle(Article oldArticle, Article newArticle) throws NoSuchObjectException, IllegalOperationException
oldArticle
- The profile article to be replaced.newArticle
- The new profile article.NoSuchObjectException
IllegalOperationException
Article replaceProfileArticle(int position, Article newArticle) throws IndexOutOfBoundsException, IllegalOperationException
position
- Replace the profile article in this position.newArticle
- The new profile article.IndexOutOfBoundsException
IllegalOperationException
void insertProfileArticle(int position, Article article) throws IndexOutOfBoundsException, IllegalOperationException
position
- Where to place the new profile article.article
- The profile article to add.IndexOutOfBoundsException
IllegalOperationException
void addProfileArticle(Article article) throws IllegalOperationException
article
- The article to add.IllegalOperationException
Article removeProfileArticle(int position) throws IndexOutOfBoundsException
position
- Remove article from position from the profile.IndexOutOfBoundsException
Article removeProfileArticle(Article article)
article
- The article to remove.Article[] removeProfileArticle(String name)
name
- Remove all profile articles of this type.ArticleTransaction editProfileArticle(Article article) throws NoSuchObjectException, IllegalOperationException
article
- The profile article to edit.NoSuchObjectException
IllegalOperationException
ArticleTransaction editProfileArticle(int position) throws IndexOutOfBoundsException, IllegalOperationException
position
- Edit the profile article in this position.IndexOutOfBoundsException
IllegalOperationException
ArticleTransaction[] editProfileArticle(String name) throws NoSuchObjectException, IllegalOperationException
name
- Edit the profile articles of this type.NoSuchObjectException
IllegalOperationException
PersonTransaction editProfilePerson() throws NoSuchObjectException, IllegalOperationException
NoSuchObjectException
IllegalOperationException
© 1998- 2021 Escenic AS