Package org.nuxeo.template.service
Class TemplateMappingRemover
- java.lang.Object
-
- org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
-
- org.nuxeo.template.service.TemplateMappingRemover
-
public class TemplateMappingRemover extends UnrestrictedSessionRunner
-
-
Field Summary
Fields Modifier and Type Field Description protected DocumentRef
targetRef
protected String
type2Remove
-
Fields inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
isUnrestricted, originatingUsername, repositoryName, session, sessionIsAlreadyUnrestricted
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TemplateMappingRemover(CoreSession session, String uid, String type2Remove)
protected
TemplateMappingRemover(CoreSession session, DocumentModel doc, String type2Remove)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available as an unrestricted session.-
Methods inherited from class org.nuxeo.ecm.core.api.UnrestrictedSessionRunner
checkUnrestricted, getOriginatingUsername, runUnrestricted, setOriginatingUsername
-
-
-
-
Field Detail
-
targetRef
protected DocumentRef targetRef
-
type2Remove
protected String type2Remove
-
-
Constructor Detail
-
TemplateMappingRemover
protected TemplateMappingRemover(CoreSession session, DocumentModel doc, String type2Remove)
-
TemplateMappingRemover
protected TemplateMappingRemover(CoreSession session, String uid, String type2Remove)
-
-
Method Detail
-
run
public void run()
Description copied from class:UnrestrictedSessionRunner
This method will be called byUnrestrictedSessionRunner.runUnrestricted()
withUnrestrictedSessionRunner.session
available as an unrestricted session.It can also be called directly in which case the
UnrestrictedSessionRunner.session
available will be the one passed to#UnrestrictedSessionRunner(CoreSession)
.- Specified by:
run
in classUnrestrictedSessionRunner
-
-