Class AuthorizableModel

    • Constructor Detail

      • AuthorizableModel

        protected AuthorizableModel​(@NotNull
                                    Authorizables.Context context,
                                    @NotNull
                                    @NotNull org.apache.jackrabbit.api.security.user.Authorizable authorizable)
                             throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
    • Method Detail

      • isGroup

        public abstract boolean isGroup()
      • toJson

        public void toJson​(com.google.gson.stream.JsonWriter writer)
                    throws IOException
        Throws:
        IOException
      • toJsonData

        protected void toJsonData​(com.google.gson.stream.JsonWriter writer)
                           throws IOException
        Throws:
        IOException
      • getType

        @NotNull
        public @NotNull String getType()
      • getTypeIcon

        @NotNull
        public @NotNull String getTypeIcon()
      • getId

        @NotNull
        public @NotNull String getId()
      • getPath

        @NotNull
        public @NotNull String getPath()
      • getPrincipalName

        @NotNull
        public @NotNull String getPrincipalName()
      • getMemberOf

        @NotNull
        public @NotNull Set<String> getMemberOf()
      • getDeclaredMemberOf

        @NotNull
        public @NotNull Set<String> getDeclaredMemberOf()
      • getModelOf

        @NotNull
        public @NotNull Collection<GroupModel> getModelOf()
                                                   throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getDeclaredModelOf

        @NotNull
        public @NotNull Collection<GroupModel> getDeclaredModelOf()
                                                           throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getKey

        protected String getKey()
      • getRank

        protected abstract int getRank()
      • stripIDs

        @NotNull
        protected static @NotNull Set<String> stripIDs​(@NotNull
                                                       @NotNull Iterator<? extends org.apache.jackrabbit.api.security.user.Authorizable> authorizableIterator)
                                                throws javax.jcr.RepositoryException
        Throws:
        javax.jcr.RepositoryException
      • getType

        protected static String getType​(@NotNull
                                        @NotNull org.apache.jackrabbit.api.security.user.Authorizable authorizable)