Restricting class access to only some classes.

Hi Guys,
I want my classes to be accessed by only my defined classes. Is it possible?
Say I have public class defined test. I want that this class should be accessed by only the classes I want not by any other class by any mean. If somebody tries to access the class it should result in SecurityException. How can I do that???
Thanks,
Rajan

maybe a package private class will do it, ie package the classes in the same package. define the particular class as protected, it will be visible to other classes in the package, the other classes maybe public.
otherwise maybe it is an protected abstract class that the others extend?
otherwise have this particular class take as arguments the other classes in overloaded methods?
otherwise maybe a strategy pattern and default is a do nothing class (ie throws)?
...

Similar Messages

  • Restricting rights to modify only some rows

    Hi,
    I just discovered HTML DB and played around with it on myhtmldb.com because htmldb.oracle.com is down for some reason.
    Is there a way to restrict write access to some rows of a table for each user? For example everybody can see the whole table but you can only add/delete/modify the rows where your id/company name/.. is present in one column.
    Cheers
    Mathias

    Hi,
    I just discovered HTML DB and played around with it
    on myhtmldb.com because htmldb.oracle.com is down for
    some reason.
    Is there a way to restrict write access to some rows
    of a table for each user? For example everybody can
    see the whole table but you can only
    add/delete/modify the rows where your id/company
    name/.. is present in one column.
    Cheers
    Mathias

  • Restrict HTTP access or only allow HTTPS access

    Hi experts,
    We have an EP6 cluster implementation in our landscape with a web dispatcher acting as a balancer on top. We achieved to implement HTTPS (end-to-end SSL) and now need to restrict any http access to our SAP Portal (that means internet users should always use https when accesing our portal).
    Which is, in your opinion, the easiest way to do it? Web Dispatcher configuration, Central Instance (Java Dispatcher), other? The result should be an error message (no matter whether it's the error HTTP 501).
    Thanks.

    Hi,
    The best way would be to restrict at web dispatcher as this is the entry point for requests.
    Check this:
    http://help.sap.com/saphelp_nw70/helpdata/EN/d8/a922d7f45f11d5996e00508b5d5211/frameset.htm
    In the ICM configuration you should remove all parameters that allow http access to Web Dispatcher.
    http://help.sap.com/saphelp_nw70/helpdata/EN/25/7e153a1a5b4c2de10000000a114084/frameset.htm
    Regards,
    Praveen Gudapati

  • Restrict Delete Access in FBV0 for Parked documents

    We are havng an issue for restricting users from deleting Parked Documents of other users in FBV0. Is there a way to restrict Delete access to only documents a user created themselves?
    Thanks
    Chaz

    Hi Chaz
    I don't think that will be possible unless you implement a validation using user exit
    Write a validation in OB28 using RGGBR000 user exit to validate the USNAM field
    Br. Ajay M

  • Is their any possibility to Obfuscate only some classes.

    Hi,
    I tried with jBuilder to obfuscate only some classes as per the help provided by the jbuilder, where it is clearly specifed that it is possible to obfuscate only some classes. But i am not getting that. I tried same as given in the help.
    Let me know, any wrong i did... and is there any other way to do this.
    plz reply me.
    With Regards,
    Rajesh

    Use exclude parameter and check the below link.
    http://www.oracle-base.com/articles/10g/oracle-data-pump-10g.php
    Regards
    Asif Kabir

  • How to restrict VK11 access based on condition class D (Tax)

    hi ,
    I have a requirement to restrict VK11 access based on condition class D (Tax). Because all users should not have access to maintain tax data in VK11 while general pricing data they can maintain. when condition class is D then we should have control.
    Thanks
    Akhilesh

    Hi Akhilesh,
    Please find the below link and click on View article.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a92195a9-0b01-0010-909c-f330ea4a585c
    how to create authorization object?
    Thanks
    Dasaradha

  • How to restrict AS02 access to certain fields only

    How to restrict AS02 (Asset Master Record) access to certain fields only. Currently when you assigned AS02 to a certain user, this will enable the user to change all the fields in the asset master record. Suppose i want only the user to restrict the access to certain field eg.NDJAR (Life in Yrs).
    Thanks for your inputs.
    Regards,
    Robert

    hello,
    basis has to assign the proper activity with object A_S_ANLKL. in this case they have to allow activity 03 only with combination of Cocode,asset class. see some more details below.
    This authorization object is the first part of the object "asset master record."
    The definition at this level determines whether the user is authorized to process data in a given company code. The activity type for the transaction is also defined here. This authorization object is used for master data transactions, for the display of value fields, and for reporting.
    Defined Fields
    The following fields are assigned to the authorization object
    Asset class (specified by entering a value in the pop-up window)
    Company code (specified by entering a value in the pop-up window)
    Activity type - there are three different activity types:
    01 = Create
    02 = Change (including blocking and deleting)
    03 = Display

  • How to restrict the access of "InPlaceRecordsListSettings.aspx" and "InPlaceRecordsSettings.aspx" pages for some users and allow the access for some users?

    I have a requirement to restrict the access of "InPlaceRecordsListSettings.aspx" and "InPlaceRecordsSettings.aspx" pages for some of the users and allow the access for some of the users.
    I have applied the below code on the web.config file but this modification impacting only on the web application level not on the site collection and sub site level.  
    <location path="_layouts/15/InPlaceRecordsSettings.aspx">
        <system.web>
          <authorization>
            <deny users="*" />
          </authorization>
        </system.web>
      </location>
    <location path="_layouts/15/InPlaceRecordsListSettings.aspx">
        <system.web>
          <authorization>
            <deny users="*" />
          </authorization>
        </system.web>
      </location>
    When I tried the access on
    :<portno>/sites/<scname>/_layouts/15/InPlaceRecordsSettings.aspx">http://<servername>:<portno>/sites/<scname>/_layouts/15/InPlaceRecordsSettings.aspx page allowed the access for all users.           
    Please suggest the possible solution to restrict the access of "InPlaceRecordsListSettings.aspx" and "InPlaceRecordsSettings.aspx" pages on SharePoint2013.
    Thanks
    Ramasubbu

    You can't do it from OOTB. 
    _layout folder is accessible to the users if they have read access in any of the site even subsite.
    You can modify *.aspx file, add your custom control which will check user.
    [custom.development]

  • Garageband is not picking sound from builtin mic (rMBP). I recorded some tracks, now it is not working. All other apps can use the mic. Monitoring is switched ON at GB, it picks sound only some other app, eg. Skype, is used to access the mic.

    Garageband is not picking sound from builtin mic (rMBP).
    I recorded some tracks, now it is not working. I have checked GB Preferences, Audio/MIDI > Audio Input > Built In Microphone.
    All other apps can use the mic. Dictation, Skype etc. can use the mic!
    Monitoring is switched ON at GB, it picks sound only some other app, eg. Skype, is used to access the mic.
    Can any one help me, Please!
    Many thanks!

    I have foud the solution - rather stupid. The system setting for audio input was at 70%, increasing it to 100% solves the problem!

  • Only some pages of my website made with Muse can't be edit in the Business Catalyst Admin Console... How access all my pages edit possibilities ?

    My website is made with Adobe Muse and published with Business Catalyst.
    Some pages can be edit on the Business Catalyst Console, but, unfortunately, some other pages can't.
    Why some pages and not others ?
    Thanks for yours answers.

    Hi,
    I have try the edit mode with Firefox and Chrome and no one doesn’t work.
    For the french pages, I must reload the page to have the blue blocks. And if I do that on an english one, it switches on the french one...
    Caroline Duhamel
    +33 (0)6 08 34 33 61
    Le 24 oct. 2014 à 09:40, rohit776 <[email protected]> a écrit :
    Only some pages of my website made with Muse can't be edit in the Business Catalyst Admin Console... How access all my pages edit possibilities ?
    created by rohit776 in Help with using Adobe Muse CC - View the full discussion
    Hi,
    I have just checked at my end and it seems everything is working fine and I am able to edit even the English version pages.
    Can you please try some other browser or in a different system to edit your site and check if you are able to do so.
    Regards,
    Rohit Nair
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6862093#6862093
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC by email or at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • How can I restrict options result to only one cost center?

    In transaction KS03 (Display cost Center), when I search for a cost center (hit F4), I have an option to drill down by Company code, controlling area, Cost Center Category, Person Responsible etc.
    My question is, how can I restrict users to select only controlling area they are authorized for ? Is there any authorization object I can use to restrict user's access to particular value in the table CSKS ?
    Thanks,
    Karan.

    Hi Karan,
    If you want to restrict on the values users can return when using F4 lookup then there may be some useful info in the following link:
    Authorization object for capacity planning CM03

  • Best way to give restricted execute access on pssession to remote user on a server

    we have some windows 2008 R2 development environment servers. On these servers we are planning to provide access to developers via PSremoting. We want to restrict the users in such a way that they can only run .bat files present in a certain UNC path. What
    is the best way to achieve the same. Can we create a PSSession Configuration for this?
    Please note that we are planning to enable WSmanCredSSP on client (it is already enabled on server).
    Also, is it possible to give such an access where user can only login to server using powershell's PSsession and not through interactive remote desktop connection.
    ApoorvaW

    Hi  ApoorvaW,
    If you want to setup a restricted pssession, please try to set the session configuration with the cmdlet:
    Register-PSSessionConfiguration
    Securing Session Configurations
    You can assign session configurations to users automatically. For example, you may want to restrict the commands in a session that are available to some users. This is done in a two-step-process:
    1. Create a new session configuration that restricts the session to only a subset of commands.
    2. Change security access permissions so that the intended users can only access the new session configuration.
    For more detailed information about restricted session and paremoting security, please refer to these articles:
    PowerShell Remoting: How to Restrict User Commands
    Restrict Session
    If there is anything else regarding ths issue, please feel free to pst back.
    Best Regards,
    Anna Wang

  • Restrict member access in POV member selection

    Hello all,
    I wonder if there is a way to restrict access to certain members in Smart View's POV manager (member selection tool)? For example if a user is assigned a filter in Essbase that restricts his access to an Entity "A", he should not be able to see/select that entity in the member selection in Smart View.
    I did some research and browsed the guides but could not find anything related to this special requirement.
    Highly appreciate any thoughts.
    Thanks for your help and time.

    I have implemented MetaRead as the "standard" for users with read only access at several clients, as most people prefer to see only what they have access to. A good example is European users, don't need to see Asian countries in their geography rollup and vice versa.
    It also makes training easier as you don't have to deal with the questions, why can I see Germany/Thailand if I can't see any data.
    I suggested FR as an option as once the user has chosen their POV for the first time, it will follow them whenever they open a subsequent report, so they don't have to worry about choosing it.
    Although you do lose some ad-hoc abilities with FR - that you can mitigate through the use of expansion on rows/columns. Also the POV is per data source, so if you wished to migrate to new cube for a new financial year, then the POV would need to be chosen again.
    The other advantage with FR is you can distribute the same report and have many users, with differing access see different data through their POV and access rights. With Smart View, users would need to chose their POV every time they opened a newly distributed report.
    Hope this helps - let me know if you have further questions/thoughts.
    Cheers, Iain

  • Help! I need to restrict wired access by time of day to limit XBOX 360 use

    AirPort Extreme N allows timed access restriction for wireless clients, but Apple bewilderingly decided not to make this feature available to "wired" clinents that access the network via ethernet cable. *This permits our teenagers to play XBOX all night long.* HELP! Which third-party vendor makes wired routers that I can use to restrict this access by time of day. NOTE: I will need a router that still supports AppleTalk over ethernet to keep my HP LaserJet working. I tried a LinkSys router but it killed the AppleTalk packets and wreaked havoc with print jobs sent to the HP. I also want to keep the AirPort Extreme N in the network and use it as the sole DHCP server (I specifically need its ability to reserve private IP addresses for some devices), so this complicates where in the network I place the third-party router. Where should this router be, if I need the AirPort Extreme N to serve as DHCP server, and do I need to change any other setting like bridge mode, etc? _I just can't believe Apple would only allow timed access restrictions for wireless clients._ Come on! Maybe this will be fixed in a firmware update?

    Thanks, Duane. I was just looking at the PDF instructions for this router, and it offers extensive control of wired time access by IP number.
    So: If I (1) put this Belkin device at the top of my network chain, between my cable modem and my AirPort Extreme; and I (2) turn off the DHCP server in the Belkin device but turn on the DHCP server in the AirPort router; and I (3) use the AirPort Extreme to assign a reserved IP adddress to the XBOX; and I (4) use this reserved IP address to restrict the XBOX access by time of day via the Belkin router software... Everthing will work OK?
    Seems awfully complicated. Basically, I would be using the Belkin router only as high-octane network switch -- one that permits timed access resrictions for devices at specific IP addresses (and handshakes with the cable modem to provide a unique MAC address to the cable company). Right?

  • Restrict User Access to Planning Books- Creation of Roles

    Hi All
    I want to restrict the users to access/see only limited number of planning books in SDP94
    menu
    For this, I tried creating a role and assigned authorization C_APO_PB with required planning book values
    However I am not sure how to create the role properly. In the change role screen, the "Menu" and the "Workflow" tabs are red, while authorization tab is green
    Do I need to do any activity in Menu and Workflow tabs
    Please guide
    Any help on this is highly appreciated
    Thanks
    Vijay

    Moderator message - Cross post locked
    Rob

Maybe you are looking for

  • What's the process of replacing a cracked iPhone screen?

    I dropped my iPhone 4S earlier and was wondering what to do to get the cracked screen replaced and how much I'd have to pay. Thanks

  • Pagination internals

    Does Apex use different internal pagination method from the one proposed by Tom Kyte? http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:127412348064

  • Browser for low-end laptop

    Hi, my girlfriends laptop is running arch linux (I installed it for her a year ago...). The problem is that it's not a high performance machine but rather low-end instead. It's an "Acer Extensa 5635Z" (Intel Pentium Dual Core T4200, Intel GMA, 2 gig

  • My AR form crash and how to disable installed modules

    Hi all my environmen is 11.5.8 on rh as 2.1. I have couple of module installed like ap ap gl po inv hr ..i have two problem here need help. First, I installed the hr modules but for some reason i wanna disable it and define position and job through p

  • SQL message: ORA-03113: end-of-file on communication

    Hi Experts, We having an issue with Oracle message Dump also explains this: The termination occurred in ABAP program "SAPMSSY2", in "GET_CNTL_VALUES". T main program was "SAPMSSY2". In the source code, the termination point is in line 60 of (Include)