//--------------------------------------------------------------------------------------------------------------------- public XmlServiceParameterSet(IfyContext context, ScriptBasedService service) : base(context, service) { this.Service = service; }
//--------------------------------------------------------------------------------------------------------------------- /// <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)); }
//--------------------------------------------------------------------------------------------------------------------- /// <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; }
//--------------------------------------------------------------------------------------------------------------------- /// <summary>Creates a new Domain instance.</summary> /// <param name="context">The execution environment context.</param> public Domain(IfyContext context) : base(context) { }
//--------------------------------------------------------------------------------------------------------------------- /// <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(); }
//--------------------------------------------------------------------------------------------------------------------- /// <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)); }
//--------------------------------------------------------------------------------------------------------------------- /// <summary>Creates a new Image instance.</summary> /*! * /// <param name="context">The execution environment context.</param> */ public Image(IfyContext context) : base(context) { }
public VirtualEntity(IfyContext context) { this.context = context; }
//--------------------------------------------------------------------------------------------------------------------- /// <summary>Creates a new User instance.</summary> /*! * /// <param name="context">the execution environment context</param> */ public OpenIdProvider(IfyContext context) : base(context) { }
public SchedulerRunConfiguration(IfyContext context) : base(context) { }
//--------------------------------------------------------------------------------------------------------------------- public DataDrivenRunConfiguration(IfyContext context) : base(context) { this.MinFiles = 1; this.MaxFiles = 1; }
//--------------------------------------------------------------------------------------------------------------------- public TimeDrivenRunConfiguration(IfyContext context) : base(context) { }
//--------------------------------------------------------------------------------------------------------------------- /// <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)); }
//--------------------------------------------------------------------------------------------------------------------- /// <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)); }
//--------------------------------------------------------------------------------------------------------------------- /// <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)); }
public DomainCollection(IfyContext context) : base(context) { this.entityType = GetEntityStructure(); this.UseNormalSelection = false; }
/// <summary>Creates a new Activity instance.</summary> /// <param name="context">The execution environment context.</param> public Activity(IfyContext context) : base(context) { }
//--------------------------------------------------------------------------------------------------------------------- /// <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)); }
/// <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()) { }
//--------------------------------------------------------------------------------------------------------------------- /// <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)); }
/*****************************************************************************************************************/ /// <summary>Creates a new DBCookie instance.</summary> /// <param name="context">The execution environment context.</param> public DBCookie(IfyContext context) { this.Context = context; }
//--------------------------------------------------------------------------------------------------------------------- public static bool DoesUserExist(IfyContext context, string username, AuthenticationType authenticationType) { return(GetUserId(context, username, authenticationType) != 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) { }
//--------------------------------------------------------------------------------------------------------------------- /// <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)); }
//--------------------------------------------------------------------------------------------------------------------- public Mailer(IfyContext context) { this.context = context; }