Interfaces that support custom AccessTypes and AssetTypes

This section describes the SMAPI interfaces that support creating and managing custom AccessType and AssetType security objects. AccessType and AssetType security objects do not have a DN, so their names must be unique throughout the security system.

Table 5-6 list the AssetTypeManagementHome interface methods and the permissions required to run them.

Table 5-6: AssetTypeManagementHome interface

Method

Permission required

create(java.util.Map)

WRITE on the AccessAssetTypeCtrlAsset controlling asset in the domain that contains the organization in which this AssetType is being created.

findByPrimaryKey(String)

READ on the AccessAssetTypeCtrlAsset controlling asset.

findByName(String)

READ on the AccessAssetTypeCtrlAsset controlling asset.

Table 5-7 lists the AssetTypeManagementQueries interface method and the permission required to run it.

Table 5-7: AssetTypeManagementQueries interface

Method

Permission required

listInforByConditions(SearchInfo[], Integer)

LIST on the controlling assets of the AssetTypes returned.

Table 5-8 lists the AssetTypeManagement interface methods and the permissions required to run them.

Table 5-8: AssetTypeManagement interface

Method

Permission required

getAccessTypes()

None.

setAccessTypes(String[])

UPDATE on the AssetType’s controlling asset.

removeAccessTypes(String[])

UPDATE on the AssetType’s controlling asset.

setName()

UPDATE on the AssetType’s controlling asset.

setSecurityDomain(String)

DELETE on the AssetType’s controlling asset in the existing domain, and WRITE on the AccessAssetTypeCtrlAsset controlling asset in the new domain.

getSecurityDomain()

None.

getDescription()

None.

setDescription(String)

UPDATE on the AssetType’s controlling asset.

getInfo()

None.

setInfo(Map)

UPDATE on the AssetType’s controlling asset.

getControllingAsset()

None.

Table 5-9 lists the AccessTypeManagementHome interface methods and the permissions required to run them.

Table 5-9: AccessTypeManagementHome interface

Method

Permission required

create(java.util.Map)

WRITE on the AccessType’s controlling asset in the domain that contains the organization in which this AccessType is being created.

findByPrimaryKey(String)

READ on the AccessType’s controlling asset.

findByName(String)

READ on the AccessType’s controlling asset.

Table 5-10 lists the AccessTypeManagementQueries interface method and the permission required to run it.

Table 5-10: AccessTypeManagementQueries interface

Method

Permission required

listInforByConditions(SearchInfo[], Integer)

LIST on the controlling assets of the AccessTypes returned.

Table 5-11 lists the AccessTypeManagement interface methods and the permissions required to run them.

Table 5-11: AccessTypeManagement interface

Method

Permission required

setName()

UPDATE on the AccessType’s controlling asset.

setSecurityDomain(String)

DELETE on the AccessType’s controlling asset in the existing domain, and WRITE on the AccessAssetTypeCtrlAsset controlling asset in the new domain.

getSecurityDomain()

None.

getDescription()

None.

setDescription(String)

UPDATE on the AccessAssetTypeCtrlAsset controlling asset.

getInfo()

None.

setInfo(Map)

UPDATE on the AccessType’s controlling asset.

getControllingAsset()

None.