public interface PersonTransaction extends Person, IOTransaction, ReferenceEntityTransaction
Person
object.
This will ensure that only one person can modify this section at a time. A new transaction object can be retrieved when this object is released.
See LockManager
for further details on locking.
Make sure that all manditory attributes are set before invoking IOTransaction.create()
.
Manditory attributes:
Person
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 |
---|---|
IORelation |
addProfile(Article pArticle)
Creates a profile relation between the article and the person
|
boolean |
createAsUser()
Deprecated.
not implemented yet
|
void |
removeProfile(Article pArticle)
Removes the relation between the article and the person.
|
void |
removeProfiles()
Removes all profile relations for this person
|
void |
setAddress(String adr)
Sets the address where this person lives.
|
void |
setDescription(String descrId)
Sets the description this
Person . |
void |
setEmailAddress(String pEmailAddress)
Sets the email address to this
Person . |
void |
setFirstName(String fName)
Sets the first name of this person.
|
void |
setLoginRealms(com.escenic.auth.Realm... pRealms)
Set the list of realms the user should have login access to.
|
void |
setOccupation(String occup)
Sets the occupation of this person.
|
void |
setPassword(String password)
Sets the password for this person.
|
void |
setPhoneMobile(String tlfMob)
Sets the phone number to this
Person's mobilePhone. |
void |
setPhonePrivate(String tlfPriv)
Sets the phone number to where this
Person lives. |
void |
setPhoneWorkDirect(String tlfWork)
Sets the direct phone number to where this
Person works. |
void |
setPostNumber(String pNr)
Sets the post number/zip code of this person's address.
|
void |
setPostPlace(String postPl)
Sets the post place of this person's address.
|
void |
setPrivileged(boolean pPrivileged)
Deprecated.
Use setLoginRealms with the restricted list of
possible realms for the user to log into.
|
void |
setSurName(String surName)
Sets the surname of this person.
|
void |
setUserName(String username)
Sets the username of this person.
|
getAddress, getArticlesByRoleKeeper, getDescription, getEmailAddress, getEmailAddresses, getFirstName, getFriendlyPublicationIds, getLoginRealms, getName, getOccupation, getPhoneMobile, getPhonePrivate, getPhoneWorkDirect, getPostNumber, getPostPlace, getProfiles, getSurName, getUserName, isExternal, isPrivileged, isUser
getProtectionDomain, getUserGroups
setCreationDate, setFirstPublished, setGenericName, setLastModified, setPublishDate, setReferenceState, setSourceId, setSourceName, setStateChange, setType, setUrl
getArticleRelations, getArticleRelations, getArticles, getArticles, getCreationDate, getFirstPublished, getGenericName, getLastModified, getPublishDate, getReferenceState, getReferenceType, getSourceId, getSourceName, getStateChange, getUrl, isPublished
create, delete, getObject, release, setId, setOwnerPublicationId, update
breakAndLock, createTransaction, getChecksum, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getProtectionDomains, isLocked, isPreview, isValid, lock, lock, lock, lock, refresh
boolean createAsUser() throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
void setUserName(String username) throws PersistentStoreException, NoSuchObjectException
username
- the username of this personPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setFirstName(String fName) throws PersistentStoreException, NoSuchObjectException
fName
- the first name of this personPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setSurName(String surName) throws PersistentStoreException, NoSuchObjectException
surName
- the surname of this personPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setOccupation(String occup) throws PersistentStoreException, NoSuchObjectException
occup
- the occupation of this personPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setAddress(String adr) throws PersistentStoreException, NoSuchObjectException
adr
- the address where this person livesPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setPostNumber(String pNr) throws PersistentStoreException, NoSuchObjectException
pNr
- the post number/zip code of this person's addressPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setPostPlace(String postPl) throws PersistentStoreException, NoSuchObjectException
postPl
- the post place of this person's address.PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setPhoneWorkDirect(String tlfWork) throws PersistentStoreException, NoSuchObjectException
Person
works.tlfWork
- the direct phone number to where this Person
worksPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setPhonePrivate(String tlfPriv) throws PersistentStoreException, NoSuchObjectException
Person
lives.tlfPriv
- the phone number to where this Person livesPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setPhoneMobile(String tlfMob) throws PersistentStoreException, NoSuchObjectException
Person's
mobilePhone.tlfMob
- the phone number to this Person's
mobilePhonePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setEmailAddress(String pEmailAddress) throws PersistentStoreException, NoSuchObjectException
Person
.pEmailAddress
- Returns the email address to this PersonPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setDescription(String descrId) throws PersistentStoreException, NoSuchObjectException
Person
.descrId
- the description this Person
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setPassword(String password) throws PersistentStoreException, NoSuchObjectException
password
- the new password for this personPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existvoid setPrivileged(boolean pPrivileged)
pPrivileged
- set to false if this user should not be
able to log into an Escenic publication. Default is true.void setLoginRealms(com.escenic.auth.Realm... pRealms)
The
- list of realms this user should have login access to.IORelation addProfile(Article pArticle)
pArticle
- the article to create a relation toovoid removeProfile(Article pArticle)
pArticle
- the article to removevoid removeProfiles()
© 1998- 2021 Escenic AS