public class UserTransactionImpl extends UserImpl implements UserTransaction
IOAtom.ObjectType
mPerson, mReferenceState, mReferenceType, mUserGroups
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 |
---|
UserTransactionImpl(UserImpl pUser)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
IORelation |
addProfile(Article pArticle)
Deprecated.
Creates a profile relation between the article and the person
|
boolean |
create()
Deprecated.
Creates a new object in the persistence layer.
|
boolean |
delete()
Deprecated.
Removes an existing
IOObject from the persistence layer. |
IOObject |
getObject()
Deprecated.
Retrieves the object this transaction was initialized with.
|
boolean |
release()
Deprecated.
Releases the lock on this
IOObject . |
void |
removeProfile(Article pArticle)
Deprecated.
Removes the relation between the article and the person.
|
void |
removeProfiles()
Deprecated.
Removes all profile relations for this person
|
void |
setAddress(String adr)
Deprecated.
Sets the address where this person lives.
|
void |
setCreationDate(Timestamp time)
Deprecated.
Sets the time when this
ReferenceEntity was created. |
void |
setDescription(String descrId)
Deprecated.
Sets the description this
Person . |
void |
setEmailAddress(String pEmailAddress)
Deprecated.
Sets the email address to this
Person . |
void |
setFirstName(String fName)
Deprecated.
Sets the first name of this person.
|
void |
setFirstPublished(Timestamp time)
Deprecated.
Sets the time when this
ReferenceEntity was first published. |
void |
setGenericName(String name)
Deprecated.
Sets the generic name of this
ReferenceEntity . |
void |
setId(int pId)
Deprecated.
Set the id of this object.
|
void |
setLastModified(Timestamp time)
Deprecated.
Sets the time when this
ReferenceEntity was last changed. |
void |
setLoginRealms(com.escenic.auth.Realm... pRealms)
Deprecated.
Set the list of realms the user should have login access to.
|
void |
setOccupation(String occup)
Deprecated.
Sets the occupation of this person.
|
void |
setOwnerPublicationId(int pPublicationId)
Deprecated.
This method sets the id of the owner publication
|
void |
setPassword(String password)
Deprecated.
Sets the password for this person.
|
void |
setPhoneMobile(String tlfMob)
Deprecated.
Sets the phone number to this
Person's mobilePhone. |
void |
setPhonePrivate(String tlfPriv)
Deprecated.
Sets the phone number to where this
Person lives. |
void |
setPhoneWorkDirect(String tlfWork)
Deprecated.
Sets the direct phone number to where this
Person works. |
void |
setPostNumber(String pNr)
Deprecated.
Sets the post number/zip code of this person's address.
|
void |
setPostPlace(String postPl)
Deprecated.
Sets the post place of this person's address.
|
void |
setPrivileged(boolean pPrivileged)
Deprecated.
Set if this person should be able to log in to a Escenic
publication.
|
void |
setPublishDate(Timestamp time)
Deprecated.
Sets the time when this
ReferenceEntity was published. |
void |
setReferenceState(Type state)
Deprecated.
Sets the state of this
ReferenceEntity . |
void |
setSourceId(String sourceId)
Deprecated.
Sets the source id of this
ReferenceEntity . |
void |
setSourceName(String source)
Deprecated.
Sets the source name of this
ReferenceEntity . |
void |
setStateChange(Timestamp time)
Deprecated.
Sets the time of the last state changed.
|
void |
setStatus(Type pStatus)
Deprecated.
Set the status for this user.
|
void |
setSurName(String surName)
Deprecated.
Sets the surname of this person.
|
void |
setType(Type type)
Deprecated.
Sets the type of
ReferenceEntity . |
void |
setUrl(String url)
Deprecated.
Sets the url of this
ReferenceEntity . |
void |
setUserName(String username)
Deprecated.
Sets the username of this person.
|
boolean |
update()
Deprecated.
Updates the database with the changes made on this
IOObject . |
createAuthToken, deleteAuthToken, getACLManager, getAuthToken, getAuthTokenExpireDate, getAuthTokenNames, getDefaultSection, getDefaultSection, getFailedLoginAttempts, getGroups, getIOUser, getLastFailedLoginAttempt, getLastLogin, getLastPasswordChange, getNonInheritSections, getNonInheritSections, getObjectLoader, getPersonManager, getProtectionDomains, getPublications, getRoles, getRoles, getSections, getSections, getSections, getSections, getStatus, getStatusChange, getTransactionObjectImpl, hasRole, isAuthTokenValid, refresh, setGroups, setIOUser
checkLoaded, getAddress, getArticleRelations, getArticleRelations, getArticles, getArticles, getArticlesByRoleKeeper, getChecksum, getCreationDate, getDescription, getEmailAddress, getEmailAddresses, getFirstName, getFirstPublished, getFriendlyPublicationIds, getGenericName, getIOPerson, getLastModified, getLoginRealms, getName, getOccupation, getPhoneMobile, getPhonePrivate, getPhoneWorkDirect, getPostNumber, getPostPlace, getProfiles, getProfileType, getProtectionDomain, getPublishDate, getReferenceState, getReferenceType, getSourceId, getSourceName, getStateChange, getSurName, getUrl, getUserGroups, getUserName, getUUID, isExternal, isPrivileged, isPublished, isUser
breakAndLock, compareTo, createTransaction, equals, getDefaultProtectionDomain, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, getValid, hashCode, isLocked, isPreview, isStillValid, isValid, lock, lock, lock, lock, objectTypeAsString, setValid, stringToObjectType, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
createAuthToken, deleteAuthToken, getAuthToken, getAuthTokenExpireDate, getAuthTokenNames, getDefaultSection, getDefaultSection, getFailedLoginAttempts, getGroups, getLastFailedLoginAttempt, getLastLogin, getLastPasswordChange, getNonInheritSections, getNonInheritSections, getProtectionDomains, getPublications, getRoles, getRoles, getSections, getSections, getSections, getSections, getStatus, getStatusChange, hasRole, isAuthTokenValid, refresh
getAddress, getArticlesByRoleKeeper, getDescription, getEmailAddress, getEmailAddresses, getFirstName, getFriendlyPublicationIds, getLoginRealms, getName, getOccupation, getPhoneMobile, getPhonePrivate, getPhoneWorkDirect, getPostNumber, getPostPlace, getProfiles, getSurName, getUserName, isExternal, isPrivileged, isUser
getProtectionDomain, getUserGroups
getArticleRelations, getArticleRelations, getArticles, getArticles, getCreationDate, getFirstPublished, getGenericName, getLastModified, getPublishDate, getReferenceState, getReferenceType, getSourceId, getSourceName, getStateChange, getUrl, isPublished
breakAndLock, createTransaction, getChecksum, getHashKey, getId, getLockKeeper, getObjectType, getOwnerPublicationId, isLocked, isPreview, isValid, lock, lock, lock, lock
public UserTransactionImpl(UserImpl pUser)
public IOObject getObject()
IOTransaction
getObject
in interface IOTransaction
public boolean update() throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
IOTransaction
IOObject
.update
in interface IOTransaction
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existIllegalOperationException
- if the state of the object did not pass validation checkspublic boolean create() throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
IOTransaction
create
in interface IOTransaction
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existIllegalOperationException
- if the state of the object did not pass validation checkspublic boolean delete() throws PersistentStoreException, NoSuchObjectException, IllegalOperationException
IOTransaction
IOObject
from the persistence layer.delete
in interface IOTransaction
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existIllegalOperationException
- if the state of the object did not pass validation checkspublic boolean release() throws IllegalArgumentException, 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 actionIllegalArgumentException
public void setStatus(Type pStatus)
UserTransaction
setStatus
in interface UserTransaction
setStatus
in class UserImpl
pStatus
- Set the staus of the user. The category should
be Type.UserStatuspublic 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 idpublic void setUserName(String username) throws PersistentStoreException, NoSuchObjectException
PersonTransaction
setUserName
in interface PersonTransaction
setUserName
in class PersonImpl
username
- the username of this personPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setFirstName(String fName) throws PersistentStoreException, NoSuchObjectException
PersonTransaction
setFirstName
in interface PersonTransaction
setFirstName
in class PersonImpl
fName
- the first name of this personPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setSurName(String surName) throws PersistentStoreException, NoSuchObjectException
PersonTransaction
setSurName
in interface PersonTransaction
setSurName
in class PersonImpl
surName
- the surname of this personPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setOccupation(String occup) throws PersistentStoreException, NoSuchObjectException
PersonTransaction
setOccupation
in interface PersonTransaction
setOccupation
in class PersonImpl
occup
- the occupation of this personPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setAddress(String adr) throws PersistentStoreException, NoSuchObjectException
PersonTransaction
setAddress
in interface PersonTransaction
setAddress
in class PersonImpl
adr
- the address where this person livesPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setPostNumber(String pNr) throws PersistentStoreException, NoSuchObjectException
PersonTransaction
setPostNumber
in interface PersonTransaction
setPostNumber
in class PersonImpl
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 existpublic void setPostPlace(String postPl) throws PersistentStoreException, NoSuchObjectException
PersonTransaction
setPostPlace
in interface PersonTransaction
setPostPlace
in class PersonImpl
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 existpublic void setPhoneWorkDirect(String tlfWork) throws PersistentStoreException, NoSuchObjectException
PersonTransaction
Person
works.setPhoneWorkDirect
in interface PersonTransaction
setPhoneWorkDirect
in class PersonImpl
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 existpublic void setPhonePrivate(String tlfPriv) throws PersistentStoreException, NoSuchObjectException
PersonTransaction
Person
lives.setPhonePrivate
in interface PersonTransaction
setPhonePrivate
in class PersonImpl
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 existpublic void setPhoneMobile(String tlfMob) throws PersistentStoreException, NoSuchObjectException
PersonTransaction
Person's
mobilePhone.setPhoneMobile
in interface PersonTransaction
setPhoneMobile
in class PersonImpl
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 existpublic void setEmailAddress(String pEmailAddress) throws PersistentStoreException, NoSuchObjectException
PersonTransaction
Person
.setEmailAddress
in interface PersonTransaction
setEmailAddress
in class PersonImpl
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 existpublic void setDescription(String descrId) throws PersistentStoreException, NoSuchObjectException
PersonTransaction
Person
.setDescription
in interface PersonTransaction
setDescription
in class PersonImpl
descrId
- the description this Person
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setPassword(String password) throws PersistentStoreException, NoSuchObjectException
PersonTransaction
setPassword
in interface PersonTransaction
setPassword
in class PersonImpl
password
- the new password for this personPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setPrivileged(boolean pPrivileged)
PersonTransaction
setPrivileged
in interface PersonTransaction
setPrivileged
in class PersonImpl
pPrivileged
- set to false if this user should not be
able to log into an Escenic publication. Default is true.public void setLoginRealms(com.escenic.auth.Realm... pRealms)
PersonTransaction
setLoginRealms
in interface PersonTransaction
setLoginRealms
in class PersonImpl
public IORelation addProfile(Article pArticle)
PersonTransaction
addProfile
in interface PersonTransaction
addProfile
in class PersonImpl
pArticle
- the article to create a relation toopublic void removeProfile(Article pArticle)
PersonTransaction
removeProfile
in interface PersonTransaction
removeProfile
in class PersonImpl
pArticle
- the article to removepublic void removeProfiles()
PersonTransaction
removeProfiles
in interface PersonTransaction
removeProfiles
in class PersonImpl
public void setGenericName(String name)
ReferenceEntityTransaction
ReferenceEntity
.setGenericName
in interface ReferenceEntityTransaction
setGenericName
in class PersonImpl
name
- the generic name of this ReferenceEntity
public void setUrl(String url) throws PersistentStoreException, NoSuchObjectException
ReferenceEntityTransaction
ReferenceEntity
.setUrl
in interface ReferenceEntityTransaction
setUrl
in class PersonImpl
url
- the url of this ReferenceEntity
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setStateChange(Timestamp time)
ReferenceEntityTransaction
setStateChange
in interface ReferenceEntityTransaction
setStateChange
in class PersonImpl
time
- the time of the last state changedTimestamp
public void setType(Type type)
ReferenceEntityTransaction
ReferenceEntity
.setType
in interface ReferenceEntityTransaction
setType
in class PersonImpl
type
- the type of ReferenceEntity
Type
public void setSourceName(String source) throws PersistentStoreException, NoSuchObjectException
ReferenceEntityTransaction
ReferenceEntity
.setSourceName
in interface ReferenceEntityTransaction
setSourceName
in class PersonImpl
source
- the source name of this ReferenceEntity
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setSourceId(String sourceId) throws PersistentStoreException, NoSuchObjectException
ReferenceEntityTransaction
ReferenceEntity
.setSourceId
in interface ReferenceEntityTransaction
setSourceId
in class PersonImpl
sourceId
- the source id of this ReferenceEntity
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setReferenceState(Type state) throws PersistentStoreException, NoSuchObjectException
ReferenceEntityTransaction
ReferenceEntity
.setReferenceState
in interface ReferenceEntityTransaction
setReferenceState
in class PersonImpl
state
- the state of this ReferenceEntity
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setPublishDate(Timestamp time) throws PersistentStoreException, NoSuchObjectException
ReferenceEntityTransaction
ReferenceEntity
was published.setPublishDate
in interface ReferenceEntityTransaction
setPublishDate
in class PersonImpl
time
- the time when this ReferenceEntity
was publishedPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setLastModified(Timestamp time) throws PersistentStoreException, NoSuchObjectException
ReferenceEntityTransaction
ReferenceEntity
was last changed.setLastModified
in interface ReferenceEntityTransaction
setLastModified
in class PersonImpl
time
- the time when this ReferenceEntity
was last changedPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setCreationDate(Timestamp time) throws PersistentStoreException, NoSuchObjectException
ReferenceEntityTransaction
ReferenceEntity
was created.setCreationDate
in interface ReferenceEntityTransaction
setCreationDate
in class PersonImpl
time
- the time when this ReferenceEntity
was createdPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic void setFirstPublished(Timestamp time) throws PersistentStoreException, NoSuchObjectException
ReferenceEntityTransaction
ReferenceEntity
was first published.setFirstPublished
in interface ReferenceEntityTransaction
setFirstPublished
in class PersonImpl
time
- the time when this ReferenceEntity
was first publishedPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not exist© 1998- 2018 Stibo DX