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, waitgetAppBaseName, getBaseRelPath, getDefaultRelPath, getDefaultRelPath, getLabel, getMainNodeType, isKnownType, isKnownType, publishEntitypublic Node publishEntity(Node parent, java.lang.String nodeType, Node srcNode, boolean removeSrcNode) throws RepositoryException
publishEntity in interface AppServiceRepositoryExceptionpublic Node saveEntity(Node entity, boolean publish)
saveEntity in interface AppServiceentity - 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 AppServicepublic Node getDraftParent(Session session) throws RepositoryException
getDraftParent in interface AppServiceRepositoryExceptionpublic Node createDraftEntity(Session session, java.lang.String mainMixin) throws RepositoryException
createDraftEntity in interface AppServiceRepositoryExceptionpublic Node getEntityByUid(Session session, java.lang.String parentPath, java.lang.String uid)
getEntityByUid in interface AppServicesession - parentPath - can be null or emptyuid - the implementation specific UID of the searched entityCopyright © 2007–2020. All rights reserved.