/** * The publication is ready to go through the release project. * * @param publication the publication * @param comment optional comment */ @LifecycleTransition(fromStatus = CvPublicationStatusType.ACCEPTED_ON_HOLD, toStatus = CvPublicationStatusType.READY_FOR_RELEASE) public void onHoldRemoved(Publication publication, String comment) { if (PublicationUtils.isOnHold(publication)) { throw new IllegalStateException("Cannot mark a publication as ready for release if it is still on-hold: "+ DebugUtil.intactObjectToString(publication, false)); } changeStatus(publication, CvPublicationStatusType.READY_FOR_RELEASE, CvLifecycleEventType.READY_FOR_RELEASE, comment); for ( LifecycleEventListener listener : getListeners() ) { listener.fireReadyForRelease( publication ); } } }
/** * The publication is ready to go through the release project. * * @param publication the publication * @param comment optional comment */ @LifecycleTransition(fromStatus = CvPublicationStatusType.ACCEPTED_ON_HOLD, toStatus = CvPublicationStatusType.READY_FOR_RELEASE) public void onHoldRemoved(Publication publication, String comment) { if (PublicationUtils.isOnHold(publication)) { throw new IllegalStateException("Cannot mark a publication as ready for release if it is still on-hold: "+ DebugUtil.intactObjectToString(publication, false)); } changeStatus(publication, CvPublicationStatusType.READY_FOR_RELEASE, CvLifecycleEventType.READY_FOR_RELEASE, comment); for ( LifecycleEventListener listener : getListeners() ) { listener.fireReadyForRelease( publication ); } } }
log.debug( "\tAbout to persist " + DebugUtil.intactObjectToString(ao, true) +" - Key: "+ getKeyForValue( annotatedObjectsToPersist, ao )); log.warn( "Object to persist should NOT have an AC: " + DebugUtil.intactObjectToString(ao, true) ); } else {
log.debug( "\tAbout to persist " + DebugUtil.intactObjectToString(ao, true) +" - Key: "+ getKeyForValue( annotatedObjectsToPersist, ao )); log.warn( "Object to persist should NOT have an AC: " + DebugUtil.intactObjectToString(ao, true) ); } else {
public void delete(IntactObject intactObject) { if (intactObject.getAc() != null) { if (log.isDebugEnabled()) log.debug("Deleting: " + DebugUtil.intactObjectToString(intactObject, false));
public void delete(IntactObject intactObject) { if (intactObject.getAc() != null) { if (log.isDebugEnabled()) log.debug("Deleting: " + DebugUtil.intactObjectToString(intactObject, false));