/** * @return * the {@link StorageObject}s that have had their ACLs updated since the last progress event was fired. * @throws IllegalStateException * updated objects are only available from EVENT_IN_PROGRESS events. */ public StorageObject[] getObjectsWithUpdatedACL() throws IllegalStateException { if (getEventCode() != EVENT_IN_PROGRESS) { throw new IllegalStateException("Completed Objects are only available from EVENT_IN_PROGRESS events"); } return objects; }
/** * @return * the {@link StorageObject}s that have had their ACLs updated since the last progress event was fired. * @throws IllegalStateException * updated objects are only available from EVENT_IN_PROGRESS events. */ public StorageObject[] getObjectsWithUpdatedACL() throws IllegalStateException { if (getEventCode() != EVENT_IN_PROGRESS) { throw new IllegalStateException("Completed Objects are only available from EVENT_IN_PROGRESS events"); } return objects; }
/** * @return * the {@link StorageObject}s that did not have ACLs updated before the operation was cancelled. * @throws IllegalStateException * cancelled objects are only available from EVENT_CANCELLED events. */ public StorageObject[] getCancelledObjects() throws IllegalStateException { if (getEventCode() != EVENT_CANCELLED) { throw new IllegalStateException("Cancelled Objects are only available from EVENT_CANCELLED events"); } return objects; }
/** * @return * the {@link StorageObject}s that did not have ACLs updated before the operation was cancelled. * @throws IllegalStateException * cancelled objects are only available from EVENT_CANCELLED events. */ public StorageObject[] getCancelledObjects() throws IllegalStateException { if (getEventCode() != EVENT_CANCELLED) { throw new IllegalStateException("Cancelled Objects are only available from EVENT_CANCELLED events"); } return objects; }
@Override public void event(UpdateACLEvent event) { super.event(event); if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { objectList.addAll(Arrays.asList(event.getObjectsWithUpdatedACL())); } }; };
@Override public void event(UpdateACLEvent event) { super.event(event); if (ServiceEvent.EVENT_IN_PROGRESS == event.getEventCode()) { objectList.addAll(Arrays.asList(event.getObjectsWithUpdatedACL())); } }; };