public interface SecurityFactory
The interface also provides methods to create the "Rows" and "Tables" settings of data security profiles.
You create a SecurityFactory instance by using
SlContext.getService(Class).
| Modifier and Type | Method and Description |
|---|---|
BusinessSecurityProfile |
createBusinessSecurityProfile()
Creates an empty business security profile.
|
ConnectionMapping |
createConnectionMapping(java.lang.String originalConnectionPath,
java.lang.String replacementConnectionPath)
Creates a new connection mapping in the data security profile.
|
DataSecurityProfile |
createDataSecurityProfile()
Creates an empty data security profile.
|
Principal |
createPrincipal()
Creates an empty principal.
|
RowRestriction |
createRowRestriction(java.lang.String table,
java.lang.String whereClause)
Creates a new row restriction in the data security profile.
|
TableMapping |
createTableMapping(java.lang.String originalTable,
java.lang.String replacementTable)
Creates a new table mapping in the data security profile.
|
DataSecurityProfile createDataSecurityProfile()
DataSecurityProfile object that represents a data security profileSecurityProfile,
DataSecurityProfileRowRestriction createRowRestriction(java.lang.String table, java.lang.String whereClause)
table - The name of the restricted tablewhereClause - The WHERE clause of the restrictionRowRestriction object that represents the row restriction created.
It can be modified by setting the table or the WHERE clause.TableMapping createTableMapping(java.lang.String originalTable, java.lang.String replacementTable)
originalTable - The full name of the original table to be mapped. The full name can be obtained by using
DataFoundationService.getTableFullName(String, String, String).replacementTable - The name of the table replacing the original one. No check will be done before use.TableMapping object that maps the original table to the replacement table.
Use DataFoundationService to retrieve the table names.ConnectionMapping createConnectionMapping(java.lang.String originalConnectionPath, java.lang.String replacementConnectionPath)
The connection mapping contains a map that ensures the connection replacement between the universe connections and a list of connections stored in the CMS repository.
originalConnectionPath - The path of the original connection attached to the universe.
You can use the CmsResourceService.getUniverseConnections(String) method
to know the path of the connections attached to the published universe and then to enter the right original connection path.replacementConnectionPath - The path of the replacement connection stored in the CMS
A connection can be replaced only with a connection of the same type:
For multisource-enabled universes, if the replacement connection has not been deployed on the Data Federation Query Server, this is done automatically when the mapping is defined. You can also replace a connection with one that is already used by the universe.
For CMS-specific implementation, specify the Connections root folder, for example:
/Connections/myCmsFolder/Connection or /Connections/Connection if
the file has been stored directly under the root folder.
ConnectionMapping object that maps the original connection path to the replacement connection pathConnectionMappingBusinessSecurityProfile createBusinessSecurityProfile()
BusinessSecurityProfile object that represents a business security profileSecurityProfile,
BusinessSecurityProfilePrincipal createPrincipal()
Principal object that represents a principalSecurityProfile