Class SecurityWS
- Namespace
- PHCWS
- Assembly
- PHCWS.dll
Access Services (PermissionVO).
[WebService(Namespace = "http://www.phcgo.net/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[DesignerGenerated]
public class SecurityWS : PHCTypedWS<PermissionVO>, IComponent, IDisposable, IServiceProvider
- Inheritance
-
SecurityWS
Methods
CreateNotificationFromComunication()
[WebMethod]
public PHCResult CreateNotificationFromComunication()
Returns
getAudit(string, string)
Knowing who created / changed certain record of a given entity.
[WebMethod]
public PHCResult getAudit(string entityName, string stamp)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
entityName |
string | Identifies the entity. |
stamp |
string | Identifies the record that you want to see, is the value stored in the field that identifies the record as unique in its entity is usually always a field with the subject name and the word 'stamp' at the end. |
Returns
- PHCResult
PHCResult containing three objects or error messages produced by this query process .
.
3 returned objects are:.
.
- FxlogAuditVO containing the creation of the record data.
.
- FxlogAuditVO containing the change log data.
.
- An object with the following properties corresponding to the internal log record.
.
creation:.
- ousrinis, initials of the user who created the record;.
- ousrdata, date of the creation of the record;.
- ousrhora, time of the creation of the record.
.
Last change:.
- usrinis, initials of the user who created the record;.
- usrdata, date of the update of the record;.
- usrhora, time of the update of the record.
getAvailablePermissions(List<PermissionVO>)
Consult all the accesses available for the user
[WebMethod]
public PHCResult getAvailablePermissions(List<PermissionVO> rolePermissions)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
rolePermissions |
List<PermissionVO> |
Returns
getDeletedAudit(string, int)
Know who deleted the records of a particular entity.
[WebMethod]
public PHCResult getDeletedAudit(string entityName, int ndoc)
Parameters
| Nome | Tipo | Descrição |
|---|---|---|
entityName |
string | Identifies the entity. |
ndoc |
int | Identifies the number of the document if this parameter has a value> 0. |
Returns
- PHCResult
-
PHCResult containing a list of FxlogAuditVO with the deleted data from the entity or an error message warning that this option is only available for administrators.
errors.Business.Audit.ViewOnlyForAdministrators.
getMenus()
[WebMethod]
public PHCResult getMenus()
Returns
getRoutes()
[WebMethod]
public PHCResult getRoutes()