EventSecurity Class [AX 2012]

The EventSecurity class encapsulates all non-automated security checking for the alerts system.

class EventSecurity

Run On

Called

  MethodDescription
Gg760112.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg760112.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg760112.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg760112.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg760112.pubmethod(en-us,AX.60).gif isConfigurationAccessible Tests whether the central configuration key for alerts is turned on.
Gg760112.pubmethod(en-us,AX.60).gif isEventAccessible Detects whether the user has access to the table that relates to an event.
Gg760112.pubmethod(en-us,AX.60).gif isFieldAccessible Indicates whether the alert field can be accessed by the user.
Gg760112.pubmethod(en-us,AX.60).gif isFilterAccessible Examines whether the user has access to the corresponding table for each QueryBuildDataSource when traversing a Query.
Gg760112.pubmethod(en-us,AX.60).gif isRuleAccessible Examines whether an EventRule record can be accessed by the user.
Gg760112.privmethod(en-us,AX.60).gif isTableAccessible
Gg760112.privmethod(en-us,AX.60).gif isTableFieldAccessible
Gg760112.pubmethod(en-us,AX.60).gif isUserAdmin
Gg760112.privmethod(en-us,AX.60).gif new
Gg760112.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg760112.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg760112.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg760112.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg760112.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg760112.privmethod(en-us,AX.60).gif setUserId
Gg760112.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg760112.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg760112.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg760112.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg760112.pubmethod(en-us,AX.60).gif Gg760112.static(en-us,AX.60).gif ::construct Initializes a new instance of the EventSecurity class.
Top

The class declaration holds a SecurityRights member that is used to hold security information that is not automatically loaded by the system. This is used to load security for a different userId than the current userId.

The following example performs a security check for the current user.

void EventSecurityCurrentUser(Query _query) 
{ 
    EventSecurity EventSecurity; 
 
    EventSecurity = EventSecurity::construct(curuserid()); 
    if (EventSecurity.isFilterAccessible(_query)) 
        info("Current user has access to all tables in query"); 
}

Object Class
  EventSecurity Class

Community Additions

ADD
Show: