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, getEntityByUid
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDraftEntity, getDisplayName, getDraftParent, getEntityByUid, getLabel, publishEntity
public Node publishEntity(Node parent, java.lang.String nodeType, Node srcNode, boolean removeSrcNode) throws RepositoryException
publishEntity
in interface AppService
publishEntity
in class AbstractAppService
RepositoryException
public java.lang.String getAppBaseName()
AppService
getAppBaseName
in interface AppService
public java.lang.String getBaseRelPath(java.lang.String nodeType)
getBaseRelPath
in interface AppService
public java.lang.String getDefaultRelPath(Node entity) throws RepositoryException
AppService
getDefaultRelPath
in interface AppService
RepositoryException
public java.lang.String getMainNodeType(Node node)
AppService
getMainNodeType
in interface AppService
public java.lang.String getDefaultRelPath(Session session, java.lang.String nodetype, java.lang.String id)
AppService
getDefaultRelPath
in interface AppService
session
- TODOpublic Node saveEntity(Node entity, boolean publish)
saveEntity
in interface AppService
saveEntity
in class AbstractAppService
publish
- also publishes the corresponding nodepublic boolean isKnownType(Node entity)
AppService
isKnownType
in interface AppService
public boolean isKnownType(java.lang.String nodeType)
AppService
isKnownType
in interface AppService
public void setKnownAppServices(java.util.List<AppService> knownAppServices)
Copyright © 2007–2020. All rights reserved.