@API(type=INTERNAL, src=PUBLIC) public class InsertExternalLinkOperation extends java.lang.Object implements AuthorOperation
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
logger
Logger for logging.
|
NAMESPACE_ARGUMENT, NAMESPACE_ARGUMENT_DESCRIPTOR, SCHEMA_AWARE_ARGUMENT, SCHEMA_AWARE_ARGUMENT_DESCRIPTOR
Constructor and Description |
---|
InsertExternalLinkOperation() |
Modifier and Type | Method and Description |
---|---|
void |
doOperation(AuthorAccess authorAccess,
ArgumentsMap args)
Perform the actual operation.
|
ArgumentDescriptor[] |
getArguments() |
java.lang.String |
getDescription() |
void |
insertExternalLink(java.lang.String url,
AuthorAccess authorAccess,
boolean schemaAware)
Insert a web link.
|
public void doOperation(AuthorAccess authorAccess, ArgumentsMap args) throws java.lang.IllegalArgumentException, AuthorOperationException
AuthorOperation
Workspace.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.java.lang.IllegalArgumentException
- Thrown when one or more arguments are illegal.AuthorOperationException
- Thrown when the operation fails.AuthorOperation.doOperation(ro.sync.ecss.extensions.api.AuthorAccess, ro.sync.ecss.extensions.api.ArgumentsMap)
public java.lang.String getDescription()
getDescription
in interface Extension
Extension.getDescription()
public ArgumentDescriptor[] getArguments()
getArguments
in interface AuthorOperation
ArgumentDescriptor
representing
the arguments this operation uses.AuthorOperation.getArguments()
public void insertExternalLink(java.lang.String url, AuthorAccess authorAccess, boolean schemaAware) throws AuthorOperationException
url
- The URL to insert as external link.authorAccess
- The author access.schemaAware
- The schema aware.AuthorOperationException
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.