public final class ServiceGroupKey extends Object
Modifier and Type | Field and Description |
---|---|
static ServiceGroupKey |
CUSTOM_SERVICES_WITHOUT_GROUP
Service group containing all non built-in services without specified group.
|
static ServiceGroupKey |
EBX_IMPORT_EXPORT
Service group containing services to export and import data.
|
static ServiceGroupKey |
EBX_SERVICES_WITHOUT_GROUP
Service group containing all built-in services without specified group.
|
static ServiceGroupKey |
EBX_VIEWS
Service group containing services to display in the 'Views' menu.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object anObject) |
String |
format()
Returns a persistent identifier for this service key.
|
static ServiceGroupKey |
forServiceGroupInModule(String moduleName,
String serviceGroupName)
Returns the identifier of a service group defined in a module.
|
String |
getModuleName() |
String |
getName()
Returns the full name of the service.
|
String |
getServiceGroupName()
Returns the local name of the service, by removing the
prefix before and including the '@' character.
|
int |
hashCode() |
boolean |
isBuiltInGroup()
Returns
true if this instance identifies a built-in service group. |
static ServiceGroupKey |
parse(String aString)
Returns the service key that corresponds to the specified string.
|
String |
toString() |
public static final ServiceGroupKey EBX_SERVICES_WITHOUT_GROUP
Value is @ebx-services-without-group
.
public static final ServiceGroupKey CUSTOM_SERVICES_WITHOUT_GROUP
Value is: @custom-services-without-group
.
public static final ServiceGroupKey EBX_IMPORT_EXPORT
Value is: @ebx-importExport
.
public static final ServiceGroupKey EBX_VIEWS
Value is: @ebx-views
public static ServiceGroupKey forServiceGroupInModule(String moduleName, String serviceGroupName)
moduleName
- name of the module (as defined by the element /module/name
in the document located at /WEB-INF/ebx/module.xml
).serviceGroupName
- name of the service group in the module (as defined by the
attribute /module/serviceGroups/serviceGroup/@name
in the document /WEB-INF/ebx/module.xml
).public static ServiceGroupKey parse(String aString)
The specified string is generally generated by the method format()
.
IllegalArgumentException
- if specified string is empty or incorrect.public boolean isBuiltInGroup()
true
if this instance identifies a built-in service group.public String getModuleName()
public String getServiceGroupName()
public String getName()
public String format()
The service key can be re-obtained by parsing this persistent identifier using the method parse(String)
.