public class LinksServiceImpl extends Object implements LinksService
Modifier and Type | Field and Description |
---|---|
protected static String |
CANNED_QUERY_GET_CHILDREN |
static String |
LINKS_COMPONENT |
Constructor and Description |
---|
LinksServiceImpl() |
Modifier and Type | Method and Description |
---|---|
LinkInfo |
createLink(String siteShortName,
String title,
String description,
String url,
boolean internal)
Creates a new
LinkInfo in the given site, with the
specified settings |
void |
deleteLink(LinkInfo link)
Deletes an existing
LinkInfo from the repository |
org.alfresco.query.PagingResults<LinkInfo> |
findLinks(String siteShortName,
String user,
Date from,
Date to,
String tag,
org.alfresco.query.PagingRequest paging)
Finds all
LinkInfo instances indexed in the repository
for the given site, created by the specified user in the specified
date range, with the given tag |
LinkInfo |
getLink(String siteShortName,
String linkName)
Retrieves an existing
LinkInfo from the repository |
protected org.alfresco.service.cmr.repository.NodeRef |
getSiteLinksContainer(String siteShortName,
boolean create)
Fetches the Links Container on a site, creating as required if requested.
|
org.alfresco.query.PagingResults<LinkInfo> |
listLinks(String siteShortName,
Date from,
Date to,
org.alfresco.query.PagingRequest paging)
Retrieves all
LinkInfo instances in the repository
for the given site, created in the specified date range |
org.alfresco.query.PagingResults<LinkInfo> |
listLinks(String siteShortName,
org.alfresco.query.PagingRequest paging)
Retrieves all
LinkInfo instances in the repository
for the given site. |
org.alfresco.query.PagingResults<LinkInfo> |
listLinks(String siteShortName,
String user,
org.alfresco.query.PagingRequest paging)
Retrieves all
LinkInfo instances in the repository
for the given site and the specified user. |
void |
setCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry<org.alfresco.query.CannedQueryFactory<? extends Object>> cannedQueryRegistry)
Set the registry of
canned queries |
void |
setContentService(ContentService contentService) |
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService) |
void |
setNodeDAO(NodeDAO nodeDAO) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
setSearchService(org.alfresco.service.cmr.search.SearchService searchService) |
void |
setSiteService(SiteService siteService) |
void |
setTaggingService(TaggingService taggingService) |
void |
setTransactionService(TransactionService transactionService) |
LinkInfo |
updateLink(LinkInfo link)
Updates an existing
LinkInfo in the repository. |
public static final String LINKS_COMPONENT
protected static final String CANNED_QUERY_GET_CHILDREN
public void setNodeDAO(NodeDAO nodeDAO)
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
public void setSiteService(SiteService siteService)
public void setSearchService(org.alfresco.service.cmr.search.SearchService searchService)
public void setContentService(ContentService contentService)
public void setTaggingService(TaggingService taggingService)
public void setNamespaceService(org.alfresco.service.namespace.NamespaceService namespaceService)
public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
public void setTransactionService(TransactionService transactionService)
public void setCannedQueryRegistry(org.alfresco.util.registry.NamedObjectRegistry<org.alfresco.query.CannedQueryFactory<? extends Object>> cannedQueryRegistry)
canned queries
protected org.alfresco.service.cmr.repository.NodeRef getSiteLinksContainer(String siteShortName, boolean create)
public LinkInfo getLink(String siteShortName, String linkName)
LinksService
LinkInfo
from the repositorygetLink
in interface LinksService
public LinkInfo createLink(String siteShortName, String title, String description, String url, boolean internal)
LinksService
LinkInfo
in the given site, with the
specified settingscreateLink
in interface LinksService
LinkInfo
public LinkInfo updateLink(LinkInfo link)
LinksService
LinkInfo
in the repository.updateLink
in interface LinksService
LinkInfo
public void deleteLink(LinkInfo link)
LinksService
LinkInfo
from the repositorydeleteLink
in interface LinksService
public org.alfresco.query.PagingResults<LinkInfo> listLinks(String siteShortName, org.alfresco.query.PagingRequest paging)
LinksService
LinkInfo
instances in the repository
for the given site.listLinks
in interface LinksService
public org.alfresco.query.PagingResults<LinkInfo> listLinks(String siteShortName, String user, org.alfresco.query.PagingRequest paging)
LinksService
LinkInfo
instances in the repository
for the given site and the specified user.listLinks
in interface LinksService
public org.alfresco.query.PagingResults<LinkInfo> listLinks(String siteShortName, Date from, Date to, org.alfresco.query.PagingRequest paging)
LinksService
LinkInfo
instances in the repository
for the given site, created in the specified date rangelistLinks
in interface LinksService
public org.alfresco.query.PagingResults<LinkInfo> findLinks(String siteShortName, String user, Date from, Date to, String tag, org.alfresco.query.PagingRequest paging)
LinksService
LinkInfo
instances indexed in the repository
for the given site, created by the specified user in the specified
date range, with the given tagfindLinks
in interface LinksService
Copyright © 2005–2017 Alfresco Software. All rights reserved.