@ProviderType 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(@Nonnull Resource resource)
resource
- The resource to checktrue
if the resource is an assignment, false
otherwise@Nonnull java.util.Iterator<Resource> findRootAssignmentsForEntity(@Nonnull Resource resource)
resource
- The referenced resource@Nonnull java.util.Iterator<Resource> findDisplaysForEntity(@Nonnull Resource resource)
resource
- The referenced resource@Nullable Resource getParentEntity(@Nonnull Resource assignment)
assignment
- The assignment to get the parent of@Deprecated Resource resolve(@Nonnull ResourceResolver resolver, @Nonnull Resource parent, Resource assignment)
resolver
- The resource resolverparent
- The parent in which to look for the assignmentassignment
- The assignment resource@Nullable java.lang.String getRoleForAssignment(@Nonnull Resource channel, @Nonnull Resource assignment)
channel
- The channelassignment
- The assignmentvoid delete(@Nonnull Resource assignment) throws PersistenceException
assignment
- The channel assignment in questionPersistenceException
- if there is an error deleting the assignmentCopyright © 2010 - 2020 Adobe. All Rights Reserved