public class ServiceKey extends Object
Modifier and Type | Field and Description |
---|---|
static ServiceKey |
ASSOCIATION_ATTACH
Built-in service to perform an association attachment.
|
static ServiceKey |
ASSOCIATION_DETACH
Built-in service to perform an association detachment.
|
static ServiceKey |
ASSOCIATION_MOVE
Built-in service to perform an association move.
|
static ServiceKey |
CLOSE
Built-in service to close a dataspace or snapshot.
|
static ServiceKey |
COMPARE
Built-in service to compare data:
The user is directed to the comparison interface.
|
static ServiceKey |
CREATE
Built-in service to create a table record:
the user is directed to a page in order to a new record in the selected table.
|
static ServiceKey |
DEFAULT_SERVICE
Built-in service to access a table record or a dataset.
|
static ServiceKey |
DUPLICATE
Built-in service to duplicate a table record.
|
static ServiceKey |
EXPORT_TO_CSV
Built-in service to export data from EBX® to CSV format.
|
static ServiceKey |
EXPORT_TO_XML
Built-in service to export data from EBX® to XML format.
|
static ServiceKey |
HIERARCHY_EDIT_LINK_RECORD
Built-in service to edit the record that links two hierarchy nodes.
|
static ServiceKey |
HIERARCHY_MASS_MOVE
Built-in service to perform a mass move of nodes in a hierarchical view.
|
static ServiceKey |
IMPORT_FROM_CSV
Built-in service to import data from a CSV file into EBX®.
|
static ServiceKey |
IMPORT_FROM_XML
Built-in service to import data from an XML file into EBX®.
|
static ServiceKey |
INHERIT
Built-in service makes a record inherit from the parent dataset.
|
static ServiceKey |
MASS_UPDATE
Built-in service to perform a mass update of records.
|
static ServiceKey |
MASSDELETE
Built-in service to perform a mass delete of records.
|
static ServiceKey |
MERGE
Built-in service to merge a dataspace into its parent:
the user is directed to the merge user interface in order to merge
the selected dataspace into its parent dataspace.
|
static ServiceKey |
MERGE_VIEW
Built-in service to display the merge view:
the user is directed to the merge user interface in order to detect differences and conflicts without
performing the merge of the selected dataspace into its parent.
|
static ServiceKey |
MY_PROFILE
Built-in service to access current user's profile settings.
|
static ServiceKey |
OPEN_LINK_RECORD
Built-in service to edit the record that links an associated object to its parent record.
|
static ServiceKey |
OPTIMIZE
Built-in service to optimize and refactor data in EBX®.
|
static ServiceKey |
OVERWRITE
Built-in service makes a record overwrite from inheritance of the parent dataset.
|
static ServiceKey |
REFRESH_REPLICAS
Built-in service to refresh replicas for replicated tables.
|
static ServiceKey |
SELECT_DATASPACE
Built-in service to select a dataspace:
the user is directed to a page in order to work with the selected dataspace.
|
static ServiceKey |
VALIDATION
Built-in service to validate a dataspace, snapshot, dataset, table or record:
the user is directed to the validation report of the selected entity.
|
static ServiceKey |
VIEW_HISTORY
Built-in service to view table or row history.
|
static ServiceKey |
WORKFLOW
Built-in service to access the data workflows user interface.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object anObject) |
String |
format()
Returns a persistent identifier for this service key.
|
static ServiceKey |
forModuleServiceName(String moduleName,
String serviceName)
Returns the identifier of a service defined in a module
(user service on branches or versions, for more information see
the class comment).
|
static ServiceKey |
forName(String serviceName)
Returns the identifier of a service defined in a data model
(user service on datasets or records, for more information see
the class comment).
|
String |
getModuleName() |
String |
getName()
Returns the full name of the service.
|
String |
getServiceName()
Returns the local name of the service, by removing the
prefix before and including the '@' character.
|
int |
hashCode() |
boolean |
isBuiltInService()
Returns
true if this instance identifies a built-in service. |
boolean |
isIdentifierInDataModel()
Returns
true if this key identifies a service
declared in a data model. |
static ServiceKey |
parse(String aString)
Returns the service key that corresponds to the specified string.
|
String |
toString() |
public static final ServiceKey DEFAULT_SERVICE
A dataspace or snapshot identifier is required for this service.
Value is: @default
.
public static final ServiceKey CLOSE
A dataspace or snapshot identifier is required for this service.
Value is: @close
.
Note: This service cannot be called directly
from UIHttpManagerComponent
.
This constant is only used to grant permission to
to close a dataspace or a snapshot.
See Profile.forUserWithSpecificPrivilege(String, ServiceKey)
.
public static final ServiceKey CREATE
A table must be selected for this service to be operational.
Value is: @creation
.
Note: this constant is also used to grant
the privilege to create a dataspace or a snapshot
(see Profile.forUserWithSpecificPrivilege(String, ServiceKey)
).
UIHttpManagerComponent.selectNode(com.onwbp.adaptation.Adaptation, com.orchestranetworks.schema.Path)
public static final ServiceKey DUPLICATE
A record must be selected for this service to be operational.
Value is: @duplicate
.
public static final ServiceKey VALIDATION
The target must be selected for this service to be operational.
Value is: @validation
.
public static final ServiceKey MERGE
A dataspace must be selected for this service to be operational; this selection specifies the dataspace to merge.
Value is: @merge
.
public static final ServiceKey MERGE_VIEW
A dataspace must be selected for this service to be operational; this selection specifies the dataspace to merge.
Value is: "@merge.view".
public static final ServiceKey COMPARE
To use this service, the method UIHttpManagerComponent.compareSelectionWithEntity(com.orchestranetworks.instance.HomeKey, com.onwbp.adaptation.AdaptationName, String)
must be called. If the service is called using a method other than Java,
the left entity is selected using the standard parameters
(branch
, version
, instance
, xpath
);
the right entity is to be selected using the parameters:
compare.branch
, compare.version
,
compare.instance
, compare.xpath
(these parameters have the same syntax as the standard parameters).
Value is: @compare
.
DifferenceHelper
public static final ServiceKey EXPORT_TO_XML
A table must be selected for this service to be operational.
Value is: @exportToXML
.
public static final ServiceKey EXPORT_TO_CSV
A table must be selected for this service to be operational.
Value is: @exportToCSV
.
public static final ServiceKey IMPORT_FROM_XML
A table must be selected for this service to be operational.
Value is: @importFromXML
.
public static final ServiceKey IMPORT_FROM_CSV
A table must be selected for this service to be operational.
Value is: @importFromCSV
.
public static final ServiceKey OPTIMIZE
Value is: @optimize
.
Note: This service cannot be called directly
from UIHttpManagerComponent
.
public static final ServiceKey MASSDELETE
Note: This service cannot be called directly
from UIHttpManagerComponent
.
public static final ServiceKey WORKFLOW
startWorkItem
has been set to true
.
The target section can be specified using the parameter workflowView
.
Value is: @workflow
.
public static final ServiceKey SELECT_DATASPACE
Value is: @selectDataSpace
.
public static final ServiceKey HIERARCHY_MASS_MOVE
Note: This service cannot be called directly from UIHttpManagerComponent
.
public static final ServiceKey HIERARCHY_EDIT_LINK_RECORD
Note: This service cannot be called directly from UIHttpManagerComponent
.
public static final ServiceKey OPEN_LINK_RECORD
Note: This service cannot be called directly from UIHttpManagerComponent
.
public static final ServiceKey INHERIT
Note: This service cannot be called directly from UIHttpManagerComponent
.
public static final ServiceKey OVERWRITE
Note: This service cannot be called directly from UIHttpManagerComponent
.
public static final ServiceKey MASS_UPDATE
Note: This service cannot be called directly from UIHttpManagerComponent
.
public static final ServiceKey ASSOCIATION_ATTACH
Note: This service cannot be called directly from UIHttpManagerComponent
.
public static final ServiceKey ASSOCIATION_DETACH
Note: This service cannot be called directly from UIHttpManagerComponent
.
public static final ServiceKey ASSOCIATION_MOVE
Note: This service cannot be called directly from UIHttpManagerComponent
.
public static final ServiceKey REFRESH_REPLICAS
Note: This service cannot be called directly from UIHttpManagerComponent
.
public static final ServiceKey VIEW_HISTORY
Note: This service cannot be called directly from UIHttpManagerComponent
.
public static final ServiceKey MY_PROFILE
Dataspace should always be set to Reference
.
Note: This built-in service is currently for internal use only but may be available in the future releases.
public static ServiceKey forName(String serviceName)
serviceName
- name of the service in the data model (as defined by the
attribute /xs:schema/xs:complexType/@name
)isIdentifierInDataModel()
public static ServiceKey forModuleServiceName(String moduleName, String serviceName)
moduleName
- name of the module (as defined by the element /module/name
in the document located at /WEB-INF/ebx/module.xml
).serviceName
- name of the service in the module (as defined by the
attribute /module/services/service/@name
in the document /WEB-INF/ebx/module.xml
).public static ServiceKey parse(String aString)
The specified string is generally generated by the method format()
.
IllegalArgumentException
- if specified string is incorrect.public boolean isBuiltInService()
true
if this instance identifies a built-in service.public boolean isIdentifierInDataModel()
true
if this key identifies a service
declared in a data model.forName(String)
public String getModuleName()
public String getServiceName()
public String getName()
public String format()
The service key can be re-obtained by parsing this persistent identifier using the method parse(String)
.