public class DefaultSystemAppService extends AbstractAppService implements SystemAppService
| Constructor and Description |
|---|
DefaultSystemAppService() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAppBaseName()
Returns the current App name
|
java.lang.String |
getBaseRelPath(java.lang.String nodeType) |
java.lang.String |
getDefaultRelPath(Node entity)
Computes the App specific relative path for a known type based on properties
of the passed node
|
java.lang.String |
getDefaultRelPath(Session session,
java.lang.String nodetype,
java.lang.String id)
Computes the App specific relative path for this known node type based on the
passed id
|
java.lang.String |
getMainNodeType(Node node)
Returns the App specific main type of a node, that can be its primary type or
one of its mixin, typically for the People App.
|
boolean |
isKnownType(Node entity)
Simply checks if the passed entity has a primary or mixin type that is known
and thus can be managed by the this App
|
boolean |
isKnownType(java.lang.String nodeType)
Simply checks if the passed type is known and thus can be managed by the this
App.
|
Node |
publishEntity(Node parent,
java.lang.String nodeType,
Node srcNode,
boolean removeSrcNode) |
Node |
saveEntity(Node entity,
boolean publish)
Insures the correct service is called on save
|
void |
setKnownAppServices(java.util.List<AppService> knownAppServices) |
createDraftEntity, getDisplayName, getDraftParent, getEntityByUidclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDraftEntity, getDisplayName, getDraftParent, getEntityByUid, getLabel, publishEntitypublic Node publishEntity(Node parent, java.lang.String nodeType, Node srcNode, boolean removeSrcNode) throws RepositoryException
publishEntity in interface AppServicepublishEntity in class AbstractAppServiceRepositoryExceptionpublic java.lang.String getAppBaseName()
AppServicegetAppBaseName in interface AppServicepublic java.lang.String getBaseRelPath(java.lang.String nodeType)
getBaseRelPath in interface AppServicepublic java.lang.String getDefaultRelPath(Node entity) throws RepositoryException
AppServicegetDefaultRelPath in interface AppServiceRepositoryExceptionpublic java.lang.String getMainNodeType(Node node)
AppServicegetMainNodeType in interface AppServicepublic java.lang.String getDefaultRelPath(Session session, java.lang.String nodetype, java.lang.String id)
AppServicegetDefaultRelPath in interface AppServicesession - TODOpublic Node saveEntity(Node entity, boolean publish)
saveEntity in interface AppServicesaveEntity in class AbstractAppServicepublish - also publishes the corresponding nodepublic boolean isKnownType(Node entity)
AppServiceisKnownType in interface AppServicepublic boolean isKnownType(java.lang.String nodeType)
AppServiceisKnownType in interface AppServicepublic void setKnownAppServices(java.util.List<AppService> knownAppServices)
Copyright © 2007–2020. All rights reserved.