Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.RuntimeCollective.webapps.bean
Interface PermissionBean  view PermissionBean download PermissionBean.java


Deprecated. This class shouldn't be used anymore - use the Permissions packages instead.

public interface PermissionBean

A javabean implementing this interface can use the checkEdit and checkView custom tags to check edit and view permissions.


Method Summary
 boolean canEdit(User user)
          Deprecated. This class shouldn't be used anymore - use the Permissions packages instead.
 boolean canView(User user)
          Deprecated. This class shouldn't be used anymore - use the Permissions packages instead.
 

Method Detail

canEdit

public boolean canEdit(User user)
                throws java.sql.SQLException
Deprecated. This class shouldn't be used anymore - use the Permissions packages instead.

Returns whether the specified User can edit (ie make changes to) this PermissionBean. This would typically check if the User owns this PermissionBean, and/or is an admin user.

Note: When a Bean is newly created, it could have no owner. It is canEdit's responsibility to decide what to do in this case.


canView

public boolean canView(User user)
                throws java.sql.SQLException
Deprecated. This class shouldn't be used anymore - use the Permissions packages instead.

Returns whether the specified User can view this PermissionBean. This would typically return true.

Note: When a Bean is newly created, it could have no owner. It is canView's responsibility to decide what to do in this case.