public EntityRequestDtoBuilder componentId(int componentId) { return entityId(String.format(COMPONENT_TEMPLATE_IDS_FORMAT, componentId, templateId)); }
/** * Shortcut method for {@link #loadEntity(EntityRequestDto)}. * * @param entityId entity ID in a format of {@code componentId-templateId} */ @NotNull public EntityModelData loadEntity(String publicationId, @NotNull String entityId) throws ContentProviderException { return loadEntity(EntityRequestDto.builder(publicationId, entityId).entityId(entityId).build()); }
public static EntityRequestDtoBuilder builder(int publicationId, int componentId, int templateId) { return hiddenBuilder().publicationId(publicationId).entityId(String.format(COMPONENT_TEMPLATE_IDS_FORMAT, componentId, templateId)); }
public EntityRequestDtoBuilder templateId(int templateId) { return entityId(String.format(COMPONENT_TEMPLATE_IDS_FORMAT, componentId, templateId)); }
public static EntityRequestDtoBuilder builder(int publicationId, int componentId) { return hiddenBuilder().publicationId(publicationId).componentId(componentId); }
public static EntityRequestDtoBuilder builder(int publicationId, String entityId) { return hiddenBuilder().publicationId(publicationId).entityId(entityId); }
private static EntityRequestDtoBuilder hiddenBuilder() { return new EntityRequestDtoBuilder(); }