primaryCollectionChange
public void primaryCollectionChange(Asset asset,
Collection newPrimaryCollection)
throws UserException,
ApplicationException
Sets newPrimaryCollection as primary collection. Sets old primary collection as secondary collection. Checks edit
right and state on entity, delete right on collection.
- Parameters:
entity- mandatorynewPrimaryCollection- mandatory- Throws:
UserException- Only informal, no need to rollback transaction.ApplicationException- Transaction needs to be rolled back because entities might be in inconsistent state.