public class IOProfileUpdater extends Object implements ProfileUpdater
Modifier and Type | Field and Description |
---|---|
protected org.apache.log4j.Logger |
mLogger
Deprecated.
|
Constructor and Description |
---|
IOProfileUpdater()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
createProfile(ProfileTransaction profileTransaction)
Deprecated.
Create a new profile.
|
boolean |
deleteProfile(ProfileTransaction profileTransaction)
Deprecated.
Delete a profile and all associated objects.
|
ProfileTransaction |
newProfile()
Deprecated.
The method creates a new profile and returns a
ProfileTransaction
Note: the ProfileTransaction is NOT locked as the newly created
Profile doesn't have an id |
boolean |
updateProfile(ProfileTransaction profileTransaction)
Deprecated.
This will update all modified profile articles and the
profile owner.
|
public boolean updateProfile(ProfileTransaction profileTransaction) throws PersistentStoreException, IllegalOperationException
ProfileUpdater
updateProfile
in interface ProfileUpdater
profileTransaction
- The profile to updatePersistentStoreException
- if something went wrong when committing changes to database or LDAP.IllegalOperationException
- if the update can not be performed.public ProfileTransaction newProfile()
ProfileTransaction
Note: the ProfileTransaction
is NOT locked as the newly created
Profile
doesn't have an idnewProfile
in interface ProfileUpdater
ProfileTransaction
public boolean createProfile(ProfileTransaction profileTransaction) throws PersistentStoreException, IllegalOperationException
ProfileUpdater
createProfile
in interface ProfileUpdater
profileTransaction
- Create a new profile with information from transaction.PersistentStoreException
- if something went wrong when committing changes to database or LDAP.IllegalOperationException
- if the update can not be performed.public boolean deleteProfile(ProfileTransaction profileTransaction) throws PersistentStoreException, IllegalOperationException
ProfileUpdater
deleteProfile
in interface ProfileUpdater
profileTransaction
- The profile to delete.PersistentStoreException
IllegalOperationException
© 1998- 2018 Stibo DX