Ejemplo n.º 1
0
 public static Kooboo.CMS.Content.Models.Schema GetSchema(string repositoryId, string typeId)
 {
     var repository = GetRepository(repositoryId);
     var schema = new Kooboo.CMS.Content.Models.Schema(repository, typeId).AsActual();
     if (schema == null)
     {
         throw new FaultException<cmisFaultType>(CreateFault(enumServiceException.objectNotFound, string.Format("No such object type:{0}.".Localize(), typeId)));
     }
     return schema;
 }
Ejemplo n.º 2
0
        public static Kooboo.CMS.Content.Models.Schema GetSchema(string repositoryId, string typeId)
        {
            var repository = GetRepository(repositoryId);
            var schema     = new Kooboo.CMS.Content.Models.Schema(repository, typeId).AsActual();

            if (schema == null)
            {
                throw new FaultException(string.Format("No such object type:{0}.".Localize(), typeId));
            }
            return(schema);
        }
Ejemplo n.º 3
0
 public override void Initialize(Kooboo.CMS.Content.Models.Schema schema)
 {
     base.Initialize(schema);
     schema.CreateIndex();
 }