org.kuali.rice.ksb.api.registry
Class RemoveAndPublishResult

java.lang.Object
  extended by org.kuali.rice.core.api.mo.AbstractDataTransferObject
      extended by org.kuali.rice.ksb.api.registry.RemoveAndPublishResult
All Implemented Interfaces:
Serializable, ModelObjectBasic, ModelObjectComplete

public class RemoveAndPublishResult
extends AbstractDataTransferObject

Wraps information resulting from a "removeAndPublish" operation on the registry. Effectively contains a list of ServiceEndpoint instances for services that were published and those that were removed

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Method Summary
static RemoveAndPublishResult create(List<ServiceEndpoint> servicesRemoved, List<ServiceEndpoint> servicesPublished)
          Creates a new RemoveAndPublishResult from the given lists of services removed and published.
 List<ServiceEndpoint> getServicesPublished()
          Returns an unmodifiable list of services that were published as the result of a remove-and-publish operation.
 List<ServiceEndpoint> getServicesRemoved()
          Returns an unmodifiable list of services that were removed as the result of a remove-and-publish operation.
 
Methods inherited from class org.kuali.rice.core.api.mo.AbstractDataTransferObject
afterUnmarshal, beforeUnmarshal, equals, equalsExcludeFields, getDefaultHashCodeEqualsExcludeFields, hashCode, hashCodeExcludeFields, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static RemoveAndPublishResult create(List<ServiceEndpoint> servicesRemoved,
                                            List<ServiceEndpoint> servicesPublished)
Creates a new RemoveAndPublishResult from the given lists of services removed and published.

Parameters:
servicesRemoved - the list of services removed by the operation, can be a null or empty list
servicesPublished - the list of services published by the operation, can be a null or empty list
Returns:
the constructed RemoveAndPublishResult, should never return null

getServicesRemoved

public List<ServiceEndpoint> getServicesRemoved()
Returns an unmodifiable list of services that were removed as the result of a remove-and-publish operation.

Returns:
an unmodifiable list of removed services, will never be null but may be empty if no services were removed

getServicesPublished

public List<ServiceEndpoint> getServicesPublished()
Returns an unmodifiable list of services that were published as the result of a remove-and-publish operation.

Returns:
an unmodifiable list of published services, will never be null but may be empty if no services were published


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.