Class TemplateUtils


  • public class TemplateUtils
    extends Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.syncope.core.persistence.api.dao.GroupDAO groupDAO  
      protected org.apache.syncope.core.persistence.api.dao.UserDAO userDAO  
    • Constructor Summary

      Constructors 
      Constructor Description
      TemplateUtils​(org.apache.syncope.core.persistence.api.dao.UserDAO userDAO, org.apache.syncope.core.persistence.api.dao.GroupDAO groupDAO)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void apply​(org.apache.syncope.common.lib.RealmMember realmMember, Optional<? extends org.apache.syncope.core.persistence.api.entity.AnyTemplate> template)  
      void apply​(org.apache.syncope.common.lib.RealmMember realmMember, org.apache.syncope.common.lib.to.AnyTO template)  
      static void check​(Map<String,​org.apache.syncope.common.lib.to.AnyTO> templates, org.apache.syncope.common.lib.types.ClientExceptionType clientExceptionType)  
      protected static org.apache.syncope.common.lib.Attr evaluateAttr​(org.apache.syncope.common.lib.Attr template, org.apache.commons.jexl3.MapContext jexlContext)  
      protected static void fill​(org.apache.syncope.common.lib.RealmMember realmMember, org.apache.syncope.common.lib.RealmMember template)  
      protected static void fillMemberships​(org.apache.syncope.common.lib.to.GroupableRelatableTO any, org.apache.syncope.common.lib.to.GroupableRelatableTO template)  
      protected static void fillRelationships​(org.apache.syncope.common.lib.to.GroupableRelatableTO any, org.apache.syncope.common.lib.to.GroupableRelatableTO template)  
    • Field Detail

      • userDAO

        protected final org.apache.syncope.core.persistence.api.dao.UserDAO userDAO
      • groupDAO

        protected final org.apache.syncope.core.persistence.api.dao.GroupDAO groupDAO
    • Constructor Detail

      • TemplateUtils

        public TemplateUtils​(org.apache.syncope.core.persistence.api.dao.UserDAO userDAO,
                             org.apache.syncope.core.persistence.api.dao.GroupDAO groupDAO)
    • Method Detail

      • evaluateAttr

        protected static org.apache.syncope.common.lib.Attr evaluateAttr​(org.apache.syncope.common.lib.Attr template,
                                                                         org.apache.commons.jexl3.MapContext jexlContext)
      • fill

        protected static void fill​(org.apache.syncope.common.lib.RealmMember realmMember,
                                   org.apache.syncope.common.lib.RealmMember template)
      • fillRelationships

        protected static void fillRelationships​(org.apache.syncope.common.lib.to.GroupableRelatableTO any,
                                                org.apache.syncope.common.lib.to.GroupableRelatableTO template)
      • fillMemberships

        protected static void fillMemberships​(org.apache.syncope.common.lib.to.GroupableRelatableTO any,
                                              org.apache.syncope.common.lib.to.GroupableRelatableTO template)
      • apply

        @Transactional(readOnly=true)
        public void apply​(org.apache.syncope.common.lib.RealmMember realmMember,
                          Optional<? extends org.apache.syncope.core.persistence.api.entity.AnyTemplate> template)
      • apply

        @Transactional(readOnly=true)
        public void apply​(org.apache.syncope.common.lib.RealmMember realmMember,
                          org.apache.syncope.common.lib.to.AnyTO template)
      • check

        public static void check​(Map<String,​org.apache.syncope.common.lib.to.AnyTO> templates,
                                 org.apache.syncope.common.lib.types.ClientExceptionType clientExceptionType)