Class BaseConfigurationItem

    • Field Detail

      • id

        protected java.lang.String id
      • type

        protected Type type
      • syntheticProperties

        protected java.util.Map<java.lang.String,​java.lang.Object> syntheticProperties
    • Constructor Detail

      • BaseConfigurationItem

        public BaseConfigurationItem()
    • Method Detail

      • getId

        public java.lang.String getId()
        Specified by:
        getId in interface ConfigurationItem
        Returns:
        The id of the CI.
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface ConfigurationItem
        Returns:
        The name of the CI.
      • setType

        public void setType​(Type type)
        Sets the type metadata for this CI.
      • getProperty

        public <T> T getProperty​(java.lang.String key)
        Specified by:
        getProperty in interface ConfigurationItem
        Type Parameters:
        T - The type of the property.
        Parameters:
        key - The name of the property.
        Returns:
        The value of type T of the property.
      • hasProperty

        public boolean hasProperty​(java.lang.String key)
        Specified by:
        hasProperty in interface ConfigurationItem
        Parameters:
        key - The name of the property.
        Returns:
        True if the CI has a added property with the given name.
      • setProperty

        public <T> void setProperty​(java.lang.String key,
                                    T value)
        Description copied from interface: ConfigurationItem
        Adds a custom property of a generic type to the CI.
        Specified by:
        setProperty in interface ConfigurationItem
        Type Parameters:
        T - The type of the property.
        Parameters:
        key - The name of the property.
        value - The value of type T of the property.
      • get$ciAttributes

        public CiAttributes get$ciAttributes()
        Returns:
        attributes of ci modification.
      • set$ciAttributes

        public void set$ciAttributes​(CiAttributes $ciAttributes)
        Sets attributes of ci modification.
        Parameters:
        $ciAttributes - attributes of ci modification
      • getPropertyDescriptor

        protected PropertyDescriptor getPropertyDescriptor​(java.lang.String name)
      • get$token

        public java.lang.String get$token()
        Returns:
        The JCR optimistic locking token.
      • set$token

        public void set$token​(java.lang.String $token)
        Parameters:
        $token - The JCR optimistic locking token.
      • set$validationMessages

        public void set$validationMessages​(java.util.List<ValidationMessage> $validationMessages)
      • get$externalProperties

        public java.util.Map<java.lang.String,​ExternalProperty> get$externalProperties()
      • set$externalProperties

        public void set$externalProperties​(java.util.Map<java.lang.String,​ExternalProperty> externalProperties)
      • get$internalId

        public java.lang.Integer get$internalId()
        Specified by:
        get$internalId in interface ConfigurationItem
        Returns:
        The internal ID of ConfigurationItem.
      • set$internalId

        public void set$internalId​(java.lang.Integer internalId)
      • get$securedCi

        public java.lang.Integer get$securedCi()
        Specified by:
        get$securedCi in interface ConfigurationItem
        Returns:
        The ID of secured CI which determines ConfigurationItem's permissions.
      • set$securedCi

        public void set$securedCi​(java.lang.Integer securedCi)
      • get$directoryReference

        public java.lang.String get$directoryReference()
        Specified by:
        get$directoryReference in interface ConfigurationItem
        Returns:
        The UUID of ConfigurationItem's directory.
      • set$directoryReference

        public void set$directoryReference​(java.lang.String $directoryReference)
      • get$securedDirectoryReference

        public java.lang.String get$securedDirectoryReference()
        Specified by:
        get$securedDirectoryReference in interface ConfigurationItem
        Returns:
        The UUID of ConfigurationItems secured directory which determines ConfigurationItems permissions.
      • set$securedDirectoryReference

        public void set$securedDirectoryReference​(java.lang.String $securedDirectoryReference)
      • get$referenceId

        public java.lang.String get$referenceId()
        Specified by:
        get$referenceId in interface ConfigurationItem
        Returns:
        The reference UUID of ConfigurationItem.
      • set$referenceId

        public void set$referenceId​(java.lang.String $referenceId)
      • equals

        public boolean equals​(java.lang.Object thatObject)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object