public interface IWeaveEntityManagementService
Modifier and Type | Method and Description |
---|---|
int[] |
addChild(int parentId,
int childId,
int insertAtIndex)
Adds a parent-child relationship to the server-side entity hierarchy table.
|
int[] |
findEntityIds(java.util.Map<java.lang.String,java.lang.String> publicMetadata,
java.lang.String[] wildcardFields)
Gets an Array of entity IDs with matching public metadata.
|
java.lang.String[] |
findPublicFieldValues(java.lang.String fieldName,
java.lang.String valueSearch)
Finds matching values for a public metadata field.
|
DataConfig.DataEntityWithRelationships[] |
getEntities(int[] ids)
Gets an Array of Entity objects.
|
DataConfig.EntityHierarchyInfo[] |
getHierarchyInfo(java.util.Map<java.lang.String,java.lang.String> publicMetadata)
Gets EntityHierarchyInfo objects containing basic information on entities matching public metadata.
|
int |
newEntity(DataConfig.DataEntityMetadata metadata,
int parentId,
int insertAtIndex)
Creates a new entity.
|
void |
removeChild(int parentId,
int childId)
Removes a parent-child relationship from the server-side entity hierarchy table.
|
int[] |
removeEntities(int[] entityIds)
Removes entities and their children recursively.
|
void |
updateEntity(int entityId,
DataConfig.DataEntityMetadata diff)
Updates the metadata for an existing entity.
|
DataConfig.EntityHierarchyInfo[] getHierarchyInfo(java.util.Map<java.lang.String,java.lang.String> publicMetadata) throws java.rmi.RemoteException
publicMetadata
- EntityMetadata containing values to match.java.rmi.RemoteException
DataConfig.DataEntityWithRelationships[] getEntities(int[] ids) throws java.rmi.RemoteException
ids
- A list of entity IDs.java.rmi.RemoteException
int[] findEntityIds(java.util.Map<java.lang.String,java.lang.String> publicMetadata, java.lang.String[] wildcardFields) throws java.rmi.RemoteException
publicMetadata
- Public metadata to search for.wildcardFields
- A list of field names in publicMetadata that should be treated
as search strings with wildcards '?' and '*' for single-character
and multi-character matching, respectively.java.rmi.RemoteException
java.lang.String[] findPublicFieldValues(java.lang.String fieldName, java.lang.String valueSearch) throws java.rmi.RemoteException
fieldName
- The name of the public metadata field to search.valueSearch
- A search string.java.rmi.RemoteException
int newEntity(DataConfig.DataEntityMetadata metadata, int parentId, int insertAtIndex) throws java.rmi.RemoteException
metadata
- Metadata for the new entity.parentId
- The parent entity ID, or -1 for no parent.insertAtIndex
- Specifies insertion index for sort order.java.rmi.RemoteException
void updateEntity(int entityId, DataConfig.DataEntityMetadata diff) throws java.rmi.RemoteException
entityId
- An entity ID.diff
- Specifies the changes to make to the metadata.java.rmi.RemoteException
int[] removeEntities(int[] entityIds) throws java.rmi.RemoteException
entityIds
- A list of entity IDs to remove.java.rmi.RemoteException
int[] addChild(int parentId, int childId, int insertAtIndex) throws java.rmi.RemoteException
parentId
- The ID of the parent entity.childId
- The ID of the child entity.insertAtIndex
- Specifies insertion index for sort order.java.rmi.RemoteException
void removeChild(int parentId, int childId) throws java.rmi.RemoteException
parentId
- The ID of the parent entity.childId
- The ID of the child entity.java.rmi.RemoteException