|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SecurityFactory
Provides methods to create data security profiles and business security profiles.
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)
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
DataSecurityProfile createDataSecurityProfile()
DataSecurityProfile
object that represents a data security profileSecurityProfile
,
DataSecurityProfile
RowRestriction createRowRestriction(java.lang.String table, java.lang.String whereClause)
table
- The name of the restricted tablewhereClause
- The WHERE clause of the restriction
RowRestriction
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 pathConnectionMapping
BusinessSecurityProfile createBusinessSecurityProfile()
BusinessSecurityProfile
object that represents a business security profileSecurityProfile
,
BusinessSecurityProfile
Principal createPrincipal()
Principal
object that represents a principalSecurityProfile
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |