Interface AclMapper<T extends Acl<? extends Ace>>

  • Type Parameters:
    T - the acl type
    All Known Implementing Classes:
    AclMapperImpl

    @Validated
    public interface AclMapper<T extends Acl<? extends Ace>>
    The acl mapper interface.
    Author:
    Christian Bremer
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default org.bremersee.common.model.AccessControlList defaultAccessControlList​(String owner)
      Default access control list (dto).
      default T defaultAcl​(String owner)
      Default acl (entity).
      default AclFactory<T> getAclFactory()
      Gets acl factory.
      T map​(org.bremersee.common.model.AccessControlList accessControlList)
      Map access control list dto to entity.
      default T map​(org.bremersee.common.model.AccessControlList accessControlList, @NotNull AclFactory<T> aclFactory)
      Map access control list dto to entity.
      default org.bremersee.common.model.AccessControlList map​(T acl)
      Map access control list (entity) to dto.
    • Method Detail

      • getAclFactory

        default AclFactory<T> getAclFactory()
        Gets acl factory.
        Returns:
        the acl factory
      • defaultAccessControlList

        default org.bremersee.common.model.AccessControlList defaultAccessControlList​(@Nullable
                                                                                      String owner)
        Default access control list (dto).
        Parameters:
        owner - the owner
        Returns:
        the access control list (can be null)
      • map

        default org.bremersee.common.model.AccessControlList map​(@Nullable
                                                                 T acl)
        Map access control list (entity) to dto.
        Parameters:
        acl - the acl
        Returns:
        the access control list
      • map

        default T map​(@Nullable
                      org.bremersee.common.model.AccessControlList accessControlList,
                      @NotNull
                      @NotNull AclFactory<T> aclFactory)
        Map access control list dto to entity.
        Parameters:
        accessControlList - the access control list
        aclFactory - the acl factory
        Returns:
        the acl of the specified type
      • map

        T map​(@Nullable
              org.bremersee.common.model.AccessControlList accessControlList)
        Map access control list dto to entity.
        Parameters:
        accessControlList - the access control list
        Returns:
        the acl of the specified type
      • defaultAcl

        default T defaultAcl​(@Nullable
                             String owner)
        Default acl (entity).
        Parameters:
        owner - the owner
        Returns:
        the acl (can be null)