Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
titleDomain Objects

The following domain objects are returned by the services.

Section
titleProjectdocPropertiesDocumentProjectdocDocument


typede.smartics.projectdoc.atlassian.confluence.api.domain.ProjectdocPropertiesDocumentProjectdocDocument

A view on a projectdoc document from the User Macro API.

Code Block
languagejava
titleinterface ProjectdocPropertiesDocument
importpackage de.smartics.projectdoc.atlassian.confluence.api.domain.ProjectdocDocumentProperty;

import com.atlassian.confluence.pages.Page;

import java.util.Date;

import javajavax.utilannotation.MapNullable;

public interface ProjectdocDocument {
  /**
   * Returns the page if the document refers actually to a page. If it is not a
   * page, <code>null</code> is returned.
   *
   * @return a reference to the page or <code>null</code>.
   */
  @Nullable
  Page getPage();

  /**
   * Returns the unique identifier of the Confluence document.
   *
   * @return the unique identifier of the Confluence document.
   */
  long getDocumentId();

  /**
   * Returns the key of the space the document is part of.
   *
   * @return the key of the space the document is part of.
   */
  String getSpaceKey();

  /**
   * Returns the title of the document in Confluence.
   *
   * @return the title of the document in Confluence.
   */
  String getTitle();

  /**
   * Returns the display title of the document in Confluence.
   *
   * @return the display title of the document in Confluence.
   */
  String getDisplayTitle();

  /**
   * Returns the path to the document within Confluence.
   *
   * @return the path to the document within Confluence.
   */
  String getUrlPath();

  /**
   * Returns the last modification date of the document in Confluence.
   *
   * @return the last modification date of the document in Confluence.
   */
  Date getLastModificationDate();

  /**
   * Returns only the properties that have been specified in the rendered property.
   *
   * @param the name of the property to return. <code>null</code> will be
   *        returned, if the property is unknown to the document. That
   */
  @Nullable
  ProjectdocDocumentProperty getProperty(String propertyName);

  /**
   * is the properties that are not artificial Returns the rendered property identified by the property key. The property
   * key is the I18n resource key.
   *
   * @return @param propertyKey the key to the name of the non-artificial properties. Mayproperty to return.
   *        <code>null</code> will be emptyreturned, if the butproperty is unknown neverto
   *        the <code>null</code>document.
   */
  @Nullable
 Map<String, DocumentProperty>ProjectdocDocumentProperty getNonArtificialPropertiesgetPropertyByKey(String propertyKey);
}
  



Section
titleProjectdocDocumentProperty


typede.smartics.projectdoc.atlassian.confluence.api.domain.ProjectdocDocumentProperty

A view on a projectdoc document property from the User Macro API.

Code Block
languagejava
titleinterface ProjectdocDocumentProperty
package de.smartics.projectdoc.atlassian.confluence.api.domain;

/**
 *  * Returns all artificial properties.
   *A view on a projectdoc document property for public access through the
 * published API.
 */
public interface ProjectdocDocumentProperty {
  /**
   * @returnReturns allthe artificialname properties.of Maythe beproperty.
 empty, but is never*
   * @return the name of the property,  never <code>null</code>.
   */
  Map<String, DocumentProperty> getArtificialPropertiesString getName();

  /**
   * Returns all properties the rendered value as based on the storage format found in the
   * projectdoc document.
   * <p>
   * @return all properties. May be empty, but is never <code>null</code> This is the value with style information. For instance, if the value is
   * boxed in a div element with class attributes, this structure is returned.
   * </p>
   *
   * @return the rendered value of the property.
   */
  Map<String, DocumentProperty> getPropertiesString getRenderedValue();

  /**
   * Returns the normalized version of the rendered property value.
   * <p>
   * This @paramis the nametext representation of the property value.
  to return.* <code>null</code> will be</p>
   *
   * @return the normalized rendered value of the property.
   */
  String getNormalizedRenderedValue();

  /**
   returned,* ifReturns the propertyoriginal value isas unknownfound toin the projectdoc document in storage
   * format.
   */
  @Nullable
  DocumentProperty getProperty(String propertyName * @return the original value of the property.
   */
  String getOriginalValue();

  /**
   * Returns the renderednormalized propertyversion identifiedof bythe theoriginal property keyvalue.
   The* property<p>
   * keyThis is the I18n resource key text representation of the property value.
   * </p>
   *
 @param  * propertyKey@return the normalized keyoriginal value toof the name ofproperty.
   */
  String getNormalizedOriginalValue();

  /**
   * Checks if the property is actually toa returnsection.
   *
   * @return <code>true</code> if the property is actually  <code>null</code> will be returned, ifa section,
   *         <code>false</code> if it is actually a property.
   */
  boolean isSection();

  /**
   * Checks whether or not the property is unknown to associated with the given control.
   *
   * @param controlName the name of the document.control to check.
   * @return <code>true</code> if the property has this control attached,
   *         <code>false</code> otherwise.
   @Nullable*/
  DocumentPropertyboolean getPropertyByKeyhasControl(String propertyKeycontrolName);

}




Section
ignore-template-buttonstrue
titleSubordinate Topics


Hide From Reader

Create from template
blueprintModuleCompleteKeyde.smartics.atlassian.confluence.smartics-projectdoc-confluence-space-core:projectdoc-blueprint-doctype-topic
buttonLabelCreate Topic

Display Table
doctypetopic
render-no-hits-as-blanktrue
render-modedefinition
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name

...