public interface ApplicationElementOperations
Modifier and Type | Method and Description |
---|---|
ApplicationAttribute |
createAttribute()
(5001)
Create a new application attribute on the server.
|
InstanceElement |
createInstance(java.lang.String ieName)
(5002)
Create an instance of the application element.
|
InstanceElement[] |
createInstances(NameValueSeqUnit[] attributes,
ApplicationRelationInstanceElementSeq[] relatedInstances)
(5033)
Create a list with instances.
|
ApplicationElement[] |
getAllRelatedElements()
(5003)
Get a list of all related application elements connected to this
application element.
|
ApplicationRelation[] |
getAllRelations()
(5004)
Get a list of all application relations connected to this
application element.
|
ApplicationStructure |
getApplicationStructure()
(5032)
Get the application model to which the application element belongs
by returning an object with the interface ApplicationStructure.
|
ApplicationAttribute |
getAttributeByBaseName(java.lang.String baName)
(5005)
Get the application attribute of an application element which is
inherited from the base attribute with the given name.
|
ApplicationAttribute |
getAttributeByName(java.lang.String aaName)
(5006)
Get the application attribute of an application element which has
the given name.
|
ApplicationAttribute[] |
getAttributes(java.lang.String aaPattern)
(5007)
Get a list of the application attributes of an application element.
|
BaseElement |
getBaseElement()
(5008)
Get the base element of an application element.
|
T_LONGLONG |
getId()
(5009)
Get the Id of an application element.
|
ApplicationRelation[] |
getInitialRightRelations()
(5029)
Get all relations which are used to retrieve the instances to create
the initial rights of the new created instance element.
|
InitialRight[] |
getInitialRights()
(5026)
Retrieve access control list information for the initial rights of
the given object.
|
InstanceElement |
getInstanceById(T_LONGLONG ieId)
(5010)
Get the instance element specified by the given Id.
|
InstanceElement |
getInstanceByName(java.lang.String ieName)
(5011)
Get the instance element specified by the given name.
|
InstanceElementIterator |
getInstances(java.lang.String iePattern)
(5012)
Get the instances whose names match with the pattern.
|
java.lang.String |
getName()
(5013)
Get the name of an application element.
|
ApplicationElement[] |
getRelatedElementsByRelationship(Relationship aeRelationship)
(5014)
Get related application elements connected via the specified
relationship.
|
ApplicationRelation[] |
getRelationsByBaseName(java.lang.String baseRelName)
(5034)
Return the application relations derived from the base relation with
the given relation name.
|
ApplicationRelation[] |
getRelationsByType(RelationType aeRelationType)
(5015)
Get application relations of the requested type connected with this
application element.
|
ACL[] |
getRights()
(5025)
Retrieve access control list information of the given object.
|
int |
getSecurityLevel()
(5030)
Get the security level of the application element.
|
java.lang.String[] |
listAllRelatedElements()
(5016)
Get the names of all related application elements.
|
java.lang.String[] |
listAttributes(java.lang.String aaPattern)
(5017)
Get the application attribute names of the application element.
|
NameIterator |
listInstances(java.lang.String aaPattern)
(5018)
Get the names of the instances whose names match with the pattern.
|
java.lang.String[] |
listRelatedElementsByRelationship(Relationship aeRelationship)
(5019)
Get the names of related application elements connected via the
specified relationship.
|
void |
removeAttribute(ApplicationAttribute applAttr)
(5020)
Remove an application attribute from an application element.
|
void |
removeInstance(T_LONGLONG ieId,
boolean recursive)
(5021)
Remove an instance from the application element.
|
void |
setBaseElement(BaseElement baseElem)
(5022)
Set or modify the base element of the application element.
|
void |
setInitialRightRelation(ApplicationRelation applRel,
boolean set)
(5028)
Set for the given application element, which relation will be used
to determine the initial rights for the new created instances.
|
void |
setInitialRights(InstanceElement usergroup,
int rights,
T_LONGLONG refAid,
RightsSet set)
(5027)
The given user group the initial rights should be set for.
|
void |
setName(java.lang.String aeName)
(5023)
Set the name of the application element.
|
void |
setRights(InstanceElement usergroup,
int rights,
RightsSet set)
(5024)
The given user group the rights should be set for.
|
void |
setSecurityLevel(int secLevel,
RightsSet set)
(5031)
Set the security level for the given application element.
|
ApplicationAttribute createAttribute() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_DUPLICATE_NAME
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEInstanceElement createInstance(java.lang.String ieName) throws AoException
ieName
- The instance 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_ACTIVE
AO_TRANSACTION_NOT_ACTIVEApplicationElement[] getAllRelatedElements() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEApplicationRelation[] getAllRelations() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEApplicationAttribute getAttributeByBaseName(java.lang.String baName) throws AoException
baName
- The base attribute 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_ACTIVEApplicationAttribute getAttributeByName(java.lang.String aaName) throws AoException
aaName
- The application attribute 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_ACTIVEApplicationAttribute[] getAttributes(java.lang.String aaPattern) throws AoException
aaPattern
- The name or the search pattern for the
application attribute 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_ACTIVEBaseElement getBaseElement() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVET_LONGLONG getId() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEInstanceElement getInstanceById(T_LONGLONG ieId) throws AoException
ieId
- The instance 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_ACTIVEInstanceElement getInstanceByName(java.lang.String ieName) throws AoException
ieName
- The instance element name.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_DUPLICATE_NAME
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEInstanceElementIterator getInstances(java.lang.String iePattern) throws AoException
iePattern
- The name or the search pattern for the instance
element 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_ACTIVEjava.lang.String getName() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEApplicationElement[] getRelatedElementsByRelationship(Relationship aeRelationship) throws AoException
aeRelationship
- The requested relationship.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATIONSHIP
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEApplicationRelation[] getRelationsByType(RelationType aeRelationType) throws AoException
aeRelationType
- The requested relation type.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATION_TYPE
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEjava.lang.String[] listAllRelatedElements() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEjava.lang.String[] listAttributes(java.lang.String aaPattern) throws AoException
aaPattern
- The name or the search pattern for the
application attribute 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_ACTIVENameIterator listInstances(java.lang.String aaPattern) throws AoException
aaPattern
- The name or the search pattern for the
application attribute 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_ACTIVEjava.lang.String[] listRelatedElementsByRelationship(Relationship aeRelationship) throws AoException
aeRelationship
- The requested relationship.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_INVALID_RELATIONSHIP
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid removeAttribute(ApplicationAttribute applAttr) throws AoException
applAttr
- The application attribute to remove.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_FOUND
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEvoid removeInstance(T_LONGLONG ieId, boolean recursive) throws AoException
ieId
- The instance Id.recursive
- The recursive flag.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_HAS_REFERENCES
AO_IMPLEMENTATION_PROBLEM
AO_NOT_FOUND
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEvoid setBaseElement(BaseElement baseElem) throws AoException
baseElem
- The base element.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_HAS_INSTANCES
AO_HAS_REFERENCES
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEvoid setName(java.lang.String aeName) throws AoException
aeName
- The application element name.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_DUPLICATE_NAME
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEvoid setRights(InstanceElement usergroup, int rights, RightsSet set) throws AoException
usergroup
- The user group for which the rights will be
modified.rights
- The new right 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_ACTIVE
AO_TRANSACTION_NOT_ACTIVEACL[] getRights() throws AoException
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[] getInitialRights() throws AoException
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 setInitialRights(InstanceElement usergroup, int rights, T_LONGLONG refAid, RightsSet set) throws AoException
usergroup
- The user group for which the initial rights will
be modified.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 had to be done in an
interface.refAid
- The Id of referencing application element to which
the initial rights will be applied. 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_ACTIVEvoid setInitialRightRelation(ApplicationRelation applRel, boolean set) throws AoException
applRel
- The application relation which will be used to
determine the initial rights. The relation range of
the application relation must be [1:1] otherwise
the server can not find an unique instance element
to retrieve the initial rights.set
- Set or remove the relation for the initial rights. If
this parameter is true the relation will be set
otherwise removed.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_ACTIVEApplicationRelation[] getInitialRightRelations() throws AoException
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_ACTIVEint getSecurityLevel() throws AoException
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 setSecurityLevel(int secLevel, RightsSet set) throws AoException
secLevel
- The new security level. The security level
constants are defined in the interface
SecurityLevel. 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 security level.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_ACTIVEApplicationStructure getApplicationStructure() throws AoException
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_ACTIVEInstanceElement[] createInstances(NameValueSeqUnit[] attributes, ApplicationRelationInstanceElementSeq[] relatedInstances) throws AoException
attributes
- The attributes of the new created instances.relatedInstances
- The list with related instances for
different application relations.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_ACTIVEApplicationRelation[] getRelationsByBaseName(java.lang.String baseRelName) throws AoException
baseRelName
- The name of the base relation.AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE