public interface AssignmentService extends AssignmentResolver
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<Resource> |
CHANNEL_ASSIGNMENT_PRIORITY_COMPARATOR
Sorts a list of channel assignments based on priority property.
|
Modifier and Type | Method and Description |
---|---|
void |
delete(Resource assignment)
Deletes the provided assignment and the associated copied configs.
|
java.util.Iterator<Resource> |
findDisplaysForEntity(Resource resource)
Find the displays that reference the specified resource.
|
java.util.Iterator<Resource> |
findRootAssignmentsForEntity(Resource resource)
Find the root assignments for the specified resource
(i.e.
|
Resource |
getParentEntity(Resource assignment)
Gets the parent entity (display or schedule) that contains this assignment.
|
java.lang.String |
getRoleForAssignment(Resource channel,
Resource assignment)
Returns the role of the channel assignment of the provided channel or schedule assignment.
|
boolean |
isAssignment(Resource resource)
Checks whether the specified resource is an assignment.
|
Resource |
resolve(ResourceResolver resolver,
Resource parent,
Resource assignment)
Deprecated.
|
findAssignmentsForEntity, findDisplaysForAssignment, getSupportedResourceType, resolveEntity, resolveEntity
static final java.util.Comparator<Resource> CHANNEL_ASSIGNMENT_PRIORITY_COMPARATOR
boolean isAssignment(Resource resource)
resource
- The resource to checktrue
if the resource is an assignment, false
otherwisejava.util.Iterator<Resource> findRootAssignmentsForEntity(Resource resource)
resource
- The referenced resourcejava.util.Iterator<Resource> findDisplaysForEntity(Resource resource)
resource
- The referenced resourceResource getParentEntity(Resource assignment)
assignment
- The assignment to get the parent of@Deprecated Resource resolve(ResourceResolver resolver, Resource parent, Resource assignment)
resolver
- The resource resolverparent
- The parent in which to look for the assignmentassignment
- The assignment resourcejava.lang.String getRoleForAssignment(Resource channel, Resource assignment)
channel
- The channelassignment
- The assignmentvoid delete(Resource assignment) throws PersistenceException
assignment
- The channel assignment in questionPersistenceException
- if there is an error deleting the assignment"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"