public interface EntityContract
| Modifier and Type | Method and Description |
|---|---|
String |
action(EntityActionOperation action)
Perform an action on an entity.
|
<T> T |
action(EntityTypeActionOperation<T> entityActionOperation)
Action.
|
<T> T |
create(EntityCreateOperation<T> creator)
Create a new instance of an entity.
|
String |
delete(EntityDeleteOperation deleter)
Delete an entity.
|
<T> T |
get(EntityGetOperation<T> getter)
Retrieve an existing entity by id.
|
<T> ListResult<T> |
list(EntityListOperation<T> lister)
Retrieve a list of entities.
|
String |
update(EntityUpdateOperation updater)
Update an existing entity.
|
<T> T create(EntityCreateOperation<T> creator) throws ServiceException
T - the generic typecreator - Object providing the details of the entity to be createdServiceException - the service exception The created entity<T> T get(EntityGetOperation<T> getter) throws ServiceException
T - the generic typegetter - object providing the details of the entity to be retrievedServiceException - the service exception<T> ListResult<T> list(EntityListOperation<T> lister) throws ServiceException
T - the generic typelister - object providing details of entities to listServiceException - the service exceptionString update(EntityUpdateOperation updater) throws ServiceException
updater - Object providing details of the updateServiceException - the service exceptionString delete(EntityDeleteOperation deleter) throws ServiceException
deleter - Object providing details of the deleteServiceException - the service exceptionString action(EntityActionOperation action) throws ServiceException
action - Object providing details of the actionServiceException - the service exception<T> T action(EntityTypeActionOperation<T> entityActionOperation) throws ServiceException
T - the generic typeentityActionOperation - the entity action operationServiceException - the service exception/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/