java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<MetadataEntity,Long>
org.exoplatform.social.core.jpa.storage.dao.jpa.MetadataDAO
All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<MetadataEntity,Long>

public class MetadataDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<MetadataEntity,Long>
  • Constructor Details

    • MetadataDAO

      public MetadataDAO()
  • Method Details

    • getMetadataNamesByAudiences

      public List<String> getMetadataNamesByAudiences(long metadataTypeId, Set<Long> audienceIds, long limit)
    • getMetadataNamesByCreator

      public List<String> getMetadataNamesByCreator(long metadataTypeId, long creatorIdentityId, long limit)
    • getMetadataNamesByUser

      public List<String> getMetadataNamesByUser(long metadataTypeId, long creatorIdentityId, Set<Long> audienceIds, long limit)
    • findMetadataNameByAudiencesAndQuery

      public List<String> findMetadataNameByAudiencesAndQuery(String term, long metadataTypeId, Set<Long> audienceIds, long limit)
    • findMetadataNameByCreatorAndQuery

      public List<String> findMetadataNameByCreatorAndQuery(String term, long metadataTypeId, long creatorIdentityId, long limit)
    • findMetadataNamesByUserAndQuery

      public List<String> findMetadataNamesByUserAndQuery(String term, long metadataTypeId, long creatorIdentityId, Set<Long> audienceIds, long limit)
    • findMetadata

      public MetadataEntity findMetadata(long type, String name, long audienceId)
    • getMetadatas

      public List<MetadataEntity> getMetadatas(long type, long limit)
    • getMetadataIds

      public List<Long> getMetadataIds(long type, int offset, int limit)
    • getMetadataIdsByProperty

      public List<Long> getMetadataIdsByProperty(String propertyKey, String propertyValue, long offset, long limit, boolean orderByName)
    • countMetadataIdsByProperty

      public long countMetadataIdsByProperty(String propertyKey, String propertyValue)