@EntityResource(name="sites", title="Sites") public class SiteEntityResource extends Object implements EntityResourceAction.Read<Site>, EntityResourceAction.ReadById<Site>, EntityResourceAction.Delete, EntityResourceAction.Create<Site>, EntityResourceAction.Update<Site>, org.springframework.beans.factory.InitializingBean
Constructor and Description |
---|
SiteEntityResource() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected SiteUpdate |
convert(Site site) |
List<Site> |
create(List<Site> entity,
Parameters parameters)
Create the given site.
|
void |
delete(String siteId,
Parameters parameters)
Delete the given site.
|
CollectionWithPagingInfo<Site> |
readAll(Parameters parameters)
Returns a paged list of all sites in the current tenant.
|
Site |
readById(String siteId,
Parameters parameters)
Returns information regarding the site 'siteId'.
|
void |
setSites(Sites sites) |
Site |
update(String siteId,
Site site,
Parameters parameters)
Update the given site.
|
public void setSites(Sites sites)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
public CollectionWithPagingInfo<Site> readAll(Parameters parameters)
readAll
in interface EntityResourceAction.Read<Site>
parameters
- - will never be null and will have the PAGING default valuespublic Site readById(String siteId, Parameters parameters)
readById
in interface EntityResourceAction.ReadById<Site>
public void delete(String siteId, Parameters parameters)
delete
in interface EntityResourceAction.Delete
siteId
- String id of site.public List<Site> create(List<Site> entity, Parameters parameters)
create
in interface EntityResourceAction.Create<Site>
entity
- parameters
- public Site update(String siteId, Site site, Parameters parameters)
update
in interface EntityResourceAction.Update<Site>
siteId
- The site ID (aka short name)site
- Details to use for the updateparameters
- protected SiteUpdate convert(Site site)
Copyright © 2005–2017 Alfresco Software. All rights reserved.