Exemple #1
0
        //---------------------------------------------------------------------------------------------------------------------

        public XmlServiceParameterSet(IfyContext context, ScriptBasedService service) : base(context, service)
        {
            this.Service = service;
        }
Exemple #2
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Returns the existing user with the specified username or creates that user with default account settings.</summary>
        /// <param name="context">The execution environment context.</param>
        /// <param name="username">The username.</param>
        /// <returns>The User instance. New users are not stored in the database, this must be done by the calling code.</returns>
        public static User GetOrCreate(IfyContext context, string username)
        {
            return(GetOrCreate(context, username, null));
        }
Exemple #3
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new Article instance.</summary>
        /// <param name="context">The execution environment context.</param>
        public Article(IfyContext context) : base(context)
        {
            this.Time = DateTime.UtcNow;
        }
Exemple #4
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new Domain instance.</summary>
        /// <param name="context">The execution environment context.</param>
        public Domain(IfyContext context) : base(context)
        {
        }
Exemple #5
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new User instance.</summary>
        /// <param name="context">The execution environment context.</param>
        public User(IfyContext context) : base(context)
        {
        }
 public RemoteResourceEntityCollection(IfyContext context) : base(context)
 {
 }
        //---------------------------------------------------------------------------------------------------------------------

        public RemoteResourceSet(IfyContext context) : base(context)
        {
            ose = new OpenSearchEngine();
        }
Exemple #8
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new User instance.</summary>

        /*!
         * /// <param name="context">the execution environment context</param>
         * /// <returns>the created User object</returns>
         */
        public static new OpenIdProvider GetInstance(IfyContext context)
        {
            return(new OpenIdProvider(context));
        }
Exemple #9
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new Image instance.</summary>

        /*!
         * /// <param name="context">The execution environment context.</param>
         */
        public Image(IfyContext context) : base(context)
        {
        }
Exemple #10
0
 public VirtualEntity(IfyContext context)
 {
     this.context = context;
 }
Exemple #11
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new User instance.</summary>

        /*!
         * /// <param name="context">the execution environment context</param>
         */
        public OpenIdProvider(IfyContext context) : base(context)
        {
        }
Exemple #12
0
 public SchedulerRunConfiguration(IfyContext context) : base(context)
 {
 }
Exemple #13
0
        //---------------------------------------------------------------------------------------------------------------------

        public DataDrivenRunConfiguration(IfyContext context) : base(context)
        {
            this.MinFiles = 1;
            this.MaxFiles = 1;
        }
Exemple #14
0
        //---------------------------------------------------------------------------------------------------------------------

        public TimeDrivenRunConfiguration(IfyContext context) : base(context)
        {
        }
Exemple #15
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Returns a new GenericComputingResource instance.</summary>
        /// <param name="context">The execution environment context.</param>
        /// <returns>the created GenericComputingResource object</returns>
        /// <remarks>Since ComputingResource is abstract, an instance of GenericComputingResource is returned. This subclass provides only the functionality inherited from the superclasses of ComputingResource (e.g. Entity) but no functionality of a real computing resource.</remarks>
        public static ComputingResource GetInstance(IfyContext context)
        {
            return(new GenericComputingResource(context));
        }
Exemple #16
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new Image instance.</summary>

        /*!
         * /// <param name="context">The execution environment context.</param>
         * /// <returns>the created Image object</returns>
         */
        public static Image GetInstance(IfyContext context)
        {
            return(new Image(context));
        }
Exemple #17
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new GenericComputingResource instance.</summary>
        /// <param name="context">The execution environment context.</param>
        public GenericComputingResource(IfyContext context) : base(context)
        {
        }
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new Configuration instance.</summary>

        /*!
         * /// <param name="context">The execution environment context.</param>
         */
        public Configuration(IfyContext context) : base(context)
        {
        }
        //---------------------------------------------------------------------------------------------------------------------

        public RemoteResource(IfyContext context) : base(context)
        {
        }
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new Configuration instance.</summary>
        /// \ingroup Context

        /*!
         * /// <param name="context">The execution environment context.</param>
         * /// <returns>the created Configuration object</returns>
         */
        public static Configuration GetInstance(IfyContext context)
        {
            return(new Configuration(context));
        }
Exemple #21
0
 public DomainCollection(IfyContext context) : base(context)
 {
     this.entityType         = GetEntityStructure();
     this.UseNormalSelection = false;
 }
Exemple #22
0
 /// <summary>Creates a new Activity instance.</summary>
 /// <param name="context">The execution environment context.</param>
 public Activity(IfyContext context) : base(context)
 {
 }
Exemple #23
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new Domain instance.</summary>
        /// <param name="context">The execution environment context.</param>
        /// <returns>The created Domain object.</returns>
        public static Domain GetInstance(IfyContext context)
        {
            return(new Domain(context));
        }
Exemple #24
0
 /// <summary>Creates a new Activity instance.</summary>
 /// <param name="context">The execution environment context.</param>
 /// <param name="entity">The entity to which the activity relates.</param>
 /// <param name="operation">The operation performed on the entity.</param>
 public Activity(IfyContext context, Entity entity, EntityOperationType operation) : this(context, entity, ((char)operation).ToString())
 {
 }
Exemple #25
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new User instance.</summary>
        /// \ingroup Authorisation
        /// <param name="context">The execution environment context.</param>
        /// <returns>The created User object.</returns>
        public static User GetInstance(IfyContext context)
        {
            EntityType entityType = EntityType.GetEntityType(typeof(User));

            return((User)entityType.GetEntityInstance(context));
        }
Exemple #26
0
        /*****************************************************************************************************************/

        /// <summary>Creates a new DBCookie instance.</summary>
        /// <param name="context">The execution environment context.</param>
        public DBCookie(IfyContext context)
        {
            this.Context = context;
        }
Exemple #27
0
        //---------------------------------------------------------------------------------------------------------------------

        public static bool DoesUserExist(IfyContext context, string username, AuthenticationType authenticationType)
        {
            return(GetUserId(context, username, authenticationType) != 0);
        }
Exemple #28
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Terradue.Portal.Features"/> class.
 /// </summary>
 /// <param name="context">Context.</param>
 public Feature(IfyContext context) : base(context)
 {
 }
Exemple #29
0
        //---------------------------------------------------------------------------------------------------------------------

        /// <summary>Creates a new Article instance.</summary>
        /// <param name="context">The execution environment context.</param>
        /// <returns>the created article object</returns>
        public static Article GetInstance(IfyContext context)
        {
            return(new Article(context));
        }
Exemple #30
0
        //---------------------------------------------------------------------------------------------------------------------

        public Mailer(IfyContext context)
        {
            this.context = context;
        }