public abstract class AbstractAppService extends java.lang.Object implements AppService
Constructor and Description |
---|
AbstractAppService() |
Modifier and Type | Method and Description |
---|---|
Node |
createDraftEntity(Session session,
java.lang.String mainMixin)
Convenience method to create a Node with given mixin under the current logged
in user home.
|
java.lang.String |
getDisplayName(Node entity)
Returns a display name that is app specific and that depends on one or more
of the entity properties.
|
Node |
getDraftParent(Session session)
Returns (after creation if necessary) the base parent for draft nodes of this
application
|
Node |
getEntityByUid(Session session,
java.lang.String parentPath,
java.lang.String uid)
Searches the workspace corresponding to the passed session.
|
Node |
publishEntity(Node parent,
java.lang.String nodeType,
Node srcNode,
boolean removeSrcNode) |
Node |
saveEntity(Node entity,
boolean publish)
Try to save and optionally publish a business object after applying context
specific rules and special behaviours (typically cache updates).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAppBaseName, getBaseRelPath, getDefaultRelPath, getDefaultRelPath, getLabel, getMainNodeType, isKnownType, isKnownType, publishEntity
public Node publishEntity(Node parent, java.lang.String nodeType, Node srcNode, boolean removeSrcNode) throws RepositoryException
publishEntity
in interface AppService
RepositoryException
public Node saveEntity(Node entity, boolean publish)
saveEntity
in interface AppService
entity
- publish
- also publishes the corresponding nodePeopleException
- If one of the rule defined for this type is not respected. Use
getMessage to display to the user if neededpublic java.lang.String getDisplayName(Node entity)
getDisplayName
in interface AppService
public Node getDraftParent(Session session) throws RepositoryException
getDraftParent
in interface AppService
RepositoryException
public Node createDraftEntity(Session session, java.lang.String mainMixin) throws RepositoryException
createDraftEntity
in interface AppService
RepositoryException
public Node getEntityByUid(Session session, java.lang.String parentPath, java.lang.String uid)
getEntityByUid
in interface AppService
session
- parentPath
- can be null or emptyuid
- the implementation specific UID of the searched entityCopyright © 2007–2020. All rights reserved.