Interface AttributeSupport


  • public interface AttributeSupport
    This interface collect engine's operations related to attributes. Those operations doesn't check for authorization therefore their usage should be limited by a wrapping code, the operations must not be exposed directly.
    Author:
    K. Benedyczak
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      pl.edu.icm.unity.types.basic.AttributeExt getAttributeByMetadata​(pl.edu.icm.unity.types.basic.EntityParam entity, java.lang.String group, java.lang.String metadataId)
      Returns attribute which has the given metadata set.
      java.util.Collection<pl.edu.icm.unity.types.basic.Attribute> getAttributesByKeyword​(java.lang.String keyword)
      Returns all attributes linked with given keyword.
      java.util.Map<java.lang.String,​pl.edu.icm.unity.types.basic.AttributeType> getAttributeTypesAsMap()  
      java.util.List<pl.edu.icm.unity.types.basic.AttributeType> getAttributeTypeWithMetadata​(java.lang.String metadataId)
      Returns all attribute types which have the given metadata set.
      pl.edu.icm.unity.types.basic.AttributeType getAttributeTypeWithSingeltonMetadata​(java.lang.String metadataId)
      Returns attribute type which has the given metadata set.
    • Method Detail

      • getAttributeTypeWithSingeltonMetadata

        pl.edu.icm.unity.types.basic.AttributeType getAttributeTypeWithSingeltonMetadata​(java.lang.String metadataId)
                                                                                  throws pl.edu.icm.unity.exceptions.EngineException
        Returns attribute type which has the given metadata set. The metadata must be singleton, otherwise unchecked exception is thrown. If there is no attribute type with this metadata, then null is returned.
        Throws:
        pl.edu.icm.unity.exceptions.EngineException
      • getAttributeTypeWithMetadata

        java.util.List<pl.edu.icm.unity.types.basic.AttributeType> getAttributeTypeWithMetadata​(java.lang.String metadataId)
                                                                                         throws pl.edu.icm.unity.exceptions.EngineException
        Returns all attribute types which have the given metadata set.
        Throws:
        pl.edu.icm.unity.exceptions.EngineException
      • getAttributeByMetadata

        pl.edu.icm.unity.types.basic.AttributeExt getAttributeByMetadata​(pl.edu.icm.unity.types.basic.EntityParam entity,
                                                                         java.lang.String group,
                                                                         java.lang.String metadataId)
                                                                  throws pl.edu.icm.unity.exceptions.EngineException
        Returns attribute which has the given metadata set. If there is no attribute type with this metadata, then null is returned. The metadata must be singleton, otherwise unchecked exception is thrown.
        Throws:
        pl.edu.icm.unity.exceptions.EngineException
      • getAttributeTypesAsMap

        java.util.Map<java.lang.String,​pl.edu.icm.unity.types.basic.AttributeType> getAttributeTypesAsMap()
                                                                                                         throws pl.edu.icm.unity.exceptions.EngineException
        Returns:
        all attribute types as map. Not authorized anyhow
        Throws:
        pl.edu.icm.unity.exceptions.EngineException
      • getAttributesByKeyword

        java.util.Collection<pl.edu.icm.unity.types.basic.Attribute> getAttributesByKeyword​(java.lang.String keyword)
        Returns all attributes linked with given keyword. No authorization.