com.sap.sl.sdk.authoring.security
Interface SecuredElements


public interface SecuredElements

A representation of the model object 'Secured Elements'.

A SecuredElements object defines the list of business items or business layer views that are granted or denied in a business security profile setting.

The following features are supported:


Method Summary
 SecurityStatus getAllElementsStatus()
          Returns the value of the 'All Elements Status' attribute.
 java.util.List<java.lang.String> getDeniedElements()
          Returns the value of the 'Denied Elements' attribute list.
 java.util.List<java.lang.String> getGrantedElements()
          Returns the value of the 'Granted Elements' attribute list.
 void setAllElementsStatus(SecurityStatus value)
          Sets the value of the 'All Elements Status' attribute.
 

Method Detail

getAllElementsStatus

SecurityStatus getAllElementsStatus()
Returns the value of the 'All Elements Status' attribute. The literals are from the enumeration SecurityStatus.

This is a status indicating whether all elements (business layer views or business items) are added as granted or denied in the "CreateQuery" or "DisplayData" setting of the business security profile.

Returns:
the value of the 'All Elements Status' attribute.
See Also:
SecurityStatus, setAllElementsStatus(SecurityStatus)

setAllElementsStatus

void setAllElementsStatus(SecurityStatus value)
Sets the value of the 'All Elements Status' attribute.

Indicates if all elements (business layer views or business items) in the "CreateQuery" or "DisplayData" setting of the business security profile are added as granted or denied.

If the status is SecurityStatus.DENIED, the getDeniedElements() list must be empty. If the status is SecurityStatus.GRANTED, the getGrantedElements() list must be empty.

Parameters:
value - the new value of the 'All Elements Status' attribute.
See Also:
SecurityStatus, getAllElementsStatus(), , SecurityStatus, getAllElementsStatus()

getDeniedElements

java.util.List<java.lang.String> getDeniedElements()
Returns the value of the 'Denied Elements' attribute list. The list contents are of type String.

This list contains specific elements (business layer views or business items) added as denied in the "CreateQuery" or "DisplayData" setting of the business security profile when all other elements have not been set to denied using setAllElementsStatus(SecurityStatus).

It is empty if the 'All Elements Status' is set to SecurityStatus.DENIED.

Returns:
the value of the 'Denied Elements' attribute list.
See Also:
setAllElementsStatus(SecurityStatus), BusinessLayerService.getBlItemPath(com.sap.sl.sdk.authoring.businesslayer.BlItem),

getGrantedElements

java.util.List<java.lang.String> getGrantedElements()
Returns the value of the 'Granted Elements' attribute list. The list contents are of type String.

This list contains specific elements (business layer views or bussiness items) added as granted in the "CreateQuery" or "DisplayData" setting of the business security profile when all other elements have not been set to granted using setAllElementsStatus(SecurityStatus).

It is empty if the 'All Elements Status' is set to SecurityStatus.GRANTED.

Returns:
the value of the 'Granted Elements' attribute list.
See Also:
setAllElementsStatus(SecurityStatus), BusinessLayerService.getBlItemPath(com.sap.sl.sdk.authoring.businesslayer.BlItem),


© Copyright 2016 SAP SE or an SAP affiliate company. All rights reserved.