public class ApplicationElement extends java.lang.Object implements ApplicationElement
Modifier and Type | Field and Description |
---|---|
protected long |
cObjPtr |
Constructor and Description |
---|
ApplicationElement() |
ApplicationElement(long cObjPtr) |
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.Object |
_get_interface_def() |
org.omg.CORBA.Policy |
_get_policy(int policy_type) |
int |
_hash(int maximum) |
boolean |
_is_a(java.lang.String repositoryIdentifier) |
boolean |
_is_equivalent(org.omg.CORBA.Object other) |
boolean |
_non_existent() |
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) |
ApplicationAttribute |
createAttribute()
Create a new application attribute on the server.
|
InstanceElement |
createInstance(java.lang.String ieName)
Create an instance of the application element.
|
InstanceElement[] |
createInstances(NameValueSeqUnit[] attributes,
ApplicationRelationInstanceElementSeq[] relatedInstances)
Create a list with instances.
|
boolean |
equals(java.lang.Object obj) |
protected void |
finalize() |
ApplicationElement[] |
getAllRelatedElements()
Get a list of all related application elements connected
to this application element.
|
ApplicationRelation[] |
getAllRelations()
Get a list of all application relations connected to this
application element.
|
ApplicationStructure |
getApplicationStructure()
Get the application structure to which the application
element belongs.
|
ApplicationAttribute |
getAttributeByBaseName(java.lang.String baName)
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)
Get the application attribute of an application element
which has the given name.
|
ApplicationAttribute[] |
getAttributes(java.lang.String aaPattern)
Get a list of the application attributes of an application
element.
|
BaseElement |
getBaseElement()
Get the base element of an application element.
|
T_LONGLONG |
getId()
Get the Id of an application element.
|
ApplicationRelation[] |
getInitialRightRelations()
Get all relations which are used to retrieve the instances
to create the initial rights of the new created instance
element.
|
InitialRight[] |
getInitialRights()
Retrieve access control list information for the initial
rights of the given object.
|
InstanceElement |
getInstanceById(T_LONGLONG ieId)
Get the instance element specified by the given Id.
|
InstanceElement |
getInstanceByName(java.lang.String ieName)
Get the instance element specified by the given name.
|
InstanceElementIterator |
getInstances(java.lang.String iePattern)
Get the instances whose names match the pattern.
|
java.lang.String |
getName()
Get the name of an application element.
|
ApplicationElement[] |
getRelatedElementsByRelationship(Relationship aeRelationship)
Get related application elements connected via the
specified relationship.
|
ApplicationRelation[] |
getRelationsByBaseName(java.lang.String brName)
Return the basic application relations derived from the base relation
with the givewn name.
|
ApplicationRelation[] |
getRelationsByType(RelationType aeRelationType)
Get application relations of the requested type connected
from this application element.
|
ACL[] |
getRights()
Retrieve access control list information of the given
object.
|
int |
getSecurityLevel()
Get the security level of the application element.
|
java.lang.String[] |
listAllRelatedElements()
Get the names of all related application elements.
|
java.lang.String[] |
listAttributes(java.lang.String aaPattern)
Get the application attribute names of the application
element.
|
NameIterator |
listInstances(java.lang.String aaPattern)
Get the names of the instances whose names match the
pattern.
|
java.lang.String[] |
listRelatedElementsByRelationship(Relationship aeRelationship)
Get the names of related application elements connected
via the specified relationship.
|
void |
removeAttribute(ApplicationAttribute applAttr)
Remove an application attribute from an application
element.
|
void |
removeInstance(T_LONGLONG ieId,
boolean recursive)
Remove an instance from the application element.
|
void |
setBaseElement(BaseElement baseElem)
Set the base element of the application element.
|
void |
setInitialRightRelation(ApplicationRelation applRel,
boolean set)
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)
The given usergroup the initial rights should be set for.
|
void |
setName(java.lang.String aeName)
Set the name of the application element.
|
void |
setRights(InstanceElement usergroup,
int rights,
RightsSet set)
The given usergroup the rights should be set for.
|
void |
setSecurityLevel(int secLevel,
RightsSet set)
Set the security level for the given application element.
|
public ApplicationElement()
public ApplicationElement(long cObjPtr)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public ApplicationAttribute createAttribute() throws AoException
createAttribute
in interface ApplicationElementOperations
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_ACTIVEpublic InstanceElement createInstance(java.lang.String ieName) throws AoException
createInstance
in interface ApplicationElementOperations
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_ACTIVEpublic ApplicationElement[] getAllRelatedElements() throws AoException
getAllRelatedElements
in interface ApplicationElementOperations
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic ApplicationRelation[] getAllRelations() throws AoException
getAllRelations
in interface ApplicationElementOperations
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic ApplicationAttribute getAttributeByBaseName(java.lang.String baName) throws AoException
getAttributeByBaseName
in interface ApplicationElementOperations
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_ACTIVEpublic ApplicationAttribute getAttributeByName(java.lang.String aaName) throws AoException
getAttributeByName
in interface ApplicationElementOperations
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_ACTIVEpublic ApplicationRelation[] getRelationsByBaseName(java.lang.String brName) throws AoException
getRelationsByBaseName
in interface ApplicationElementOperations
brName
- The base relation name.AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic ApplicationAttribute[] getAttributes(java.lang.String aaPattern) throws AoException
getAttributes
in interface ApplicationElementOperations
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_ACTIVEpublic BaseElement getBaseElement() throws AoException
getBaseElement
in interface ApplicationElementOperations
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic T_LONGLONG getId() throws AoException
getId
in interface ApplicationElementOperations
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic InstanceElement getInstanceById(T_LONGLONG ieId) throws AoException
getInstanceById
in interface ApplicationElementOperations
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_ACTIVEpublic InstanceElement getInstanceByName(java.lang.String ieName) throws AoException
getInstanceByName
in interface ApplicationElementOperations
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_ACTIVEpublic InstanceElementIterator getInstances(java.lang.String iePattern) throws AoException
getInstances
in interface ApplicationElementOperations
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_ACTIVEpublic java.lang.String getName() throws AoException
getName
in interface ApplicationElementOperations
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic ApplicationElement[] getRelatedElementsByRelationship(Relationship aeRelationship) throws AoException
getRelatedElementsByRelationship
in interface ApplicationElementOperations
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_ACTIVEpublic ApplicationRelation[] getRelationsByType(RelationType aeRelationType) throws AoException
getRelationsByType
in interface ApplicationElementOperations
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_ACTIVEpublic java.lang.String[] listAllRelatedElements() throws AoException
listAllRelatedElements
in interface ApplicationElementOperations
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEpublic java.lang.String[] listAttributes(java.lang.String aaPattern) throws AoException
listAttributes
in interface ApplicationElementOperations
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_ACTIVEpublic NameIterator listInstances(java.lang.String aaPattern) throws AoException
listInstances
in interface ApplicationElementOperations
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_ACTIVEpublic java.lang.String[] listRelatedElementsByRelationship(Relationship aeRelationship) throws AoException
listRelatedElementsByRelationship
in interface ApplicationElementOperations
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_ACTIVEpublic void removeAttribute(ApplicationAttribute applAttr) throws AoException
removeAttribute
in interface ApplicationElementOperations
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_ACTIVEpublic void removeInstance(T_LONGLONG ieId, boolean recursive) throws AoException
removeInstance
in interface ApplicationElementOperations
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_ACTIVEpublic void setBaseElement(BaseElement baseElem) throws AoException
setBaseElement
in interface ApplicationElementOperations
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_ACTIVEpublic void setName(java.lang.String aeName) throws AoException
setName
in interface ApplicationElementOperations
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_ACTIVEpublic void setRights(InstanceElement usergroup, int rights, RightsSet set) throws AoException
setRights
in interface ApplicationElementOperations
usergroup
- The usergroup for which the rights will
be modified.rights
- The new right 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 ACL[] getRights() throws AoException
getRights
in interface ApplicationElementOperations
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[] getInitialRights() throws AoException
getInitialRights
in interface ApplicationElementOperations
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 setInitialRights(InstanceElement usergroup, int rights, T_LONGLONG refAid, RightsSet set) throws AoException
setInitialRights
in interface ApplicationElementOperations
usergroup
- The usergroup for which the initial
rights will be modified.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 setInitialRightRelation(ApplicationRelation applRel, boolean set) throws AoException
setInitialRightRelation
in interface ApplicationElementOperations
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 will not found 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_ACTIVEpublic ApplicationRelation[] getInitialRightRelations() throws AoException
getInitialRightRelations
in interface ApplicationElementOperations
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 int getSecurityLevel() throws AoException
getSecurityLevel
in interface ApplicationElementOperations
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 setSecurityLevel(int secLevel, RightsSet set) throws AoException
setSecurityLevel
in interface ApplicationElementOperations
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_ACTIVEpublic ApplicationStructure getApplicationStructure() throws AoException
getApplicationStructure
in interface ApplicationElementOperations
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 InstanceElement[] createInstances(NameValueSeqUnit[] attributes, ApplicationRelationInstanceElementSeq[] relatedInstances) throws AoException
createInstances
in interface ApplicationElementOperations
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_ACTIVE
AO_INVALID_REQUESTprotected 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.Object _get_interface_def()
_get_interface_def
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_a(java.lang.String repositoryIdentifier)
_is_a
in interface org.omg.CORBA.Object
public boolean _is_equivalent(org.omg.CORBA.Object other)
_is_equivalent
in interface org.omg.CORBA.Object
public boolean _non_existent()
_non_existent
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