public interface ApplElemAccessOperations
Modifier and Type | Method and Description |
---|---|
void |
deleteInstances(T_LONGLONG aid,
T_LONGLONG[] instIds)
(24006)
Delete instances from an application element.
|
ACL[] |
getAttributeRights(T_LONGLONG aid,
java.lang.String attrName)
(24011)
Retrieve access control list information for the given application
attribute
|
InitialRight[] |
getElementInitialRights(T_LONGLONG aid)
(24018)
Retrieve access control list information of the initial rights for
the requested application element
|
ACL[] |
getElementRights(T_LONGLONG aid)
(24012)
Retrieve access control list information for the requested
application element
|
java.lang.String[] |
getInitialRightReference(T_LONGLONG aid)
(24017)
Get all attribute names (references) which are used to retrieve the
Initial Rights.
|
InitialRight[] |
getInstanceInitialRights(T_LONGLONG aid,
T_LONGLONG iid)
(24019)
Retrieve access control list information of the initial rights for
the requested instance
|
ACL[] |
getInstanceRights(T_LONGLONG aid,
T_LONGLONG iid)
(24013)
Retrieve access control list information for the requested instance
|
ElemResultSet[] |
getInstances(QueryStructure aoq,
int how_many)
(24001)
Perform the Query.
|
ResultSetExt[] |
getInstancesExt(QueryStructureExt aoq,
int how_many)
(24020)
Perform the Query.
|
ODSFile |
getODSFile(ElemId elem)
(24022)
Get the ODSFile interface for an instance of an application element
derived from AoFile.
|
T_LONGLONG[] |
getRelInst(ElemId elem,
java.lang.String relName)
(24002)
Get related instances (Id).
|
ValueMatrix |
getValueMatrix(ElemId elem)
(24007)
Get the value matrix of a measurement or a submatrix.
|
ValueMatrix |
getValueMatrixInMode(ElemId elem,
ValueMatrixMode vmMode)
(24021)
Get the value matrix of a measurement or a submatrix.
|
ElemId[] |
insertInstances(AIDNameValueSeqUnitId[] val)
(24004)
Create instance elements of an application element.
|
void |
setAttributeRights(T_LONGLONG aid,
java.lang.String attrName,
T_LONGLONG usergroupId,
int rights,
RightsSet set)
(24008)
Set the ACL information on some application element-attribute
defined by
|
void |
setElementInitialRights(T_LONGLONG aid,
T_LONGLONG usergroupId,
int rights,
T_LONGLONG refAid,
RightsSet set)
(24014)
Set the access control list information for the initial rights on
some application element defined by
|
void |
setElementRights(T_LONGLONG aid,
T_LONGLONG usergroupId,
int rights,
RightsSet set)
(24009)
Set the ACL information on some application element defined by
|
void |
setInitialRightReference(T_LONGLONG aid,
java.lang.String refName,
RightsSet set)
(24016)
Set the flag
|
void |
setInstanceInitialRights(T_LONGLONG aid,
T_LONGLONG[] instIds,
T_LONGLONG usergroupId,
int rights,
T_LONGLONG refAid,
RightsSet set)
(24015)
Set the access control list information for the initial rights on
some instance defined by the application element id
|
void |
setInstanceRights(T_LONGLONG aid,
T_LONGLONG[] instIds,
T_LONGLONG usergroupId,
int rights,
RightsSet set)
(24010)
Set the ACL information on some instances defined by the application
element id
|
void |
setRelInst(ElemId elem,
java.lang.String relName,
T_LONGLONG[] instIds,
SetType type)
(24003)
Add a set of instances as related instances to a given instance.
|
void |
updateInstances(AIDNameValueSeqUnitId[] val)
(24005)
Update one or more attributes of one or more instance elements.
|
ElemResultSet[] getInstances(QueryStructure aoq, int how_many) throws AoException
aoq
- The query definition.how_many
- Maximum number of values in each result set. Valid
arguments are:
how_many = 0 : report all found values,
how_many > 0 : report a maximum number of values.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVET_LONGLONG[] getRelInst(ElemId elem, java.lang.String relName) throws AoException
elem
- Original instance.relName
- The relation name.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setRelInst(ElemId elem, java.lang.String relName, T_LONGLONG[] instIds, SetType type) throws AoException
elem
- The instance to add to the given relation.relName
- The name of relation.instIds
- Sequence of instance id's.type
- The type of the modification, insert, update or
remove.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEElemId[] insertInstances(AIDNameValueSeqUnitId[] val) throws AoException
val
- The sequence of attributes and their values.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid updateInstances(AIDNameValueSeqUnitId[] val) throws AoException
val
- The sequence of attributes and their values. At least
one of the attribute values sequence must be a sequence
with the Id.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid deleteInstances(T_LONGLONG aid, T_LONGLONG[] instIds) throws AoException
aid
- The application element Id.instIds
- The sequence of instance Id's.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEValueMatrix getValueMatrix(ElemId elem) throws AoException
elem
- The element id. The aid has to be the application
element Id of the AoMeasurement or AoSubmatrix.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_INVALID_BASETYPEvoid setAttributeRights(T_LONGLONG aid, java.lang.String attrName, T_LONGLONG usergroupId, int rights, RightsSet set) throws AoException
aid
- The Id of the application element.attrName
- The name of the attribute.usergroupId
- The user group to set the rights for.rights
- The new right for the user group.set
- What to do with the new right.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEvoid setElementRights(T_LONGLONG aid, T_LONGLONG usergroupId, int rights, RightsSet set) throws AoException
aid
- The Id of the application element.usergroupId
- The user group to set the rights for.rights
- The new rights for the user group. The rights
constants are defined in the interface
SecurityRights. The interface definition language
IDL does not allow to set the values of enumerations
thus the constant definitions had to be done in an
interface.set
- What to do with the new right.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setInstanceRights(T_LONGLONG aid, T_LONGLONG[] instIds, T_LONGLONG usergroupId, int rights, RightsSet set) throws AoException
aid
- The Id of the application element.instIds
- The sequence of instance Id's.usergroupId
- The user group to set the rights for.rights
- The new right for the user group.set
- What to do with the new right.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEACL[] getAttributeRights(T_LONGLONG aid, java.lang.String attrName) throws AoException
aid
- The Id of the application element.attrName
- The name of the attribute.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEACL[] getElementRights(T_LONGLONG aid) throws AoException
aid
- The Id of the application element.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEACL[] getInstanceRights(T_LONGLONG aid, T_LONGLONG iid) throws AoException
aid
- The Id of the application element.iid
- The Id of the instance.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setElementInitialRights(T_LONGLONG aid, T_LONGLONG usergroupId, int rights, T_LONGLONG refAid, RightsSet set) throws AoException
aid
- The Id of the application element.usergroupId
- The user group to set the initial rights for.rights
- The new initial rights for the user group. The
rights constants are defined in the interface
SecurityRights. The interface definition language
IDL does not allow to set the values of enumerations
thus the constant definitions have to be done in an
interface.refAid
- The Id of referencing application element for which
the initial rights will be used. If no refAid is set
the initial rights will be used for each new
instance element independent of the application
element.set
- What to do with the new initial rights.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setInstanceInitialRights(T_LONGLONG aid, T_LONGLONG[] instIds, T_LONGLONG usergroupId, int rights, T_LONGLONG refAid, RightsSet set) throws AoException
aid
- The Id of the application element.instIds
- The sequence of instance Id's.usergroupId
- The user group to set the initial rights for.rights
- The new initial right for the user group.refAid
- The Id of referencing application element for which
the initial rights will be used. If no refAid is set
the initial rights will be used for each new
instance element independent of the application
element.set
- What to do with the new initial rights.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setInitialRightReference(T_LONGLONG aid, java.lang.String refName, RightsSet set) throws AoException
aid
- The application element Id.refName
- The name of the reference.set
- What to do with the given reference.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEjava.lang.String[] getInitialRightReference(T_LONGLONG aid) throws AoException
aid
- The application element Id.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEInitialRight[] getElementInitialRights(T_LONGLONG aid) throws AoException
aid
- The Id of the application element.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEInitialRight[] getInstanceInitialRights(T_LONGLONG aid, T_LONGLONG iid) throws AoException
aid
- The Id of the application element.iid
- The Id of the instance.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEResultSetExt[] getInstancesExt(QueryStructureExt aoq, int how_many) throws AoException
aoq
- The query definition.how_many
- Maximum number of values in each result set. Valid
arguments are:
how_many = 0 : report all found values,
how_many > 0 : report a maximum number of values.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEValueMatrix getValueMatrixInMode(ElemId elem, ValueMatrixMode vmMode) throws AoException
elem
- The element id. The aid has to be the application
element Id of the AoMeasurement or AoSubmatrix.vmMode
- The requested mode of the value matrix.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_INVALID_BASETYPE
AO_INVALID_VALUEMATRIX_STRUCTUREODSFile getODSFile(ElemId elem) throws AoException
elem
- The instance to which the file belongs, whose access
is intended.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_INVALID_BASETYPE
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_ACCESS_DENIED