| Package | Description |
|---|---|
| org.dspace.content |
Provides an API for reading and manipulating content in the DSpace system.
|
| org.dspace.content.dao | |
| org.dspace.content.dao.impl | |
| org.dspace.content.service |
| Modifier and Type | Field and Description |
|---|---|
static javax.persistence.metamodel.SingularAttribute<Relationship,Integer> |
Relationship_.id |
static javax.persistence.metamodel.SingularAttribute<Relationship,Item> |
Relationship_.leftItem |
static javax.persistence.metamodel.SingularAttribute<Relationship,Integer> |
Relationship_.leftPlace |
static javax.persistence.metamodel.SingularAttribute<Relationship,RelationshipType> |
Relationship_.relationshipType |
static javax.persistence.metamodel.SingularAttribute<Relationship,Item> |
Relationship_.rightItem |
static javax.persistence.metamodel.SingularAttribute<Relationship,Integer> |
Relationship_.rightPlace |
| Modifier and Type | Method and Description |
|---|---|
Relationship |
RelationshipServiceImpl.create(Context context) |
Relationship |
RelationshipServiceImpl.create(Context c,
Item leftItem,
Item rightItem,
RelationshipType relationshipType,
int leftPlace,
int rightPlace) |
Relationship |
RelationshipServiceImpl.create(Context context,
Relationship relationship) |
Relationship |
RelationshipServiceImpl.find(Context context,
int id) |
| Modifier and Type | Method and Description |
|---|---|
List<Relationship> |
RelationshipServiceImpl.findAll(Context context) |
List<Relationship> |
RelationshipServiceImpl.findByItem(Context context,
Item item) |
List<Relationship> |
RelationshipServiceImpl.findByItemAndRelationshipType(Context context,
Item item,
RelationshipType relationshipType) |
List<Relationship> |
RelationshipServiceImpl.findByItemAndRelationshipType(Context context,
Item item,
RelationshipType relationshipType,
boolean isLeft) |
List<Relationship> |
RelationshipServiceImpl.findByRelationshipType(Context context,
RelationshipType relationshipType) |
List<Relationship> |
EntityServiceImpl.getLeftRelations(Context context,
Entity entity) |
List<Relationship> |
EntityServiceImpl.getRelationsByLabel(Context context,
String label) |
List<Relationship> |
Entity.getRelationships()
Standard getter for the list of relationships for the Item in this Entity object
|
List<Relationship> |
EntityServiceImpl.getRightRelations(Context context,
Entity entity) |
| Modifier and Type | Method and Description |
|---|---|
Relationship |
RelationshipServiceImpl.create(Context context,
Relationship relationship) |
void |
RelationshipServiceImpl.delete(Context context,
Relationship relationship) |
void |
RelationshipServiceImpl.update(Context context,
Relationship relationship) |
void |
RelationshipServiceImpl.updatePlaceInRelationship(Context context,
Relationship relationship,
boolean isCreation) |
| Modifier and Type | Method and Description |
|---|---|
void |
Entity.setRelationships(List<Relationship> relationships)
Standard setter for the list of relationships for the Item in this Entity object
|
void |
RelationshipServiceImpl.update(Context context,
List<Relationship> relationships) |
| Constructor and Description |
|---|
Entity(Item item,
List<Relationship> relationshipList)
constructor for the Entity object
|
| Modifier and Type | Method and Description |
|---|---|
List<Relationship> |
RelationshipDAO.findByItem(Context context,
Item item)
This method returns a list of Relationship objects that have the given Item object
as a leftItem or a rightItem
|
List<Relationship> |
RelationshipDAO.findByRelationshipType(Context context,
RelationshipType relationshipType)
This method returns a list of Relationship objects for the given RelationshipType object.
|
| Modifier and Type | Method and Description |
|---|---|
List<Relationship> |
RelationshipDAOImpl.findByItem(Context context,
Item item) |
List<Relationship> |
RelationshipDAOImpl.findByRelationshipType(Context context,
RelationshipType relationshipType) |
| Modifier and Type | Method and Description |
|---|---|
Relationship |
RelationshipService.create(Context c,
Item leftItem,
Item rightItem,
RelationshipType relationshipType,
int leftPlace,
int rightPlace)
This method is used to construct a Relationship object with all it's variables
|
Relationship |
RelationshipService.create(Context context,
Relationship relationship)
This method creates a relationship object in the database equal to the given relationship param
if this is a valid relationship
|
| Modifier and Type | Method and Description |
|---|---|
List<Relationship> |
RelationshipService.findAll(Context context)
Retrieves the full list of relationships currently in the system
|
List<Relationship> |
RelationshipService.findByItem(Context context,
Item item)
Retrieves the list of Relationships currently in the system for which the given Item is either
a leftItem or a rightItem object
|
List<Relationship> |
RelationshipService.findByItemAndRelationshipType(Context context,
Item item,
RelationshipType relationshipType)
This method returns a list of Relationships for which the leftItem or rightItem is equal to the given
Item object and for which the RelationshipType object is equal to the relationshipType property
|
List<Relationship> |
RelationshipService.findByRelationshipType(Context context,
RelationshipType relationshipType)
This method returns a list of Relationship objets for which the relationshipType property is equal to the given
RelationshipType object
|
List<Relationship> |
EntityService.getLeftRelations(Context context,
Entity entity)
Retrieves the list of relationships, which are attached to the Entity object that is passed along, where the
left item object of each relationship is equal to the Item object of the Entity object that is passed along
|
List<Relationship> |
EntityService.getRelationsByLabel(Context context,
String label)
Retrieves the list of relationships for which their relationshiptype has a left or right label that is
equal to the passed along label String
|
List<Relationship> |
EntityService.getRightRelations(Context context,
Entity entity)
Retrieves the list of relationships, which are attached to the Entity object that is passed along, where the
right item object of each relationship is equal to the Item object of the Entity object that is passed along
|
| Modifier and Type | Method and Description |
|---|---|
Relationship |
RelationshipService.create(Context context,
Relationship relationship)
This method creates a relationship object in the database equal to the given relationship param
if this is a valid relationship
|
void |
RelationshipService.updatePlaceInRelationship(Context context,
Relationship relationship,
boolean isCreation)
This method will update the place for the Relationship and all other relationships found by the items and
relationship type of the given Relatonship.
|
Copyright © 2019 DuraSpace. All rights reserved.