Interface DocumentProtectionService


public interface DocumentProtectionService
  • Method Details

    • getDocumentProtectionForUser

      List<DocumentProtection> getDocumentProtectionForUser(String userId, boolean isGroup, Long docClassId)
      Deprecated.
      Nazwa metody wskazuje na pobieranie uprawnień dla użytkownika, jednak zależy to od parametru isGroup. Z tego powodu należy używać metod: getDocumentProtectionForGroup(String, Long) getDocumentProtectionForUser(String, Long) getDocumentProtectionForResource(String, boolean, Long)
    • getDocumentProtectionForUser

      List<DocumentProtection> getDocumentProtectionForUser(String userId, Long docClassId)
      Pobiera listę uprawnień warunkowych do klasy dokumentów dla danego użytkownika
      Parameters:
      userId - Login użytkownika
      docClassId - Id klasy dokumentów
      Returns:
    • getDocumentProtectionForGroup

      List<DocumentProtection> getDocumentProtectionForGroup(String groupName, Long docClassId)
      Pobiera listę uprawnień warunkowych do klasy dokumentów dla podanej grupy
      Parameters:
      groupName - nazwa grupy
      docClassId - Id klasy dokumentów
      Returns:
    • getDocumentProtectionForResource

      List<DocumentProtection> getDocumentProtectionForResource(String resourceId, boolean isGroup, Long docClassId)
      Pobiera listę uprawnień warunkowych do klasy dokumentów dla podanego zasobu (użytkownika lub grupy)
      Parameters:
      resourceId - identyfikator zasobu (login użytkownika lub nazwa grupy)
      isGroup - wskazuje czy zasób to grupa
      docClassId - Id klasy dokumentów
      Returns:
    • getDocumentProtection

      List<DocumentProtection> getDocumentProtection(Long docClassId)
      Pobiera listę uprawnień warunkowych do klasy dokumentów
      Parameters:
      docClassId - Id klasy dokumentów
      Returns:
    • deleteDocumentProtection

      void deleteDocumentProtection(Long id)
      Usuwa uprawnienie o podanym id
      Parameters:
      id - Id uprawnienia
    • createDocumentProtection

      void createDocumentProtection(DocumentProtection dp)
      Zapisuje uprawnienia w bazie danych
      Parameters:
      dp - Definicja uprawnień
    • updateDocumentProtection

      void updateDocumentProtection(DocumentProtection dp)
      Zmiania uprawnienia w bazie danych
      Parameters:
      dp - Definicja uprawnień
    • deleteByResource

      int deleteByResource(String resourceId, boolean isGroup)
      Usuwa uprawniania dla podanego użytkownika lub grupy
      Parameters:
      resourceId - Login uzytkownika lub nazwa grupy
      isGroup - true jeżeli jako resourceId podaliśmy nazwę grupy
      Returns:
      Ilość usuniętych rekordów
    • createDocumentClassProtection

      void createDocumentClassProtection(DocumentClassProtection dcp)
      Zapisuje dodatkowe ustawienia dla danego uprawnienia w bazie danych.
      Parameters:
      dcp - Definicja dodatkowych ustawień uprawnienia klasy dokumentów
    • updateDocumentClassProtection

      void updateDocumentClassProtection(DocumentClassProtection dcp)
      Zmienia dodatkowe ustawienia dla danego uprawnienia w bazie danych.
      Parameters:
      dcp - Definicja dodatkowych ustawień uprawnienia klasy dokumentów
    • getDocumentClassProtection

      DocumentClassProtection getDocumentClassProtection(DocumentClassProtectionPk pk)
      Pobiera dodatkowe ustawienia dla danego uprawnienia w bazie danych.
      Parameters:
      pk - Obiekt klucza głównego dodatkowych ustawień uprawnienia klasy dokumentów
    • getDocumentClassProtection

      DocumentClassProtection getDocumentClassProtection(String resourceId, boolean isGroup, Long docClassId)
      Pobiera dodatkowe ustawienia dla danego uprawnienia w bazie danych.
      Parameters:
      resourceId - Grupa lub login użytkownika
      isGroup - Czy resourceId jest grupą
      docClassId - ID klasy dokumentów
    • deleteDocumentClassProtection

      void deleteDocumentClassProtection(DocumentClassProtectionPk id)
      Usuwa dodatkowe ustawienia dla danego uprawnienia w bazie danych.
      Parameters:
      id - Id uprawnienia do klasy dokumentów
    • deleteDocumentClassProtection

      void deleteDocumentClassProtection(String resourceId, boolean isGroup, Long documentClassId)
      Usuwa dodatkowe ustawienia dla danego uprawnienia w bazie danych.
      Parameters:
      resourceId - Grupa lub login użytkownika
      isGroup - Czy resourceId jest grupą
      documentClassId - ID klasy dokumentów
    • deleteDocumentProtection

      void deleteDocumentProtection(String resourceId, boolean isGroup, Long docClassId)
      Usuwa uprawnienia dla podanego użytkownika/grupy i klasy dokumentów.
      Parameters:
      resourceId - grupa lub login użytkownika
      isGroup - czy resourceId jest grupą
      docClassId - id klasy dokumentów
    • getIndexIdFromCondition

      Long getIndexIdFromCondition(DocumentProtection documentProtection)
      Zwraca id indeksu zawartego w warunku danego uprawnienia
      Parameters:
      documentProtection - Definicja uprawnień
      Returns: