/** * Gets the value of the tag {@code <batch:interrupted>}. * * @param extPoint the extension point to get the interrupted tag from * @return the object corresponding to the tag or null */ public static BatchInterrupted getBatchInterrupted(ExtensionPoint extPoint) { return extPoint.getExtension(BatchInterrupted.class); }
extension = getExtension(extClass);
/** * Get an extension by class. * @see ExtensionPoint#getExtension(Class) */ protected <T extends Extension> T getExtension(Class<T> extClass) { return extPoint.getExtension(extClass); }
extension = getExtension(extClass);
/** * Gets the value of the tag {@code <batch:status>}. * * @param extPoint the extension point to get the status from * @return the object corresponding to the tag or null */ public static BatchStatus getBatchStatus(ExtensionPoint extPoint) { return extPoint.getExtension(BatchStatus.class); }
extension = getExtension(extClass);
/** * Get an extension by class. * @see ExtensionPoint#getExtension(Class) */ protected <T extends Extension> T getExtension(Class<T> extClass) { return extPoint.getExtension(extClass); }
/** * Gets the value of the tag {@code <batch:interrupted>}. * * @param extPoint the extension point to get the interrupted tag from * @return the object corresponding to the tag or null */ public static BatchInterrupted getBatchInterrupted(ExtensionPoint extPoint) { return extPoint.getExtension(BatchInterrupted.class); }
/** * Gets the value of the tag {@code <batch:status>}. * * @param extPoint the extension point to get the status from * @return the object corresponding to the tag or null */ public static BatchStatus getBatchStatus(ExtensionPoint extPoint) { return extPoint.getExtension(BatchStatus.class); }
/** * Gets the value of the tag {@code <batch:interrupted>}. * * @param extPoint the extension point to get the interrupted tag from * @return the object corresponding to the tag or null */ public static BatchInterrupted getBatchInterrupted(ExtensionPoint extPoint) { return extPoint.getExtension(BatchInterrupted.class); }
/** * Gets the value of the tag {@code <batch:status>}. * * @param extPoint the extension point to get the status from * @return the object corresponding to the tag or null */ public static BatchStatus getBatchStatus(ExtensionPoint extPoint) { return extPoint.getExtension(BatchStatus.class); }
public MediaGroup getMediaGroup() { return extPoint.getExtension(MediaGroup.class); }
public MediaGroup getMediaGroup() { return extPoint.getExtension(MediaGroup.class); }
/** * Gets the batch operation type from the tag {@code <batch:operation>} * in a {@link ExtensionPoint}. * * @param extPoint extension point to get the operation type from * @return the operation to execute or null if it's not set */ public static BatchOperationType getBatchOperationType( ExtensionPoint extPoint) { BatchOperation op = extPoint.getExtension(BatchOperation.class); return op == null ? null : op.getType(); }
/** * Gets the batch operation type from the tag {@code <batch:operation>} * in a {@link ExtensionPoint}. * * @param extPoint extension point to get the operation type from * @return the operation to execute or null if it's not set */ public static BatchOperationType getBatchOperationType( ExtensionPoint extPoint) { BatchOperation op = extPoint.getExtension(BatchOperation.class); return op == null ? null : op.getType(); }
/** * Gets the batch operation type from the tag {@code <batch:operation>} * in a {@link ExtensionPoint}. * * @param extPoint extension point to get the operation type from * @return the operation to execute or null if it's not set */ public static BatchOperationType getBatchOperationType( ExtensionPoint extPoint) { BatchOperation op = extPoint.getExtension(BatchOperation.class); return op == null ? null : op.getType(); }
public void setKeywords(MediaKeywords keywords) { MediaGroup group = extPoint.getExtension(MediaGroup.class); if (group == null) { group = new MediaGroup(); extPoint.addExtension(group); } group.setKeywords(keywords); }
public void setKeywords(MediaKeywords keywords) { MediaGroup group = extPoint.getExtension(MediaGroup.class); if (group == null) { group = new MediaGroup(); extPoint.addExtension(group); } group.setKeywords(keywords); }