protected boolean canDeleteNode ( IUserLayoutNodeDescription node ) throws PortalException { if ( node == null ) return false ; // todo if isFragmentOwner should probably verify node is part of the // same layout fragment as the fragment owner to insure a misbehaving front-end doesn't // do an improper operation. return isFragmentOwner || node . isDeleteAllowed ( ) ; }
Returns true if the node exists in the underlying DOM model and it does not contain a deleteAllowed attribute with a value of false .