Beispiel #1
0
        //public virtual IList<VersionPermission> ActivePermissions { get; set; }

        public liteTemplateDefinition()
        {
            Type      = TemplateType.None;
            IsEnabled = true;
            OwnerInfo = new TemplateOwner();
            Versions  = new List <liteTemplateDefinitionVersion>();
        }
        //public virtual IList<VersionPermission> ActivePermissions { get; set; }

        public TemplateDefinition()
        {
            Type      = TemplateType.None;
            IsEnabled = true;
            OwnerInfo = new TemplateOwner();
            Versions  = new List <TemplateDefinitionVersion>();
            //ActivePermissions = new List<VersionPermission>();
        }
Beispiel #3
0
 public dtoBaseTemplateOwner(TemplateOwner info)
 {
     IsPortal    = info.IsPortal;
     IdCommunity = (info.Community == null) ? 0 : info.Community.Id;
     IdModule    = info.IdModule;
     ModuleCode  = info.ModuleCode;
     Type        = info.Type;
     IdPerson    = (info.Person == null) ? 0 : info.Person.Id;
     if (info.ModuleObject != null)
     {
         IdObject          = info.ModuleObject.ObjectLongID;
         IdObjectType      = info.ModuleObject.ObjectTypeID;
         IdObjectModule    = info.ModuleObject.ServiceID;
         IdObjectCommunity = info.ModuleObject.CommunityID;
     }
 }