public class ApplElemAccess extends ApplElemAccessPOA implements ApplElemAccess
Modifier and Type | Field and Description |
---|---|
protected AoSession |
aosObj
The session where the object belongs to
|
protected long |
cObjPtr
Object pointer used in C (for native use only).
|
protected static java.util.HashMap<java.lang.Long,org.omg.CORBA.Object> |
refCache
HashMap for the reference cache that ensures identical objects.
|
Constructor and Description |
---|
ApplElemAccess() |
ApplElemAccess(long cObjPtr)
The constructor with the ATHOS address pointer.
|
Modifier and Type | Method and Description |
---|---|
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result) |
org.omg.CORBA.Request |
_create_request(org.omg.CORBA.Context ctx,
java.lang.String operation,
org.omg.CORBA.NVList arg_list,
org.omg.CORBA.NamedValue result,
org.omg.CORBA.ExceptionList exclist,
org.omg.CORBA.ContextList ctxlist) |
org.omg.CORBA.Object |
_duplicate() |
org.omg.CORBA.DomainManager[] |
_get_domain_managers() |
org.omg.CORBA.Policy |
_get_policy(int policy_type) |
int |
_hash(int maximum) |
boolean |
_is_equivalent(org.omg.CORBA.Object other) |
void |
_release() |
org.omg.CORBA.Request |
_request(java.lang.String operation) |
org.omg.CORBA.Object |
_set_policy_override(org.omg.CORBA.Policy[] policies,
org.omg.CORBA.SetOverrideType set_add) |
void |
deleteInstances(T_LONGLONG aid,
T_LONGLONG[] instIds)
Delete instances from an application element.
|
protected void |
finalize() |
ACL[] |
getAttributeRights(T_LONGLONG aid,
java.lang.String attrName)
Retrieve access control list information for the given application
attribute 'aid'/'attr_name'.
|
InitialRight[] |
getElementInitialRights(T_LONGLONG aid)
Retrieve access control list information of the initial rights for the
requested applciation element 'aid'.
|
ACL[] |
getElementRights(T_LONGLONG aid)
Retrieve access control list information for the requested applciation
element 'aid'.
|
java.lang.String[] |
getInitialRightReference(T_LONGLONG aid)
Get all attribute names (references) which are used to retrieve the
Initial Rights from.
|
static org.omg.CORBA.Object |
getInstance(long cObjPtr,
AoSession aosObj)
This method is only called from native code.
|
InitialRight[] |
getInstanceInitialRights(T_LONGLONG aid,
T_LONGLONG instId)
Retrieve access control list information of the initial rights for the
requested instance 'aid'/'iid'.
|
ACL[] |
getInstanceRights(T_LONGLONG aid,
T_LONGLONG instId)
Retrieve access control list information for the requested instance
'aid'/'iid'.
|
ElemResultSet[] |
getInstances(QueryStructure aoq,
int how_many)
Perform the Query.
|
ResultSetExt[] |
getInstancesExt(QueryStructureExt aoq,
int how_many)
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)
Get related instances (Id).
|
ValueMatrix |
getValueMatrix(ElemId elem)
Get the value matrix of a measurement or a submatrix.
|
ValueMatrix |
getValueMatrixInMode(ElemId elem,
ValueMatrixMode vmMode)
Get the value matrix of a measurement or a submatrix.
|
ElemId[] |
insertInstances(AIDNameValueSeqUnitId[] val)
Insert instances into application element.
|
void |
setAttributeRights(T_LONGLONG aid,
java.lang.String attrName,
T_LONGLONG usergroupId,
int rights,
RightsSet set)
Set the ACL information on some application element-attribute defined by
'aid' and 'attr_name'.
|
void |
setElementInitialRights(T_LONGLONG aid,
T_LONGLONG usergroupId,
int rights,
T_LONGLONG refAid,
RightsSet set)
Set the access control list information for the initial rights on some
application element defined by 'aid'.
|
void |
setElementRights(T_LONGLONG aid,
T_LONGLONG usergroupId,
int rights,
RightsSet set)
Set the ACL information on some application element defined by 'aid'.
|
void |
setInitialRightReference(T_LONGLONG aid,
java.lang.String refName,
RightsSet set)
Set the flag 'set' in svcattr, if this reference will be used (or not) to
retrieve the Initial Rights.
|
void |
setInstanceInitialRights(T_LONGLONG aid,
T_LONGLONG[] instIds,
T_LONGLONG usergroupId,
int rights,
T_LONGLONG refAid,
RightsSet set)
Set the access control list information for the initial rights on some
instance defined by the application element id 'aid' and a sequence of
instance defined by the id 'iid'.
|
void |
setInstanceRights(T_LONGLONG aid,
T_LONGLONG[] instIds,
T_LONGLONG usergroupId,
int rights,
RightsSet set)
Set the ACL information on some instance defined by the application
element id 'aid' and a sequence of instance defined by the id 'iid'.
|
void |
setRelInst(ElemId elem,
java.lang.String relName,
T_LONGLONG[] instIds,
SetType type)
Set the instance reference.
|
void |
updateInstances(AIDNameValueSeqUnitId[] val)
Update instances in an application element.
|
_all_interfaces, _invoke, _this, _this
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
protected long cObjPtr
protected static java.util.HashMap<java.lang.Long,org.omg.CORBA.Object> refCache
protected AoSession aosObj
public ApplElemAccess()
public ApplElemAccess(long cObjPtr)
cObjPtr
- the ATHOS address pointer,public static org.omg.CORBA.Object getInstance(long cObjPtr, AoSession aosObj)
cObjPtr
- the ATHOS address pointeraosObj
- the Avalon session where the object belongs to.public ElemResultSet[] getInstances(QueryStructure aoq, int how_many) throws AoException
getInstances
in interface ApplElemAccessOperations
aoq
- The query definition.how_many
- Number of values in each result set.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_ACTIVEpublic T_LONGLONG[] getRelInst(ElemId elem, java.lang.String relName) throws AoException
getRelInst
in interface ApplElemAccessOperations
elem
- Original instance. At the protocol level 3 this information
was stored in the field elemId of the structure GetInstRefReq
and the request AOP_GetInstRef.relName
- The relation name. At the protocol level 3 this information
was stored in the field refName of the structure GetInstRefReq
and the request AOP_GetInstRef.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_ACTIVEpublic void setRelInst(ElemId elem, java.lang.String relName, T_LONGLONG[] instIds, SetType type) throws AoException
setRelInst
in interface ApplElemAccessOperations
elem
- The instance to add the related instances. At the protocol
level 3 this information was stored in the field elemId1 of
the structure SetInstRefReq and the request AOP_SetInstRef.relName
- The name of relation. At the protocol level 3 this information
was stored in the field refName of the structure SetInstRefReq
and the request AOP_SetInstRef.instIds
- Sequence of instance id's. At the protocol level 3 this
information was stored in the field elemId2 of the structure
SetInstRefReq and the request AOP_SetInstRef. It was not
possiable to set more then one relation.type
- The type of the modification, insert, update or remove. At the
protocol level 3 this information was stored in the field
onoff of the structure SetInstRefReq and the request
AOP_SetInstRef.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_ACTIVEpublic ElemId[] insertInstances(AIDNameValueSeqUnitId[] val) throws AoException
insertInstances
in interface ApplElemAccessOperations
val
- The sequence of attributes and their values. At the protocol
level 3 this information was stored in the fields elemId and
nvSeq of the structure PutValReq and the request
AOP_PutValReq.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_ACTIVEpublic void updateInstances(AIDNameValueSeqUnitId[] val) throws AoException
updateInstances
in interface ApplElemAccessOperations
val
- The sequence of attributes and their values. At least one of
the attribute values sequence must be a sequence with the Id.
At the protocol level 3 this information was stored in the
fields elemId and nvSeq of the structure PutValReq and the
request AOP_PutValReq.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_ACTIVEpublic void deleteInstances(T_LONGLONG aid, T_LONGLONG[] instIds) throws AoException
deleteInstances
in interface ApplElemAccessOperations
aid
- The application element Id.instIds
- The sequence of instance Id's. At the protocol level 3 this
information was stored in the fields elemId and nvSeq of the
structure PutValReq and the request AOP_PutValReq.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_ACTIVEpublic ValueMatrix getValueMatrix(ElemId elem) throws AoException
getValueMatrix
in interface ApplElemAccessOperations
elem
- The element id. The aid has to be the appliction element Id of
the measurment or submatrix.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_ACTIVE AO_INVALID_BASETYPEpublic void setAttributeRights(T_LONGLONG aid, java.lang.String attrName, T_LONGLONG usergroupId, int rights, RightsSet set) throws AoException
setAttributeRights
in interface ApplElemAccessOperations
aid
- The Id of the application element.attrName
- The name of the attribute.usergroupId
- The usergroup to set the rights for.rights
- The new right for the usergroup.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_ACTIVEpublic void setElementRights(T_LONGLONG aid, T_LONGLONG usergroupId, int rights, RightsSet set) throws AoException
setElementRights
in interface ApplElemAccessOperations
aid
- The Id of the application element.usergroupId
- The usergroup to set the rights for.rights
- The new rights for the usergroup. 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_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic void setInstanceRights(T_LONGLONG aid, T_LONGLONG[] instIds, T_LONGLONG usergroupId, int rights, RightsSet set) throws AoException
setInstanceRights
in interface ApplElemAccessOperations
aid
- The Id of the application element.instIds
- The sequence of instance Id's.usergroupId
- The usergroup to set the rights for.rights
- The new right for the usergroup.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_ACTIVEpublic ACL[] getAttributeRights(T_LONGLONG aid, java.lang.String attrName) throws AoException
getAttributeRights
in interface ApplElemAccessOperations
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_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic ACL[] getElementRights(T_LONGLONG aid) throws AoException
getElementRights
in interface ApplElemAccessOperations
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_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic ACL[] getInstanceRights(T_LONGLONG aid, T_LONGLONG instId) throws AoException
getInstanceRights
in interface ApplElemAccessOperations
aid
- The Id of the application element.instId
- 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_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic void setElementInitialRights(T_LONGLONG aid, T_LONGLONG usergroupId, int rights, T_LONGLONG refAid, RightsSet set) throws AoException
setElementInitialRights
in interface ApplElemAccessOperations
aid
- The Id of the application element.usergroupId
- The usergroup to set the initial rights for.rights
- The new initial rights for the usergroup. 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.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_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic void setInstanceInitialRights(T_LONGLONG aid, T_LONGLONG[] instIds, T_LONGLONG usergroupId, int rights, T_LONGLONG refAid, RightsSet set) throws AoException
setInstanceInitialRights
in interface ApplElemAccessOperations
aid
- The Id of the application element.instIds
- The sequence of instance Id's.usergroupId
- The usergroup to set the initial rights for.rights
- The new initial right for the usergroup.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_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic void setInitialRightReference(T_LONGLONG aid, java.lang.String refName, RightsSet set) throws AoException
setInitialRightReference
in interface ApplElemAccessOperations
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_ACTIVEpublic java.lang.String[] getInitialRightReference(T_LONGLONG aid) throws AoException
getInitialRightReference
in interface ApplElemAccessOperations
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_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic InitialRight[] getElementInitialRights(T_LONGLONG aid) throws AoException
getElementInitialRights
in interface ApplElemAccessOperations
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_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic InitialRight[] getInstanceInitialRights(T_LONGLONG aid, T_LONGLONG instId) throws AoException
getInstanceInitialRights
in interface ApplElemAccessOperations
aid
- The Id of the application element.instId
- 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_ACTIVE
AO_TRANSACTION_NOT_ACTIVEpublic ResultSetExt[] getInstancesExt(QueryStructureExt aoq, int how_many) throws AoException
getInstancesExt
in interface ApplElemAccessOperations
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_ACTIVEpublic ValueMatrix getValueMatrixInMode(ElemId elem, ValueMatrixMode vmMode) throws AoException
getValueMatrixInMode
in interface ApplElemAccessOperations
elem
- The element id. The aid has to be the application element Id
of the measurement or sub matrix.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_STRUCTUREpublic ODSFile getODSFile(ElemId elem) throws AoException
getODSFile
in interface ApplElemAccessOperations
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_DENIEDprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx, java.lang.String operation, org.omg.CORBA.NVList arg_list, org.omg.CORBA.NamedValue result)
_create_request
in interface org.omg.CORBA.Object
public org.omg.CORBA.Request _create_request(org.omg.CORBA.Context ctx, java.lang.String operation, org.omg.CORBA.NVList arg_list, org.omg.CORBA.NamedValue result, org.omg.CORBA.ExceptionList exclist, org.omg.CORBA.ContextList ctxlist)
_create_request
in interface org.omg.CORBA.Object
public org.omg.CORBA.Object _duplicate()
_duplicate
in interface org.omg.CORBA.Object
public org.omg.CORBA.DomainManager[] _get_domain_managers()
_get_domain_managers
in interface org.omg.CORBA.Object
public org.omg.CORBA.Policy _get_policy(int policy_type)
_get_policy
in interface org.omg.CORBA.Object
public int _hash(int maximum)
_hash
in interface org.omg.CORBA.Object
public boolean _is_equivalent(org.omg.CORBA.Object other)
_is_equivalent
in interface org.omg.CORBA.Object
public void _release()
_release
in interface org.omg.CORBA.Object
public org.omg.CORBA.Request _request(java.lang.String operation)
_request
in interface org.omg.CORBA.Object
public org.omg.CORBA.Object _set_policy_override(org.omg.CORBA.Policy[] policies, org.omg.CORBA.SetOverrideType set_add)
_set_policy_override
in interface org.omg.CORBA.Object