public dtoDisplayRepositoryItem(dtoRepositoryItem item)
     : base(item)
 {
     Permissions = new ItemPermission();
     Children    = new List <dtoDisplayRepositoryItem>();
     Identifier  = new dtoItemIdentifier();
 }
 public dtoDisplayRepositoryItem(dtoRepositoryItem item, Int32 idPerson, liteRepositorySettings settings, ModuleRepository modulePermissions, Boolean forAdmin = false, Boolean hasAssignments = false)
     : base(item)
 {
     IsUserAvailable = forAdmin || hasAssignments;
     Children        = new List <dtoDisplayRepositoryItem>();
     Permissions     = CreatePermission(item, idPerson, settings, modulePermissions, forAdmin);
     Identifier      = new dtoItemIdentifier();
 }
예제 #3
0
        public object Clone()
        {
            dtoItemIdentifier clone = new dtoItemIdentifier();

            clone.IdModule   = IdModule;
            clone.ModuleCode = ModuleCode;
            clone.IdObject   = IdObjectType;
            clone.IdTag      = IdTag;
            clone.Tag        = Tag;
            clone.Type       = Type;
            clone.FolderType = FolderType;
            return(clone);
        }