Package | Description |
---|---|
eu.ehri.extension |
Jersey resource classes for providing
web service access to the graph, via
the
eu.ehri.project.api layer. |
eu.ehri.extension.base | |
eu.ehri.extension.errors.mappers |
Classes that map caught exceptions to appropriate HTTP responses.
|
eu.ehri.project.acl |
Classes pertaining directly to the
access-control and permission system.
|
eu.ehri.project.api |
Classes that provide data access data on the graph in a
manner that incorporate the permission and access-control
systems.
|
eu.ehri.project.api.impl | |
eu.ehri.project.commands |
Classes that represent actions that can
be run via the
CmdEntryPoint
to manage the graph, e.g. |
eu.ehri.project.tools |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
GenericResource.addDemotion(String id)
Down vote an item
|
javax.ws.rs.core.Response |
VirtualUnitResource.addIncludedVirtualUnits(String id,
List<String> includedIds) |
void |
GroupResource.addMember(String id,
String aid)
Add an accessor to a group.
|
javax.ws.rs.core.Response |
CvocConceptResource.addNarrowerCvocConcept(String id,
List<String> narrower)
Add an existing concept to the list of 'narrower' relations.
|
javax.ws.rs.core.Response |
GenericResource.addPromotion(String id)
Up vote an item.
|
javax.ws.rs.core.Response |
CvocConceptResource.addRelatedCvocConcept(String id,
List<String> related)
Add a relation by creating the 'related' edge between the two existing
items.
|
long |
ToolsResource.autoLinkRepositoryDocs(String repositoryId,
String vocabularyId,
Set<AccessPointType> accessPointTypes,
String languageCode,
boolean excludeSingle,
boolean tolerant)
Create concepts and links derived from the access points
on a repository's documentary units.
|
void |
UserProfileResource.blockUserProfile(String userId,
List<String> otherIds) |
javax.ws.rs.core.Response |
CountryResource.create(Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
AuthoritativeSetResource.create(Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
VocabularyResource.create(Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
HistoricalAgentResource.create(Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
LinkResource.create(Bundle bundle,
String source,
String target,
List<String> bodies,
List<String> accessors)
Create a link between two items.
|
javax.ws.rs.core.Response |
GenericResource.createAccessPoint(String id,
String did,
Bundle bundle)
Create an access point on the given description, for the given
parent item.
|
javax.ws.rs.core.Response |
AnnotationResource.createAnnotation(String id,
String did,
List<String> accessors,
Bundle bundle)
Create an annotation for a particular item.
|
javax.ws.rs.core.Response |
CountryResource.createChild(String id,
Bundle bundle,
List<String> accessors)
Create a top-level repository unit for this country.
|
javax.ws.rs.core.Response |
AuthoritativeSetResource.createChild(String id,
Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
VocabularyResource.createChild(String id,
Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
CvocConceptResource.createChild(String id,
Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
RepositoryResource.createChild(String id,
Bundle bundle,
List<String> accessors)
Create a documentary unit for this repository.
|
javax.ws.rs.core.Response |
DocumentaryUnitResource.createChild(String id,
Bundle bundle,
List<String> accessors) |
javax.ws.rs.core.Response |
VirtualUnitResource.createChildVirtualUnit(String id,
Bundle bundle,
List<String> accessors,
List<String> includedIds) |
javax.ws.rs.core.Response |
GenericResource.createDescription(String id,
Bundle bundle)
Create a new description for this item.
|
javax.ws.rs.core.Response |
GroupResource.createGroup(Bundle bundle,
List<String> accessors,
List<String> members) |
javax.ws.rs.core.Response |
VirtualUnitResource.createTopLevelVirtualUnit(Bundle bundle,
List<String> accessors,
List<String> includedIds) |
javax.ws.rs.core.Response |
UserProfileResource.createUserProfile(Bundle bundle,
List<String> groupIds,
List<String> accessors) |
void |
GroupResource.delete(String id) |
void |
CountryResource.delete(String id) |
void |
AnnotationResource.delete(String id) |
void |
AuthoritativeSetResource.delete(String id) |
void |
VocabularyResource.delete(String id) |
void |
CvocConceptResource.delete(String id) |
void |
LinkResource.delete(String id) |
void |
RepositoryResource.delete(String id) |
void |
PermissionGrantResource.delete(String id)
Revoke a particular permission grant.
|
void |
DocumentaryUnitResource.delete(String id) |
void |
VirtualUnitResource.delete(String id) |
void |
HistoricalAgentResource.delete(String id) |
void |
UserProfileResource.delete(String id) |
void |
GenericResource.deleteAccessPoint(String id,
String did,
String apid)
Delete the access point with the given ID, on the given description,
belonging to the given parent item.
|
javax.ws.rs.core.Response |
AuthoritativeSetResource.deleteAllAuthoritativeSetHistoricalAgents(String id) |
void |
VocabularyResource.deleteAllVocabularyConcepts(String id) |
void |
GenericResource.deleteDescription(String id,
String did)
Delete a description with the given ID, belonging to the given parent item.
|
void |
UserProfileResource.followUserProfile(String userId,
List<String> otherIds) |
InheritedItemPermissionSet |
PermissionsResource.getEntityMatrix(String userId,
String id)
Get the permission matrix for a given user on the given entity.
|
InheritedGlobalPermissionSet |
PermissionsResource.getGlobalMatrix()
Get the global permission matrix for the user making the request, based
on the Authorization header.
|
InheritedGlobalPermissionSet |
PermissionsResource.getGlobalMatrix(String userId)
Get the global permission matrix for the given accessor.
|
InheritedGlobalPermissionSet |
PermissionsResource.getScopedMatrix(String userId,
String id)
Get the user's permissions for a given scope.
|
boolean |
UserProfileResource.isBlocking(String userId,
String otherId) |
boolean |
UserProfileResource.isFollower(String userId,
String otherId) |
boolean |
UserProfileResource.isFollowing(String userId,
String otherId) |
boolean |
UserProfileResource.isWatching(String userId,
String otherId) |
javax.ws.rs.core.Response |
GenericResource.listFromJson(String json)
Fetch a list of items by their ID.
|
void |
VirtualUnitResource.moveIncludedVirtualUnits(String fromId,
String toId,
List<String> includedIds) |
javax.ws.rs.core.Response |
GenericResource.permissionGrants(String id)
List all the permission grants that relate specifically to this item.
|
javax.ws.rs.core.Response |
GenericResource.removeDemotion(String id)
Remove a down vote.
|
javax.ws.rs.core.Response |
VirtualUnitResource.removeIncludedVirtualUnits(String id,
List<String> includedIds) |
void |
GroupResource.removeMember(String id,
String aid)
Remove an accessor from a group.
|
javax.ws.rs.core.Response |
CvocConceptResource.removeNarrowerCvocConcept(String id,
List<String> narrower)
Remove a narrower relationship between two concepts.
|
javax.ws.rs.core.Response |
GenericResource.removePromotion(String id)
Remove an up vote.
|
javax.ws.rs.core.Response |
CvocConceptResource.removeRelatedCvocConcept(String id,
List<String> related)
Remove a relation by deleting the edge, not the vertex of the related
concept.
|
InheritedGlobalPermissionSet |
PermissionsResource.setGlobalMatrix(String userId,
GlobalPermissionSet globals)
Set a user's global permission matrix.
|
InheritedItemPermissionSet |
PermissionsResource.setItemPermissions(String userId,
String id,
ItemPermissionSet itemPerms)
Set a user's permissions on a given item.
|
InheritedGlobalPermissionSet |
PermissionsResource.setScopedPermissions(String userId,
String id,
GlobalPermissionSet globals)
Set a user's permissions on a content type with a given scope.
|
javax.ws.rs.core.Response |
GenericResource.setVisibility(String id,
List<String> accessorIds)
Set the accessors who are able to view an item.
|
void |
UserProfileResource.unblockUserProfile(String userId,
List<String> otherIds) |
void |
UserProfileResource.unfollowUserProfile(String userId,
List<String> otherIds) |
void |
UserProfileResource.unwatchItem(String userId,
List<String> otherIds) |
javax.ws.rs.core.Response |
GroupResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
CountryResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
AnnotationResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
AuthoritativeSetResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
VocabularyResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
CvocConceptResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
LinkResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
RepositoryResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
DocumentaryUnitResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
VirtualUnitResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
HistoricalAgentResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
UserProfileResource.update(String id,
Bundle bundle) |
javax.ws.rs.core.Response |
GenericResource.updateDescription(String id,
Bundle bundle)
Update a description belonging to the given item.
|
javax.ws.rs.core.Response |
GenericResource.updateDescriptionWithId(String id,
String did,
Bundle bundle)
Update a description with the given ID, belonging to the given parent item.
|
javax.ws.rs.core.Response |
GenericResource.visibility(String id)
Get the accessors who are able to view an item.
|
void |
UserProfileResource.watchItem(String userId,
List<String> otherIds) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
CreateResource.create(Bundle bundle,
List<String> accessors)
Create a resource.
|
javax.ws.rs.core.Response |
ParentResource.createChild(String id,
Bundle bundle,
List<String> accessors)
Create a subordinate resource.
|
javax.ws.rs.core.Response |
AbstractAccessibleResource.createItem(Bundle entityBundle,
List<String> accessorIds) |
javax.ws.rs.core.Response |
AbstractAccessibleResource.createItem(Bundle entityBundle,
List<String> accessorIds,
AbstractAccessibleResource.Handler<E> handler)
Create an instance of the 'entity' in the database
|
<T extends Accessible> |
AbstractAccessibleResource.createItem(Bundle entityBundle,
List<String> accessorIds,
AbstractAccessibleResource.Handler<T> handler,
Api scopedApi,
Class<T> otherCls)
Create an instance of the 'entity' in the database
|
void |
DeleteResource.delete(String id)
Delete a resource.
|
protected void |
AbstractAccessibleResource.deleteItem(String id)
Delete (remove) an instance of the 'entity' in the database
|
protected void |
AbstractAccessibleResource.deleteItem(String id,
AbstractAccessibleResource.Handler<E> preProcess)
Delete (remove) an instance of the 'entity' in the database,
running a handler callback beforehand.
|
void |
AbstractAccessibleResource.Handler.process(E frame) |
javax.ws.rs.core.Response |
UpdateResource.update(String id,
Bundle bundle)
Update a resource.
|
javax.ws.rs.core.Response |
AbstractAccessibleResource.updateItem(Bundle entityBundle)
Update (change) an instance of the 'entity' in the database.
|
javax.ws.rs.core.Response |
AbstractAccessibleResource.updateItem(String id,
Bundle rawBundle)
Update (change) an instance of the 'entity' in the database
|
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
PermissionDeniedMapper.toResponse(PermissionDenied e) |
Modifier and Type | Method and Description |
---|---|
void |
PermissionUtils.checkContentPermission(Accessor accessor,
ContentTypes contentType,
PermissionType permissionType)
Check permissions for a given type.
|
void |
PermissionUtils.checkEntityPermission(Accessible entity,
Accessor accessor,
PermissionType permissionType)
Check permissions for a given entity.
|
void |
AclManager.setItemPermissions(Accessible item,
Accessor accessor,
Set<PermissionType> permissionSet)
Set the permissions for a particular user on the given item.
|
void |
AclManager.setPermissionMatrix(Accessor accessor,
GlobalPermissionSet globals)
Set a matrix of global permissions for a given accessor.
|
Modifier and Type | Method and Description |
---|---|
void |
Api.Acl.addAccessorToGroup(Group group,
Accessor userOrGroup)
Add a user to a group.
|
VirtualUnit |
VirtualUnitsApi.addIncludedUnits(VirtualUnit parent,
Iterable<DocumentaryUnit> included)
Add documentary units to be included in a virtual unit as child items.
|
Concept |
ConceptsApi.addNarrowerConcepts(String id,
List<String> narrower) |
Concept |
ConceptsApi.addRelatedConcepts(String id,
List<String> related) |
<E extends Accessible> |
Api.create(Bundle bundle,
Class<E> cls)
Create a new object of type `E` from the given data, within the scope of
`scope`.
|
<E extends Accessible> |
Api.create(Bundle bundle,
Class<E> cls,
Optional<String> logMessage)
Create a new object of type `E` from the given data, saving an Action log
with the given log message.
|
Link |
Api.createAccessPointLink(String targetId1,
String targetId2,
String descriptionId,
String bodyName,
AccessPointType bodyType,
Bundle bundle,
Collection<Accessor> accessibleTo,
Optional<String> logMessage)
Create a link between two items, along with an access point on the given description.
|
Annotation |
Api.createAnnotation(String id,
String did,
Bundle bundle,
Collection<Accessor> accessibleTo,
Optional<String> logMessage)
Create an annotation for a dependent node of an item.
|
<T extends Accessible> |
Api.createDependent(String parentId,
Bundle data,
Class<T> cls,
Optional<String> logMessage)
Create a dependent item, belonging to the given parent.
|
Link |
Api.createLink(String targetId1,
String targetId2,
List<String> bodies,
Bundle bundle,
Collection<Accessor> accessibleTo,
Optional<String> logMessage)
Create a link between two items.
|
<E extends Accessible> |
Api.createOrUpdate(Bundle bundle,
Class<E> cls)
Create or update a new object of type `E` from the given data, within the
scope of `scope`.
|
<E extends Accessible> |
Api.createOrUpdate(Bundle bundle,
Class<E> cls,
Optional<String> logMessage)
Create or update a new object of type `E` from the given data, within the
scope of `scope`.
|
int |
Api.delete(String id)
Delete an object bundle, following dependency cascades, within the scope
of item `scope`.
|
int |
Api.delete(String id,
Optional<String> logMessage)
Delete an object bundle, following dependency cascades, within the scope
of item `scope`.
|
int |
Api.deleteDependent(String parentId,
String id,
Optional<String> logMessage)
Delete a dependent item, belonging to the given parent.
|
Promotable |
Api.demote(String id)
Down vote an item, removing an up vote if there is one.
|
void |
VirtualUnitsApi.moveIncludedUnits(VirtualUnit from,
VirtualUnit to,
Iterable<DocumentaryUnit> included)
Move units included in one virtual collection to another virtual collection.
|
Promotable |
Api.promote(String id)
Up vote an item, removing a down vote if there is one.
|
void |
Api.Acl.removeAccessorFromGroup(Group group,
Accessor userOrGroup)
Remove a user from a group.
|
Promotable |
Api.removeDemotion(String id)
Remove a down vote.
|
VirtualUnit |
VirtualUnitsApi.removeIncludedUnits(VirtualUnit parent,
Iterable<DocumentaryUnit> included)
Remove documentary units from a virtual unit as child items.
|
Concept |
ConceptsApi.removeNarrowerConcepts(String id,
List<String> narrower) |
Promotable |
Api.removePromotion(String id)
Remove an up vote.
|
Concept |
ConceptsApi.removeRelatedConcepts(String id,
List<String> related) |
void |
Api.Acl.revokePermissionGrant(PermissionGrant grant)
Revoke a permission grant.
|
void |
Api.Acl.setAccessors(Accessible entity,
Set<Accessor> accessors) |
InheritedGlobalPermissionSet |
Api.Acl.setGlobalPermissionMatrix(Accessor userOrGroup,
GlobalPermissionSet permissionSet)
Set the global permission matrix for a user.
|
InheritedItemPermissionSet |
Api.Acl.setItemPermissions(Accessible item,
Accessor accessor,
Set<PermissionType> permissionList)
Set permissions for the given user on the given item.
|
<E extends Accessible> |
Api.update(Bundle bundle,
Class<E> cls)
Update an object bundle, also updating dependent items.
|
<E extends Accessible> |
Api.update(Bundle bundle,
Class<E> cls,
Optional<String> logMessage)
Create or update a new object of type `E` from the given data, saving an
Action log with the given log message.
|
<T extends Accessible> |
Api.updateDependent(String parentId,
Bundle data,
Class<T> cls,
Optional<String> logMessage)
Update a dependent item, belonging to the given parent.
|
Modifier and Type | Method and Description |
---|---|
<E extends Accessible> |
ApiImpl.create(Bundle bundle,
Class<E> cls) |
<E extends Accessible> |
ApiImpl.create(Bundle bundle,
Class<E> cls,
Optional<String> logMessage) |
Link |
ApiImpl.createAccessPointLink(String targetId1,
String targetId2,
String descriptionId,
String bodyName,
AccessPointType bodyType,
Bundle bundle,
Collection<Accessor> accessibleTo,
Optional<String> logMessage) |
Annotation |
ApiImpl.createAnnotation(String id,
String did,
Bundle bundle,
Collection<Accessor> accessibleTo,
Optional<String> logMessage) |
<T extends Accessible> |
ApiImpl.createDependent(String parentId,
Bundle data,
Class<T> cls,
Optional<String> logMessage) |
Link |
ApiImpl.createLink(String targetId1,
String targetId2,
List<String> bodies,
Bundle bundle,
Collection<Accessor> accessibleTo,
Optional<String> logMessage) |
<E extends Accessible> |
ApiImpl.createOrUpdate(Bundle bundle,
Class<E> cls) |
<E extends Accessible> |
ApiImpl.createOrUpdate(Bundle bundle,
Class<E> cls,
Optional<String> logMessage) |
int |
ApiImpl.delete(String id) |
int |
ApiImpl.delete(String id,
Optional<String> logMessage) |
int |
ApiImpl.deleteDependent(String parentId,
String id,
Optional<String> logMessage) |
Promotable |
ApiImpl.demote(String id) |
Promotable |
ApiImpl.promote(String id) |
Promotable |
ApiImpl.removeDemotion(String id) |
Promotable |
ApiImpl.removePromotion(String id) |
<E extends Accessible> |
ApiImpl.update(Bundle bundle,
Class<E> cls) |
<E extends Accessible> |
ApiImpl.update(Bundle bundle,
Class<E> cls,
Optional<String> logMessage) |
<T extends Accessible> |
ApiImpl.updateDependent(String parentId,
Bundle data,
Class<T> cls,
Optional<String> logMessage) |
Modifier and Type | Method and Description |
---|---|
void |
EntityAdd.createItem(com.tinkerpop.frames.FramedGraph<?> graph,
org.apache.commons.cli.CommandLine cmdLine,
String id,
Bundle bundle,
PermissionScope scope,
UserProfile user,
String logMessage) |
int |
EntityAdd.execWithOptions(com.tinkerpop.frames.FramedGraph<?> graph,
org.apache.commons.cli.CommandLine cmdLine) |
int |
UserAdd.execWithOptions(com.tinkerpop.frames.FramedGraph<?> graph,
org.apache.commons.cli.CommandLine cmdLine) |
int |
UserMod.execWithOptions(com.tinkerpop.frames.FramedGraph<?> graph,
org.apache.commons.cli.CommandLine cmdLine) |
int |
CountryAdd.execWithOptions(com.tinkerpop.frames.FramedGraph<?> graph,
org.apache.commons.cli.CommandLine cmdLine) |
Modifier and Type | Method and Description |
---|---|
int |
Linker.createAndLinkRepositoryVocabulary(Repository repository,
Vocabulary vocabulary,
Actioner user)
Populate a pre-created vocabulary with concepts created based on
access points for all collections within a repository, then link
those concepts to the relevant documentary units.
|
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.