@API(type=INTERNAL,
src=PUBLIC)
public class TopicContentViewModeOperation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OXY_TOPIC_CONTENT_MODE
PseudoClass set on root when enabled.
|
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Constructor and Description |
---|
TopicContentViewModeOperation() |
Modifier and Type | Method and Description |
---|---|
void |
doOperation(AuthorAccess authorAccess,
ArgumentsMap args)
Perform the actual operation.
|
void |
doOperation(AuthorAccess authorAccess,
boolean enable)
Equivalent as
doOperation(AuthorAccess, ArgumentsMap)}
but with interpreted ArgumentsMap . |
ArgumentDescriptor[] |
getArguments() |
java.lang.String |
getDescription() |
protected int |
getReferencesNumber(AuthorAccess authorAccess) |
protected void |
setPseudoclass(AuthorAccess authorAccess,
boolean enable)
Configure pseudoClass on root.
|
public static final java.lang.String OXY_TOPIC_CONTENT_MODE
public java.lang.String getDescription()
Extension.getDescription()
public final void doOperation(AuthorAccess authorAccess, ArgumentsMap args) throws AuthorOperationException
AuthorOperation
ApplicationInformationAccess.getPlatform()
.
To get to the Workspace
you may use: AuthorAccess.getWorkspaceAccess()
.doOperation
in interface AuthorOperation
authorAccess
- The author access.
Provides access to specific informations and actions for
editor, document, workspace, tables, change tracking, utility a.s.o.args
- The map of arguments. All the arguments defined by method
AuthorOperation.getArguments()
must be present in the map of arguments.AuthorOperationException
- Thrown when the operation fails.AuthorOperation.doOperation(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.ArgumentsMap)
public final void doOperation(AuthorAccess authorAccess, boolean enable) throws AuthorOperationException
doOperation(AuthorAccess, ArgumentsMap)}
but with interpreted ArgumentsMap
.authorAccess
- Author access.enable
- true
to enable the mode, false
otherwise.AuthorOperationException
- If something goes wrong.protected void setPseudoclass(AuthorAccess authorAccess, boolean enable)
authorAccess
- Access to author.enable
- true
if the pseudoClass should be enabled or not.protected int getReferencesNumber(AuthorAccess authorAccess) throws AuthorOperationException
authorAccess
- Author access.AuthorOperationException
- If it fails.public ArgumentDescriptor[] getArguments()
getArguments
in interface AuthorOperation
ArgumentDescriptor
representing
the arguments this operation uses.AuthorOperation.getArguments()
© Copyright Syncro Soft SRL 2002 - 2020. All rights reserved.